github.com/misfo/deis@v1.0.1-0.20141111224634-e0eee0392b8a/store/base/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 controller locally" 9 echo 10 exit 1 11 fi 12 13 DEBIAN_FRONTEND=noninteractive 14 15 # install common packages 16 apt-get update && apt-get install -y curl net-tools sudo 17 18 # install etcdctl 19 curl -sSL -o /usr/local/bin/etcdctl https://s3-us-west-2.amazonaws.com/opdemand/etcdctl-v0.4.6 \ 20 && chmod +x /usr/local/bin/etcdctl 21 22 # Use modified confd with a fix for /etc/hosts - see https://github.com/kelseyhightower/confd/pull/123 23 curl -sSL https://s3-us-west-2.amazonaws.com/opdemand/confd-git-0e563e5 -o /usr/local/bin/confd 24 chmod +x /usr/local/bin/confd 25 26 curl -sSL 'https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc' | apt-key add - 27 echo "deb http://ceph.com/debian-giant trusty main" > /etc/apt/sources.list.d/ceph.list 28 29 apt-get update && apt-get install -yq ceph 30 31 apt-get clean -y 32 33 rm -Rf /usr/share/man /usr/share/doc 34 rm -rf /tmp/* /var/tmp/* 35 rm -rf /var/lib/apt/lists/*