Skip to content

Instantly share code, notes, and snippets.

@highercomve
Last active June 12, 2020 19:59
Show Gist options
  • Save highercomve/b2cc8dfdd88036538ad0896127635a9a to your computer and use it in GitHub Desktop.
Save highercomve/b2cc8dfdd88036538ad0896127635a9a to your computer and use it in GitHub Desktop.
#!/bin/bash
[ "$UID" -eq 0 ] || exec sudo "$0" "$@"
apt update
apt upgrade
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
source ~/.bashrc
nvm install 14.0.0
npm install -g yarn
sudo apt-get remove docker docker-engine docker.io containerd runc
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 focal stable"
apt-get update
apt-get install docker-ce docker-ce-cli containerd.io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment