Skip to content

Instantly share code, notes, and snippets.

@eric-wu
Last active January 4, 2016 18:09
Show Gist options
  • Save eric-wu/8658696 to your computer and use it in GitHub Desktop.
Save eric-wu/8658696 to your computer and use it in GitHub Desktop.
Dashboard AMI creation
# Seed AMI: ami-e0efab88, Debian 7.8, hvm x86_64 ebs
sudo su - root
sudo echo 'deb http://cloudfront.debian.net/debian wheezy-backports main' >> /etc/apt/sources.list
sudo echo 'vm.overcommit_memory=1' >> /etc/sysctl.conf # For optimizing Redis dump
su - admin
sudo apt-get --quiet --yes --target-release wheezy-backports update
sudo apt-get --quiet --yes --target-release wheezy-backports upgrade
sudo apt-get autoclean
sudo apt-get autoremove
sudo apt-get --quiet --yes install less vim zip
sudo apt-get --quiet --yes --target-release wheezy-backports install openjdk-7-jdk
sudo apt-get --quiet --yes --target-release wheezy-backports install redis-server
sudo apt-get --quiet --yes --target-release wheezy-backports install nginx-light
sudo vim /etc/nginx/nginx.conf # For nginx conf, see gist:8483112
sudo nginx -t
sudo service nginx reload
mkdir .dashboard
touch .dashboard/dashboard.config
chmod 500 .dashboard
vim .dashboard/dashboard.config
chmod 500 .dashboard/dashboard.config
history -c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment