Sha256: 5616245bf756fc31c830b8602fc25732e0c55056e5eff682e538ad9c59a3eba3

Contents?: true

Size: 1.39 KB

Versions: 9

Compression:

Stored size: 1.39 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 "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 kexec-tools debconf-utils rsyslog-gnutls
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

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/armoryd: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

9 entries across 9 versions & 1 rubygems

Version Path
stacco-0.1.64 ./priv/roles/BaseImageGenerator.sh
stacco-0.1.63 ./priv/roles/BaseImageGenerator.sh
stacco-0.1.62 ./priv/roles/BaseImageGenerator.sh
stacco-0.1.61 ./priv/roles/BaseImageGenerator.sh
stacco-0.1.60 ./priv/roles/BaseImageGenerator.sh
stacco-0.1.59 ./priv/roles/BaseImageGenerator.sh
stacco-0.1.57 ./priv/roles/BaseImageGenerator.sh
stacco-0.1.53 ./priv/roles/BaseImageGenerator.sh
stacco-0.1.52 ./priv/roles/BaseImageGenerator.sh