Skip to content

Instantly share code, notes, and snippets.

@brk3
Created July 18, 2018 13:25
Show Gist options
  • Save brk3/21c243f32c6589caf8d2148b65a247a4 to your computer and use it in GitHub Desktop.
Save brk3/21c243f32c6589caf8d2148b65a247a4 to your computer and use it in GitHub Desktop.
#!/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