github.com/technosophos/deis@v1.7.1-0.20150915173815-f9005256004b/store/gateway/build.sh (about) 1 #!/usr/bin/env bash 2 3 # fail on any command exiting non-zero 4 set -eo pipefail 5 6 if [[ -z $DOCKER_BUILD ]]; then 7 echo 8 echo "Note: this script is intended for use by the Dockerfile and not as a way to build the store dashboard locally" 9 echo 10 exit 1 11 fi 12 13 DEBIAN_FRONTEND=noninteractive 14 15 apt-get update && apt-get install -yq radosgw radosgw-agent 16 17 # cleanup. indicate that python is a required package. 18 apt-get clean -y && \ 19 rm -Rf /usr/share/man /usr/share/doc && \ 20 rm -rf /tmp/* /var/tmp/* && \ 21 rm -rf /var/lib/apt/lists/* 22