From 1f44731975d5a90d546bf5f4008f26920910ab8c Mon Sep 17 00:00:00 2001 From: Michael O'Brien Date: Sun, 28 Jan 2018 22:40:06 -0500 Subject: log RI kubernetes and docker devops initial demo docker and kubernetes infra Change-Id: I5daf744ee8f4ab9b824576209fd61dec0f41a5c2 Issue-ID: LOG-137 Signed-off-by: Michael O'Brien --- reference/logging-docker-root/logging-docker-demo/DockerFile | 2 ++ reference/logging-docker-root/logging-docker-demo/build.sh | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 reference/logging-docker-root/logging-docker-demo/DockerFile create mode 100755 reference/logging-docker-root/logging-docker-demo/build.sh (limited to 'reference/logging-docker-root/logging-docker-demo') 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 -- cgit 1.2.3-korg