Skip to content

Spring Framework demo app with WebSphere AS Docker image

Notifications You must be signed in to change notification settings

curtiscj/petclinic

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  1. Clone the project
git clone https://github.com/zeroturnaround/petclinic.git
cd petclinic
  1. Build application artifact
mvn clean package
  1. Build a new Docker image based on the Dockerfile
docker build -t waspet .
  1. Run the application
docker run -d -p 9043:9043 -p 9443:9443 -v `pwd`:/tmp/petclinic -v ~/.jrebel:/home/was/.jrebel waspet

It takes a while for the application server to start. Follow the logs to track the status:

docker logs --follow <container id>

Once the application server has started, you will see the following message in the log:

WSVR0001I: Server server1 open for e-business

The application is now accessible at https://localhost:9443/petclinic

  1. Now you can open the project in your beloved IDE, make changes to the code and see JRebel reloading the app on-the-fly

NB! The path in rebel.xml must match the directory that was mapped via command line (/tmp/petclinic)

About

Spring Framework demo app with WebSphere AS Docker image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 61.7%
  • HTML 35.7%
  • CSS 1.8%
  • Other 0.8%