From b7e96e84e4ce79b5ca025f788fedc62ad2196c1c Mon Sep 17 00:00:00 2001 From: Dmitry Puzikov Date: Thu, 21 Feb 2019 16:30:05 +0100 Subject: 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 --- test/mocks/sniroemulator/pom.xml | 8 +++++--- test/mocks/sniroemulator/src/main/docker/Dockerfile | 7 +++++-- 2 files changed, 10 insertions(+), 5 deletions(-) (limited to 'test/mocks') 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 -- cgit 1.2.3-korg