Skip to content
Snippets Groups Projects
Commit 24b6db92 authored by Lars Kellogg-Stedman's avatar Lars Kellogg-Stedman
Browse files

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
parent 9ce465d5
No related branches found
No related tags found
No related merge requests found
Showing
with 12 additions and 88 deletions
#!/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
#!/bin/bash
docker build --tag kollaglue/fedora-rdo-cinder .
../../tools/build-docker-image
\ No newline at end of file
#!/bin/bash
docker push kollaglue/fedora-rdo-cinder .
#!/bin/bash
docker build --tag kollaglue/fedora-rdo-base .
../../tools/build-docker-image
\ No newline at end of file
#!/bin/bash
docker push kollaglue/fedora-rdo-base .
#!/bin/sh
for image in glance-base glance-api glance-registry; do
(
pushd $image
./build
popd
)
done
#!/bin/bash
docker build --tag kollaglue/fedora-rdo-glance-api .
../../../tools/build-docker-image
\ No newline at end of file
#!/bin/bash
docker push kollaglue/fedora-rdo-glance-api .
#!/bin/bash
docker build --tag kollaglue/fedora-rdo-glance-base .
../../../tools/build-docker-image
\ No newline at end of file
#!/bin/bash
docker push kollaglue/fedora-rdo-glance-base .
#!/bin/bash
docker build --tag kollaglue/fedora-rdo-glance-registry .
../../../tools/build-docker-image
\ No newline at end of file
#!/bin/bash
docker push kollaglue/fedora-rdo-glance-registry .
#!/bin/sh
for image in glance-base glance-api glance-registry; do
(
pushd $image
./push
popd
)
done
#!/bin/bash
docker build --tag kollaglue/fedora-rdo-heat-api .
../../../tools/build-docker-image
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment