This repository contains a developer template for WSO2 Micro-Integrator 4.2.0, equipped with a Makefile that simplifies common development tasks.
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.
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.
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.
To clean the project and remove any generated files, run:
make clean
To stop the running Podman container, use:
make stop
To forcefully remove the Podman container, run:
make delete
To perform a complete fresh build, including cleaning, building, and running the container, use:
make fresh
To test the Micro-Integrator health endpoint, run:
make test
This command sends a GET request to http://localhost:8080/health.