Created
September 20, 2018 17:08
-
-
Save evrardjp/cc6d69cdf279642c7012e7e26e9bdf1b to your computer and use it in GitHub Desktop.
LOCI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
FROMI="opensuse/leap:15" | |
BUILD_PROJECTS=("requirements" "keystone" "cinder" "glance" "heat" "horizon" "ironic" "neutron" "nova" "octavia") | |
set -ex | |
function build { | |
BUILDPROJECT=$1 | |
if [[ "${BUILDPROJECT}" == "requirements" ]] | |
then | |
docker build ./ --no-cache --force-rm --build-arg PROJECT=requirements --build-arg WHEELS='' --build-arg FROM="${FROMI}" --tag 172.17.0.1:5000/evrardjp/loci-leap15:master-requirements | |
docker push 172.17.0.1:5000/evrardjp/loci-leap15:master-requirements | |
else | |
docker build ./ --network=host --no-cache --force-rm --build-arg PROJECT="${BUILDPROJECT}" --build-arg WHEELS='172.17.0.1:5000/evrardjp/loci-leap15:master-requirements' --build-arg FROM="${FROMI}" --tag 172.17.0.1:5000/evrardjp/loci-leap15:master-${BUILDPROJECT} | |
fi | |
} | |
if [[ "$1" == "" ]] | |
then | |
for project in ${BUILD_PROJECTS[*]} | |
do | |
build $project | |
done | |
elif [[ "$1" == "openstack" ]] | |
then | |
for project in ${BUILD_PROJECTS[*]:1} | |
do | |
build $project | |
done | |
else | |
build $1 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a workaround of upstream image until a new version of bindep is released with my fix: | |
FROM opensuse/leap:15 | |
RUN sed -i 's/ID="opensuse-leap"/ID="opensuse"/g' /etc/os-release |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment