Sha256: 1ae4d623025a6fc7fa4a6adffa072f344424f8bbf0b1dba27e45ff2ab186a223

Contents?: true

Size: 1.64 KB

Versions: 3

Compression:

Stored size: 1.64 KB

Contents

die(){
  echo "error: $1" >&2
  exit 1
}

set -e

export HOME=/root
cd "$HOME"

echo "enabling mirroring for security apt sources"
sed -i "s/security\.ubuntu\.com/${AWS_REGION}.ec2.archive.ubuntu.com/g" /etc/apt/sources.list

echo "adding vendor apt sources"
apt-key adv --keyserver 'hkp://pgp.mit.edu:80' --recv-keys 'C43C79AD'
echo "deb http://rep.logentries.com/ trusty main" > /etc/apt/sources.list.d/logentries.list

echo "installing packages"
afg() {
  DEBIAN_FRONTEND=noninteractive \
  apt-get -q -y --force-yes \
  -o Dpkg::Options::="--force-confnew" \
  $@
}

afg clean
afg update
afg dist-upgrade
afg install htop tree btrfs-tools xz-utils logentries kexec-tools debconf-utils
afg install python-setuptools python-pip python-setproctitle bundler ruby-nokogiri
afg clean

debconf-set-selections <<EOF
kexec-tools kexec-tools/load_kexec boolean true
kexec-tools kexec-tools/use_grub_config boolean true
EOF


pip install -q awscli
gem install -q --no-rdoc --no-ri aws-sdk docker-utils

touch /etc/default/logentries_not_to_be_run
apt-get install -qy logentries-daemon 2>/dev/null || :

echo "installing aws cfn-tools"
easy_install "https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz"

docker-utils bootstrap

docker pull tianon/true:latest
docker pull bexio/base:latest

docker pull bexio/amb:latest
docker pull bexio/bitcoind:latest
docker pull bexio/postgresql:latest
docker pull bexio/bexng:latest
docker pull bexio/bexng-frontend:latest
docker pull bexio/toolchain:latest

echo "bootstrapping bitcoind service"
docker run --name="btc-data" bexio/bitcoind:latest /bin/true
docker run --name="tbtc-data" bexio/bitcoind:latest /bin/true

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
stacco-0.1.41 ./priv/roles/BaseImageGenerator.sh
stacco-0.1.40 ./priv/roles/BaseImageGenerator.sh
stacco-0.1.39 ./priv/roles/BaseImageGenerator.sh