Last active
May 26, 2020 11:44
-
-
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)
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
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