diff options
Diffstat (limited to 'reference/logging-docker-root/logging-docker-demo')
-rw-r--r-- | reference/logging-docker-root/logging-docker-demo/DockerFile | 2 | ||||
-rwxr-xr-x | reference/logging-docker-root/logging-docker-demo/build.sh | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/reference/logging-docker-root/logging-docker-demo/DockerFile b/reference/logging-docker-root/logging-docker-demo/DockerFile new file mode 100644 index 0000000..b3d68f0 --- /dev/null +++ b/reference/logging-docker-root/logging-docker-demo/DockerFile @@ -0,0 +1,2 @@ +FROM tomcat:8.0.48-jre8 +COPY target/logging-demo-1.2.0-SNAPSHOT.war /usr/local/tomcat/webapps/logging-demo.war diff --git a/reference/logging-docker-root/logging-docker-demo/build.sh b/reference/logging-docker-root/logging-docker-demo/build.sh new file mode 100755 index 0000000..d2e0ea2 --- /dev/null +++ b/reference/logging-docker-root/logging-docker-demo/build.sh @@ -0,0 +1,8 @@ +mkdir target +cp ../../logging-demo/target/*.war target +docker build -t oomk8s/logging-demo-nbi -f DockerFile . +docker images | grep logging-demo-nbi +docker tag oomk8s/logging-demo-nbi oomk8s/logging-demo-nbi:0.0.1 +docker login +docker push oomk8s/logging-demo-nbi:0.0.1 +#docker run -d -it --rm -p 8888:8080 oomk8s/logging-demo-nbi:latest |