- Clone the repository using
git@github.com:anjumfatima90/dojo.samples.git
- Run
mvn clean install
from thedojoWARExample
folder to create the war in the targetdojoWARExample/target
folder. - To run locally in wlp folder, create a server using
bin/server create
command. - Then place the war in
wlp/usr/servers/defaultServer/dropins/spring
folder. - Update the
wlp/usr/servers/defaultServer/server.xml
file by addingjsp.2-3
andspringBoot-2.0
features. - Run the server using
bin/server run
commmand from wlp folder. - To run the application using docker container, create a docker image using
docker build -t springboot .
from the application folder. The Dockerfile has steps which divides the fat application JAR/WAR into thin application JAR/WAR and library dependencies in two different layers called as docker multi-stage builds to create the docker image. - Then run the spring boot application in a docker container using
docker run -d --name springBootContainer -p 9080:9080 -p 9443:9443 springboot
- When the thin application has started, point your browser to the http://localhost:9080/ URL to access the application.
- To stop and remove the docker conatiner use
docker stop springBootContainer
anddocker rm springBootContainer
anjumfatima90/dojo.samples
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published