Allow overriding the default OPENSTACK_TAG 33/58633/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Sun, 17 Jun 2018 10:29:12 +0000 (12:29 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Sun, 17 Jun 2018 11:38:41 +0000 (13:38 +0200)
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>
build.sh

index 4337e0a..641a672 100644 (file)
--- 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" {} +