aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDelia Popescu <delia.popescu@enea.com>2017-11-07 17:18:22 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2017-11-09 05:47:00 +0100
commited4a25b111f43f570c8cb86d53f54127d8e20b0b (patch)
treef2d143e9e603e7891335d70d6c1de7774eef88de
parent5d60559a1d22a027b1f9b0e5f2494415dca19784 (diff)
Patch Functest docker images for ARM
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 <cedric.ollivier@orange.com> Change-Id: Icf69e27c1da95a721ebf67d5ce190c9b8cefce0a Signed-off-by: Delia Popescu <delia.popescu@enea.com> Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r--tox.ini8
1 files changed, 8 insertions, 0 deletions
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' \{\} +