summaryrefslogtreecommitdiffstats
path: root/reference/logging-docker-root
diff options
context:
space:
mode:
authorMichael O'Brien <frank.obrien@amdocs.com>2018-01-28 22:40:06 -0500
committerMichael O'Brien <frank.obrien@amdocs.com>2018-01-29 16:39:00 -0500
commit1f44731975d5a90d546bf5f4008f26920910ab8c (patch)
treef37f00e5f64791103436ef99ab4063e50c01596f /reference/logging-docker-root
parentfdd8de8305343fd63347fcd7757577aab52a483a (diff)
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 <frank.obrien@amdocs.com>
Diffstat (limited to 'reference/logging-docker-root')
-rw-r--r--reference/logging-docker-root/.project17
-rw-r--r--reference/logging-docker-root/logging-docker-demo/DockerFile2
-rwxr-xr-xreference/logging-docker-root/logging-docker-demo/build.sh8
-rw-r--r--reference/logging-docker-root/pom.xml12
4 files changed, 39 insertions, 0 deletions
diff --git a/reference/logging-docker-root/.project b/reference/logging-docker-root/.project
new file mode 100644
index 0000000..f1679d2
--- /dev/null
+++ b/reference/logging-docker-root/.project
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>logging-docker-root</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.m2e.core.maven2Builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.m2e.core.maven2Nature</nature>
+ </natures>
+</projectDescription>
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
diff --git a/reference/logging-docker-root/pom.xml b/reference/logging-docker-root/pom.xml
new file mode 100644
index 0000000..771856e
--- /dev/null
+++ b/reference/logging-docker-root/pom.xml
@@ -0,0 +1,12 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.onap.logging-analytics</groupId>
+ <artifactId>logging-reference</artifactId>
+ <version>1.2.0-SNAPSHOT</version>
+ </parent>
+ <artifactId>logging-docker-root</artifactId>
+ <packaging>pom</packaging>
+ <name>logging-docker-root</name>
+</project>