diff options
Diffstat (limited to 'reference/logging-docker-root')
-rw-r--r-- | reference/logging-docker-root/.project | 17 | ||||
-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 | ||||
-rw-r--r-- | reference/logging-docker-root/pom.xml | 12 |
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> |