Last active
February 24, 2019 16:43
-
-
Save 9to6/ec85c9cee4c1351774382b6e863824fc to your computer and use it in GitHub Desktop.
Lightsail initial script for Docker on ubuntu 18.04
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 | |
sudo apt-get update | |
sudo apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg-agent \ | |
software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo apt-key fingerprint 0EBFCD88 | |
sudo add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ | |
stable" | |
sudo apt-get update | |
sudo apt-get install -y docker-ce docker-ce-cli containerd.io | |
export VERSION_STRING=5:18.09.2~3-0~ubuntu-bionic | |
sudo apt-get install -y docker-ce=$VERSION_STRING docker-ce-cli=$VERSION_STRING containerd.io | |
sudo usermod -aG docker $USER | |
sudo curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
# zsh | |
sudo apt-get install -y zsh | |
sudo chsh -s /usr/bin/zsh | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
# nvim | |
sudo apt-get install -y software-properties-common | |
sudo add-apt-repository ppa:neovim-ppa/stable | |
sudo apt-get update | |
sudo apt-get install -y neovim | |
sudo apt-get install -y python-dev python-pip python3-dev python3-pip | |
sudo pip install --upgrade pip | |
pip3 install neovim | |
sudo update-alternatives --install /usr/bin/vi vi /usr/bin/nvim 60 | |
sudo update-alternatives --config vi | |
sudo update-alternatives --install /usr/bin/vim vim /usr/bin/nvim 60 | |
sudo update-alternatives --config vim | |
sudo update-alternatives --install /usr/bin/editor editor /usr/bin/nvim 60 | |
sudo update-alternatives --config editor | |
# rvm | |
sudo apt-add-repository -y ppa:rael-gc/rvm | |
sudo apt-get update | |
sudo apt-get install -y rvm | |
sudo usermod -aG rvm $USER | |
# tmux | |
sudo apt-get install tmux | |
# nix | |
curl https://nixos.org/nix/install | sh | |
# tig | |
nix-env -i tig | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment