Skip to content

Instantly share code, notes, and snippets.

@aweiteka
Created September 24, 2014 12:51
Show Gist options
  • Select an option

  • Save aweiteka/7b6a5e5ad3508d1af043 to your computer and use it in GitHub Desktop.

Select an option

Save aweiteka/7b6a5e5ad3508d1af043 to your computer and use it in GitHub Desktop.
#!/bin/bash
declare -A IMAGES
# ["build_directory"]=image/name
IMAGES+=( ["base"]=aweiteka/pulp-centosbase \
["config-data"]=aweiteka/pulp-data \
["crane-allinone"]=aweiteka/pulp-crane-allinone \
["worker"]=aweiteka/pulp-worker \
["qpid"]=aweiteka/pulp-qpid \
["mondodb"]=aweiteka/pulp-mongodb \
["apache"]=aweiteka/pulp-apache \
["admin-client"]=aweiteka/pulp-admin \
["publish-client"]=aweiteka/pulp-publish-docker )
for dir in ${!IMAGES[@]}; do
echo "Building ${IMAGES[${dir}]} ..."
sudo docker build --no-cache -t ${IMAGES[${dir}]} ${dir}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment