aboutsummaryrefslogtreecommitdiffstats
path: root/reference/logging-docker-root
diff options
context:
space:
mode:
authorAvdhut Kholkar <avdhut.kholkar@amdocs.com>2018-01-30 05:09:47 +0000
committerGerrit Code Review <gerrit@onap.org>2018-01-30 05:09:47 +0000
commit0e37f66b4d5c0ca76f402984531082936ce98b4f (patch)
treee7a890907d73e11982c5031485bde4c26ddb2400 /reference/logging-docker-root
parent6fe98f991c599af431cd4ae5c10db13a384b8541 (diff)
parent1f44731975d5a90d546bf5f4008f26920910ab8c (diff)
Merge "log RI kubernetes and docker devops"
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>