From: Dmitry Puzikov Date: Thu, 21 Feb 2019 15:30:05 +0000 (+0100) Subject: Fix sniroemulator to make container arm64-ready X-Git-Tag: 4.0.0-ONAP~248^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F17%2F79017%2F1;p=integration.git Fix sniroemulator to make container arm64-ready Swicth from debian based image to alpine based image. Fix docker-plugin version. Change-Id: I87af14b9785f70f49955ba299ed6e3d8ff9866f3 Issue-ID: INT-879 Signed-off-by: Dmitry Puzikov --- diff --git a/test/mocks/sniroemulator/pom.xml b/test/mocks/sniroemulator/pom.xml index 288ecb63b..2a1402b8f 100644 --- a/test/mocks/sniroemulator/pom.xml +++ b/test/mocks/sniroemulator/pom.xml @@ -16,10 +16,12 @@ - ${basedir}/target UTF-8 UTF-8 1.8 + ${basedir}/target + latest + 1.2.0 2.8.9 9.2.22.v20170606 org.onap.integration.test.mocks.sniroemulator.MockApplication @@ -220,14 +222,14 @@ com.spotify docker-maven-plugin - 1.0.0 + ${docker.maven.plugin.version} true ${docker.push.registry} ${docker.push.registry}/onap/${project.artifactId} ${dockerLocation} - latest + ${docker.tag} true diff --git a/test/mocks/sniroemulator/src/main/docker/Dockerfile b/test/mocks/sniroemulator/src/main/docker/Dockerfile index 05f3a5a2b..65e129a27 100644 --- a/test/mocks/sniroemulator/src/main/docker/Dockerfile +++ b/test/mocks/sniroemulator/src/main/docker/Dockerfile @@ -1,10 +1,13 @@ -FROM openjdk:8-jre +FROM openjdk:8-jre-alpine MAINTAINER Geora Barsky +# need bash as most scripts expect it +RUN apk --no-cache add bash + RUN mkdir -p /var/wiremock/lib/ -ADD sniroemulator.jar /var/wiremock/lib/app.jar +COPY sniroemulator.jar /var/wiremock/lib/app.jar WORKDIR /home/wiremock