diff options
| author | Lars Kellogg-Stedman <lars@redhat.com> | 2014-10-03 16:20:18 -0400 |
|---|---|---|
| committer | Lars Kellogg-Stedman <lars@redhat.com> | 2014-10-04 11:03:39 -0400 |
| commit | 24b6db92bc5cf56a5e2c1da3481ee57bddba7c80 (patch) | |
| tree | 5a2473f302db43d4ddf329f1cc9a38d1c87b0ec6 /docker/build | |
| parent | 9ce465d544cfecb7f96e7b453d7ad567775da648 (diff) | |
| download | kolla-24b6db92bc5cf56a5e2c1da3481ee57bddba7c80.tar.gz kolla-24b6db92bc5cf56a5e2c1da3481ee57bddba7c80.zip | |
introduce a new build mechanism
This patch replaces the collection of individual "build" scripts with a
single script (tools/build-docker-image), made available as "build"
inside each image directory.
The build-docker-image script will, by default, build images tagged with
the current commit id in order to prevent developers from accidentally
stepping on each other or on release images.
Documentation in docs/image-building.md describes the script in more
detail.
Change-Id: I444d5c2256a85223f8750a0904cb4b07f18ab67f
Diffstat (limited to 'docker/build')
| -rwxr-xr-x | docker/build | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/docker/build b/docker/build deleted file mode 100755 index 7c9268870..000000000 --- a/docker/build +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash -# If the directories were numbered, a simple find could be used to build ;-) -push= - -CONTAINERS=(fedora-rdo-base cinder glance/glance-base glance/glance-api glance/glance-registry heat/heat-base heat/heat-api heat/heat-engine keystone mariadb rabbitmq swift/swift-base swift/swift-account swift/swift-container swift/swift-object swift/swift-proxy-server nova-compute/nova-base nova-compute/nova-compute nova-compute/nova-libvirt) - - -while getopts "hp" opt > /dev/null 2>&1; do - case $opt in - p) - push=yes - ;; - h) - cat <<EOF -$0 script will build all kolla docker images optionally if you specify the -p -option and you have access to the kubeglue docker namespace you will be able to -push the image in docker registry. -EOF - exit 0 - ;; - esac -done - -for IMAGE in ${CONTAINERS[@]}; do - pushd . - cd ${IMAGE} - echo "Building $IMAGE" - ./build - if [[ ${push} == yes ]] ;then - echo "Pushing $IMAGE" - ./push - fi - popd -done |
