From: Cédric Ollivier Date: Sun, 4 Oct 2020 10:17:29 +0000 (+0200) Subject: Prepare Xtesting Leguer containers X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F01%2F71201%2F1;p=functest-xtesting.git Prepare Xtesting Leguer containers Change-Id: I4c7b01c5502b426f52e8492a5c322f0659900b0b Signed-off-by: Cédric Ollivier --- diff --git a/.travis.yml b/.travis.yml index 60eb112c..089a1292 100644 --- a/.travis.yml +++ b/.travis.yml @@ -50,8 +50,8 @@ jobs: script: > sudo manifest-tool push from-args \ --platforms linux/amd64,linux/arm,linux/arm64 \ - --template ${DOCKER_USERNAME}/xtesting:ARCH-latest \ - --target ${DOCKER_USERNAME}/xtesting:latest + --template ${DOCKER_USERNAME}/xtesting:ARCH-leguer \ + --target ${DOCKER_USERNAME}/xtesting:leguer - stage: build xtesting-mts images script: sudo -E bash build.sh env: @@ -71,5 +71,5 @@ jobs: script: > sudo manifest-tool push from-args \ --platforms linux/amd64,linux/arm64 \ - --template ${DOCKER_USERNAME}/xtesting-mts:ARCH-latest \ - --target ${DOCKER_USERNAME}/xtesting-mts:latest + --template ${DOCKER_USERNAME}/xtesting-mts:ARCH-leguer \ + --target ${DOCKER_USERNAME}/xtesting-mts:leguer diff --git a/ansible/site.yml b/ansible/site.yml index 3f49628e..c93949c1 100644 --- a/ansible/site.yml +++ b/ansible/site.yml @@ -2,6 +2,9 @@ - hosts: 127.0.0.1 roles: - role: collivier.xtesting + docker_tags: + - leguer: + branch: stable/leguer builds: dependencies: - repo: _ diff --git a/build.sh b/build.sh index f6aaa492..f4c7c208 100644 --- a/build.sh +++ b/build.sh @@ -17,7 +17,7 @@ docker/core \ docker/mts"} arm_dirs=${arm_dirs-${amd64_dirs}} arm64_dirs=${arm64_dirs-${amd64_dirs}} -tag=${BRANCH:-latest} +tag=${BRANCH:-leguer} image="xtesting" build_opts=(--pull=true --no-cache --force-rm=true) @@ -26,15 +26,15 @@ for arch in ${arch}; do find . -name Dockerfile -exec sed -i \ -e "s|alpine:3.12|arm64v8/alpine:3.12|g" {} + find . -name Dockerfile -exec sed -i \ - -e "s|opnfv/xtesting|${repo}/xtesting:arm64-${tag}|g" {} + + -e "s|opnfv/xtesting:${tag}|${repo}/xtesting:arm64-${tag}|g" {} + elif [[ ${arch} == arm ]]; then find . -name Dockerfile -exec sed -i \ -e "s|alpine:3.12|arm32v6/alpine:3.12|g" {} + find . -name Dockerfile -exec sed -i \ - -e "s|opnfv/xtesting|${repo}/xtesting:arm-${tag}|g" {} + + -e "s|opnfv/xtesting:${tag}|${repo}/xtesting:arm-${tag}|g" {} + else find . -name Dockerfile -exec sed -i \ - -e "s|opnfv/xtesting|${repo}/xtesting:amd64-${tag}|g" {} + + -e "s|opnfv/xtesting:${tag}|${repo}/xtesting:amd64-${tag}|g" {} + fi dirs=${arch}_dirs for dir in ${!dirs}; do diff --git a/docker/mts/Dockerfile b/docker/mts/Dockerfile index 597e4f4b..6607ad6c 100644 --- a/docker/mts/Dockerfile +++ b/docker/mts/Dockerfile @@ -1,4 +1,4 @@ -FROM opnfv/xtesting +FROM opnfv/xtesting:leguer ARG MTS_TAG=6.6.3 ARG APP_FOLDER=/opt/mts