Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save springcoil/9ef44c6c591129e108d06a4c6126d50c to your computer and use it in GitHub Desktop.
Save springcoil/9ef44c6c591129e108d06a4c6126d50c to your computer and use it in GitHub Desktop.
Getting serverless framework working on Ubuntu 18.04 ec2 (with docker and a few other packages)
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt update
sudo apt install -y default-jdk
sudo apt-get install -y xdg-utils #needed for serverless login
npm install
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository -y "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
sudo apt install -y docker-ce
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
serverless login
# You'll need to open a link in a browser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment