Skip to content

Instantly share code, notes, and snippets.

@cice
Created April 6, 2018 07:24
Show Gist options
  • Save cice/9de63a44cfd3ec13968cf80ce763f30a to your computer and use it in GitHub Desktop.
Save cice/9de63a44cfd3ec13968cf80ce763f30a to your computer and use it in GitHub Desktop.
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
apt-get update -y
echo grub-pc hold | sudo dpkg --set-selections
apt-get upgrade -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold"
apt-get install -y apt-transport-https ca-certificates curl software-properties-common pv
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt-get update -y
apt-get install -y docker-ce
service docker start
apt-get install -y python-pip
pip install docker-compose
apt-get install -y zsh git
su -l <<-EOF
if [ -d ~/.oh-my-zsh ]; then
cd ~/.oh-my-zsh && git pull
else
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
fi
wget https://gist.githubusercontent.com/cice/b6d56a167b40f7061ff80e71b95a90c4/raw/800b3ab0fd97109a9a8317e5101476e2f36ca4d3/zshrc -O ~/.zshrc
EOF
chsh -s /bin/zsh docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment