Created
July 18, 2018 13:25
-
-
Save brk3/21c243f32c6589caf8d2148b65a247a4 to your computer and use it in GitHub Desktop.
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 | |
set -x | |
build() { | |
project=$1 | |
docker build . \ | |
--build-arg http_proxy=$http_proxy \ | |
--build-arg https_proxy=$https_proxy \ | |
--build-arg no_proxy=$no_proxy \ | |
--build-arg PROJECT=${project} \ | |
--build-arg PROFILES="kolla ${project}" \ | |
--build-arg FROM=loci/base-centos \ | |
--build-arg WHEELS="loci/requirements:master-centos" \ | |
--tag loci/kolla-${project}-centos:master | |
} | |
export -f build | |
pushd dockerfiles/centos | |
docker build . \ | |
--build-arg http_proxy=$http_proxy \ | |
--build-arg https_proxy=$https_proxy \ | |
--build-arg no_proxy=$no_proxy \ | |
--tag loci/base-centos | |
popd | |
echo keystone glance nova neutron | xargs --max-procs=0 --delimiter=' ' --max-args=1 \ | |
--verbose -I {} bash -c "build \$@" _ {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment