summaryrefslogtreecommitdiffstats
path: root/ms/neng
diff options
context:
space:
mode:
authorBT2983 <BT2983@att.com>2018-09-18 09:27:18 -0600
committerBT2983 <BT2983@att.com>2018-09-18 09:27:18 -0600
commit758bc233c125d2ffec0bf16618747af747aafa45 (patch)
tree78ff872d24a469cbce477ad67957bb47eef8db27 /ms/neng
parenta229c688f6a5f52dd5b6073dc1166751ed381161 (diff)
naming ms - docker updates.
Added exec phase, and using lighter docker base image. Change-Id: I020c6e88408f4d17fe214ee7ac8f960230ad4980 Issue-ID: CCSDK-342 Signed-off-by: BT2983 <BT2983@att.com>
Diffstat (limited to 'ms/neng')
-rw-r--r--ms/neng/pom.xml11
-rw-r--r--ms/neng/src/main/docker/Dockerfile6
2 files changed, 16 insertions, 1 deletions
diff --git a/ms/neng/pom.xml b/ms/neng/pom.xml
index bcc5d0cd..610d7ed6 100644
--- a/ms/neng/pom.xml
+++ b/ms/neng/pom.xml
@@ -56,6 +56,7 @@
<ccsdk.distribution.version>0.2.4</ccsdk.distribution.version>
<docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
<docker.push.phase>deploy</docker.push.phase>
+ <docker.build.phase>deploy</docker.build.phase>
<docker.verbose>true</docker.verbose>
<ccsdk.project.version>${project.version}</ccsdk.project.version>
</properties>
@@ -121,6 +122,16 @@
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.4.11</version>
+ <executions>
+ <execution>
+ <id>push-images</id>
+ <phase>${docker.build.phase}</phase>
+ <goals>
+ <goal>build</goal>
+ <goal>push</goal>
+ </goals>
+ </execution>
+ </executions>
<configuration>
<imageName>${docker.registry}/onap/ccsdk-apps-ms-neng:${project.version}</imageName>
<dockerDirectory>src/main/docker</dockerDirectory>
diff --git a/ms/neng/src/main/docker/Dockerfile b/ms/neng/src/main/docker/Dockerfile
index e8594e5f..6225f35d 100644
--- a/ms/neng/src/main/docker/Dockerfile
+++ b/ms/neng/src/main/docker/Dockerfile
@@ -19,7 +19,11 @@
#================================================================================
# Docker setup for the micro-service
#================================================================================
-FROM onap/ccsdk-ubuntu-image:0.3.0-SNAPSHOT
+#FROM onap/ccsdk-ubuntu-image:0.3.0-SNAPSHOT
+FROM anapsix/alpine-java:8_jdk
+
+RUN apk add --no-cache curl
+
VOLUME /tmp
ADD NetworkElementNameGen.jar app.jar
VOLUME /opt/etc