Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Latest commit

 

History

History
19 lines (10 loc) · 402 Bytes

File metadata and controls

19 lines (10 loc) · 402 Bytes

HelloWorld Servlet example with corresponding Dockerfile

Use Maven Build first to create war file in Target folder.

mvn clean package

Artifact will be created in target folder.

docker build -t mavenbuild .

Once this is done u will be see image using docker images

Use below command to run the container

docker run -d -p 8080:8080 --name mavenbuild mavenbuild

Jenkins Push

Another Jenkins Test