diff options
| author | Jenkins <jenkins@review.openstack.org> | 2014-10-03 18:43:36 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2014-10-03 18:43:36 +0000 |
| commit | 01f53ef0f5c9ae889be9eb52deb378bc0239f31f (patch) | |
| tree | 719af01af538e5b3f0a41e01af44bb09363f9a94 /docker | |
| parent | 3127f4cad36934ec1a7613a3613c0275aa418c21 (diff) | |
| parent | 4e1e9334d5c5681f368d381c82661dd1699a6ef5 (diff) | |
| download | kolla-01f53ef0f5c9ae889be9eb52deb378bc0239f31f.tar.gz kolla-01f53ef0f5c9ae889be9eb52deb378bc0239f31f.zip | |
Merge "Only push with the build script with -p"
Diffstat (limited to 'docker')
| -rwxr-xr-x | docker/build | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/docker/build b/docker/build index 34b8e6cc8..7c9268870 100755 --- a/docker/build +++ b/docker/build @@ -1,14 +1,34 @@ #!/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 - echo "Pushing $IMAGE" - ./push + if [[ ${push} == yes ]] ;then + echo "Pushing $IMAGE" + ./push + fi popd done |
