diff options
-rw-r--r-- | ms/neng/pom.xml | 11 | ||||
-rw-r--r-- | ms/neng/src/main/docker/Dockerfile | 6 |
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 |