$git clone https://github.com/up1/workshop-20190325.git
$cd workshop-20190325/
$docker container run --rm -w /src -v $(pwd):/src maven:3.6.0-jdk-8-alpine mvn package
$docker container run -d -w /src -v $(pwd)/target/demo.jar:/src/demo.jar -p 9999:8080 openjdk:8u191-jre-alpine3.9 java -jar demo.jar
# Remove container
$docker container stop $(docker container ps -q)
$docker container prune
#Create Docker Image
$docker image build -t somkiat/demoapp:1.0 .
$docker container run -d -p 9999:8080 somkiat/demoapp:1.0
# Push image to Docker Hub
$docker login
$docker image push somkiat/demoapp:1.0
-
Notifications
You must be signed in to change notification settings - Fork 0
up1/workshop-20190325
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