github.com/greenboxal/deis@v1.12.1/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/get-deis/etcdctl-v0.4.9 \
    20      && chmod +x /usr/local/bin/etcdctl
    21  
    22  # install confd
    23  CONFD_VERSION=0.10.0
    24  curl -sSL -o /usr/local/bin/confd https://github.com/kelseyhightower/confd/releases/download/v$CONFD_VERSION/confd-$CONFD_VERSION-linux-amd64 \
    25  	&& chmod +x /usr/local/bin/confd
    26  
    27  curl -sSL 'https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc' | apt-key add -
    28  echo "deb http://ceph.com/debian-hammer trusty main" > /etc/apt/sources.list.d/ceph.list
    29  
    30  apt-get update && apt-get install -yq ceph lsb-release
    31  
    32  apt-get clean -y
    33  
    34  rm -Rf /usr/share/man /usr/share/doc
    35  rm -rf /tmp/* /var/tmp/*
    36  rm -rf /var/lib/apt/lists/*