summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-06-17 12:29:12 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2018-06-17 13:38:41 +0200
commit2845d29b185043da58c434c218e5b409b5d23ac4 (patch)
treeec6c84b08b7786527035c83cd069fd238a4b1038
parentc2547994a6b7dc0839f595f72a4f874a006a4638 (diff)
Allow overriding the default OPENSTACK_TAG
It allows building containers vs other upper-constraints and then reusing our Dockerfiles for an older or newer OpenStack versions. Change-Id: I160e6f7175a11684846cad86c3d47269c88a08ea Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r--build.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 4337e0a10..641a67243 100644
--- a/build.sh
+++ b/build.sh
@@ -12,7 +12,8 @@ docker/features \
docker/components \
docker/vnf"}
arm64_dirs=${arm64_dirs-${amd64_dirs}}
-build_opts=(--pull=true --no-cache --force-rm=true)
+build_opts=(--pull=true --no-cache --force-rm=true \
+ --build-arg OPENSTACK_TAG="${OPENSTACK_TAG:-stable/queens}")
find . -name Dockerfile -exec sed -i \
-e "s|opnfv/functest-core|${repo}/functest-core:amd64-latest|g" {} +