microprofile-service-mesh-service-a
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.dockerignore
.gitignore
.helmignore
LICENSE
README.md
pom.xml

README.md

MicroProfile Service Mesh Sample Service A

This is the serviceA component of the microprofile service mesh sample.

Requirements

Build

mvn install

Package and run the service

The pom is designed to contain application server profiles with which you can test and run the service. Currently the liberty and thorntail profile is provided.

Open Liberty

Run the service locally

mvn -P liberty install liberty:run-server

The service will be accessible at http://localhost:8080/mp-servicemesh-sample/serviceA

Run the service locally in a Docker container

docker build -t servicea -f src/main/profiles/liberty/Dockerfile .
docker run -p 8080:8080 servicea

The service will be accessible at http://localhost:8080/mp-servicemesh-sample/serviceA

Thorntail

Run the service locally

mvn package -Pthorntail
java -jar target/service-a-thorntail.jar

or

mvn -Pthorntail thorntail:run -Dwildfly-swarm.useUberJar=true

The service will be accessible at http://localhost:8080/mp-servicemesh-sample/serviceA

Run the service in a Docker container

mvn package -Pthorntail
docker build -t servicea -f src/main/profiles/thorntail/Dockerfile .
docker run -p 8080:8080 servicea

The service will be accessible at http://localhost:8080/mp-servicemesh-sample/serviceA