aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlicja Kwasniewska <alicja.kwasniewska@intel.com>2015-07-02 17:08:59 +0000
committerPaul Bourke <paul.bourke@oracle.com>2015-07-09 11:06:58 +0000
commitfcda6a06d8eee9d3f3199962b36a04a8c702072c (patch)
treec2377e1bd49612caef7dc0462d3a8633cd31d907 /tools
parent370736abb761df28ad497cf354ce7394d5b2e1cc (diff)
downloadkolla-fcda6a06d8eee9d3f3199962b36a04a8c702072c.tar.gz
kolla-fcda6a06d8eee9d3f3199962b36a04a8c702072c.zip
Keystone installation from source
Makes use of new gen-source-tar script to provide a source based keystone image. This patch introduces a new concept of a .buildinfo file, which provides variables specific to the image being built which cannot be defaulted in a generic way, at least until the build script is overhauled. This file is sourced before the .buildconf which still leaves everything customisable by the user. Co-Authored-By: Paul Bourke <paul.bourke@oracle.com> Change-Id: I0ec6b9cfe6d4173f3192e4ae5833fb0f6d333f1c Implements: blueprint install-from-source
Diffstat (limited to 'tools')
-rwxr-xr-xtools/build-docker-image5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/build-docker-image b/tools/build-docker-image
index 9bd1d4273..7ab382333 100755
--- a/tools/build-docker-image
+++ b/tools/build-docker-image
@@ -36,6 +36,7 @@ EOF
}
[ -f $TOPDIR/.buildconf ] && . $TOPDIR/.buildconf
+[ -f $IMGDIR/.buildinfo ] && . $IMGDIR/.buildinfo
[ -f $IMGDIR/.buildconf ] && . $IMGDIR/.buildconf
ARGS=$(getopt -o hr:n:t:pfuN -l help,prefix:,namespace:,push,pull,private-registry:,release,tag:,force-rm,no-cache,no-use-released-parent,retry: -- "$@") || { usage >&2; exit 2; }
@@ -149,6 +150,10 @@ sed -i.bak "s|%%KOLLA_NAMESPACE%%|${NAMESPACE}|g" $TMPDIR/Dockerfile
sed -i.bak "s|%%KOLLA_PREFIX%%|${PREFIX}|g" $TMPDIR/Dockerfile
sed -i.bak "s|%%KOLLA_TAG%%|${PARENT_TAG}|g" $TMPDIR/Dockerfile
+if [[ "${SOURCE_INSTALL_AVAILABLE}" == "1" ]]; then
+ . ${TOPDIR}/tools/gen-source-tar.sh
+fi
+
TRY=0
while [ $((MAX_TRIES - 1)) -gt $TRY ]; do
if docker build ${BUILDFLAGS} -t "$FULLIMAGE" $TMPDIR; then