aboutsummaryrefslogtreecommitdiffstats
path: root/docker/mts/Dockerfile
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2021-02-11 18:44:03 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2021-02-11 18:56:48 +0100
commit239dc4006e01b78b5a3bda9faec604f19bcf87e7 (patch)
tree4127acafab90b504f413cdff80148c214300244c /docker/mts/Dockerfile
parent2522c7336971aa7c5c1dba2dcede5137319e6d84 (diff)
Create dummy xtesting-mts:arm
Change-Id: Ib6cc1236aa46b7fb1fd9dfa96750894d87c3563e Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'docker/mts/Dockerfile')
-rw-r--r--docker/mts/Dockerfile25
1 files changed, 13 insertions, 12 deletions
diff --git a/docker/mts/Dockerfile b/docker/mts/Dockerfile
index e7c3d5e4..1c0afcb7 100644
--- a/docker/mts/Dockerfile
+++ b/docker/mts/Dockerfile
@@ -8,17 +8,18 @@ ENV NGN_JAVA_HOME=${JAVA_HOME}/bin
ENV MAVEN_OPTS=$MAVEN_OPTS
COPY mts-installer.properties /src/mts-installer.properties
-RUN apk --no-cache add --update openjdk8-jre && \
- apk --no-cache add --virtual .build-deps --update \
- openjdk8 maven git && \
- git init /src/git-mts && \
- (cd /src/git-mts && \
- git fetch --tags https://github.com/ericsson-mts/mts $MTS_TAG && \
- git checkout FETCH_HEAD && \
- echo ${NGN_JAVA_HOME} > src/main/bin/java_home.release && \
- mvn versions:set -DnewVersion=${MTS_TAG} && mvn package && mvn install && \
- java -jar target/mts-${MTS_TAG}-installer.jar -options /src/mts-installer.properties) && \
- rm -rf /root/.m2/ ${APP_FOLDER}/tutorial /src/mts-installer.properties /src/git-mts && \
- apk del .build-deps
+RUN case $(uname -m) in x86_64|aarch64) \
+ apk --no-cache add --update openjdk8-jre && \
+ apk --no-cache add --virtual .build-deps --update \
+ openjdk8 maven git && \
+ git init /src/git-mts && \
+ (cd /src/git-mts && \
+ git fetch --tags https://github.com/ericsson-mts/mts $MTS_TAG && \
+ git checkout FETCH_HEAD && \
+ echo ${NGN_JAVA_HOME} > src/main/bin/java_home.release && \
+ mvn versions:set -DnewVersion=${MTS_TAG} && mvn package && mvn install && \
+ java -jar target/mts-${MTS_TAG}-installer.jar -options /src/mts-installer.properties) && \
+ rm -rf /root/.m2/ ${APP_FOLDER}/tutorial /src/mts-installer.properties /src/git-mts && \
+ apk del .build-deps;; esac
COPY testcases.yaml /usr/lib/python3.8/site-packages/xtesting/ci/testcases.yaml
CMD ["run_tests", "-t", "all"]