Created
April 6, 2018 07:24
-
-
Save cice/9de63a44cfd3ec13968cf80ce763f30a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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