From ed4a25b111f43f570c8cb86d53f54127d8e20b0b Mon Sep 17 00:00:00 2001 From: Delia Popescu Date: Tue, 7 Nov 2017 17:18:22 +0200 Subject: Patch Functest docker images for ARM MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A new tox env is defined to ease patching all Dockerfiles for ARM. This env will only patch the Dockerfile related to functest-core when the manifests are published. Jenkins jobs can simply apply the next command: $ tox -e patcharm64 Co-Authored-By: Cédric Ollivier Change-Id: Icf69e27c1da95a721ebf67d5ce190c9b8cefce0a Signed-off-by: Delia Popescu Signed-off-by: Cédric Ollivier --- tox.ini | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tox.ini b/tox.ini index 978b3f6b2..4c2303e7f 100644 --- a/tox.ini +++ b/tox.ini @@ -68,3 +68,11 @@ whitelist_externals = commands = bash -c "patch -f -p1 < docker/Dockerfile.aarch64.patch" git checkout docker/Dockerfile + +[testenv:patcharm64] +basepython = python2.7 +whitelist_externals = + find +commands = + find . -name Dockerfile -exec sed -i -e 's|alpine:3.6|multiarch/alpine:arm64-v3.6|g' \{\} + + find . -name Dockerfile -exec sed -i -e 's|opnfv/functest-core|opnfv/functest-core:arm64-latest|g' \{\} + -- cgit 1.2.3-korg