Skip to content

Emily-Jiang/demo-ft-service-b

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MicroProfile Demo FT Service B

This is the serviceB component of the microprofile Demo FT.

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 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/ft/serviceB

Run the service locally in a Docker container

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

The service will be accessible at http://localhost:8080/ft/serviceB

Thorntail

Run the service locally

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

or

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

The service will be accessible at http://localhost:8080/ft/serviceB

Run the service in a Docker container

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

The service will be accessible at http://localhost:8080/ft/serviceB

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published