diff options
author | Vincent Mahe <v.mahe@orange.com> | 2020-05-25 18:32:58 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2021-02-09 14:25:48 +0100 |
commit | dd65cb02f0a0773a4b56781c66ddcccfc658568f (patch) | |
tree | a5dfdfad913a9f7c525cf2119c16357f41465e09 /docker/mts/Dockerfile | |
parent | 0636bc2c0941d44025d663f8bca425966093013b (diff) |
Add MTS driver
It creates a new container xtesting-mts to avoid increase core
container size.
Signed-off-by: Vincent Mahe <v.mahe@orange.com>
Change-Id: I59544023e1235747e140a442815778a133bf6acf
(cherry picked from commit 32eb7687bf7b8440aa87805480789ef61ae65ec9)
Diffstat (limited to 'docker/mts/Dockerfile')
-rw-r--r-- | docker/mts/Dockerfile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/docker/mts/Dockerfile b/docker/mts/Dockerfile new file mode 100644 index 00000000..597e4f4b --- /dev/null +++ b/docker/mts/Dockerfile @@ -0,0 +1,24 @@ +FROM opnfv/xtesting + +ARG MTS_TAG=6.6.3 +ARG APP_FOLDER=/opt/mts +ARG MAVEN_OPTS= +ENV JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk +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 lksctp-tools libpcap && \ + apk --no-cache add --virtual .build-deps --update \ + libpcap-dev 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 +COPY testcases.yaml /usr/lib/python3.8/site-packages/xtesting/ci/testcases.yaml +CMD ["run_tests", "-t", "all"] |