Skip to content

Template of a WSO2 Micro Integrator project for VSCode

Notifications You must be signed in to change notification settings

integon/mi-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WSO2 Micro-Integrator 4.2.0 Developer Template

This repository contains a developer template for WSO2 Micro-Integrator 4.2.0, equipped with a Makefile that simplifies common development tasks.

Prerequisites

Before you begin, ensure you have the following tools installed on your machine:

  • Java 11: Make sure you have Java Development Kit (JDK) 11 installed.

  • Maven: Maven is used for building and managing the project.

  • Podman: Podman is used for building and running containerized applications. Make sure you have Podman installed on your machine.

Makefile Commands

Build

To build the WSO2 Micro-Integrator project, run the following command:

make build

This command will clean the project, package it using Maven, and then build a Container image using Podman.

Run

To run the WSO2 Micro-Integrator in a container, use the following command:

make run

This command starts a container named mi-test in detached mode, exposing the Micro-Integrator on port 8080. It also logs the container output, and you can stop the logging using Ctrl+C.

Clean

To clean the project and remove any generated files, run:

make clean

Stop

To stop the running Podman container, use:

make stop

Delete

To forcefully remove the Podman container, run:

make delete

Fresh

To perform a complete fresh build, including cleaning, building, and running the container, use:

make fresh

Test

To test the Micro-Integrator health endpoint, run:

make test

This command sends a GET request to http://localhost:8080/health.