Created
February 2, 2020 01:00
-
-
Save get-data-/c893527ca42daa520e15a07459cdf90d to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
basics() { | |
sudo apt update -y | |
sudo apt upgrade -y | |
sudo apt-get install build-essential libssl-dev libffi-dev python-dev | |
sudo apt -y install apt-transport-https ca-certificates curl gnupg-agent software-properties-common | |
sudo apt install git -y | |
sudo apt install wget -y | |
sudo apt install ruby -y | |
sudo apt install cmdtest | |
sudo apt install python3-pip -y | |
sudo snap install jq -y | |
# update to latest npm and v13 Nodejs | |
sudo npm install npm@latest -g | |
curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash - | |
sudo apt-get install -y nodejs | |
} | |
python_dependencies() { | |
# pip install pygraphviz needs below prior to eralchemy | |
sudo apt-get install graphviz libgraphviz-dev pkg-config | |
} | |
ide_extension_support() { | |
sudo snap install shellcheck | |
} | |
applications() { | |
# Sentry | |
curl -sL https://sentry.io/get-cli/ | bash | |
# Docker | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
sudo apt update | |
sudo apt -y install docker-ce docker-ce-cli containerd.io | |
sudo usermod -aG docker $USER | |
newgrp docker | |
# docker-compose | |
VERSION=$(curl --silent https://api.github.com/repos/docker/compose/releases/latest | jq .name -r) | |
DESTINATION=/usr/local/bin/docker-compose | |
sudo curl -L https://github.com/docker/compose/releases/download/${VERSION}/docker-compose-$(uname -s)-$(uname -m) -o $DESTINATION | |
sudo chmod 755 $DESTINATION | |
sudo ln /usr/local/bin/docker-compose /usr/bin | |
sudo apt install amazon-ecr-credential-helper | |
# Yarn | |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | |
sudo apt update && sudo apt install yarn | |
} | |
ecr_access() { | |
# Install ECR credentials helper on Ubuntu 18 LTS | |
# https://aws.amazon.com/blogs/compute/authenticating-amazon-ecr-repositories-for-docker-cli-with-credential-helper/ | |
git clone https://github.com/awslabs/amazon-ecr-credential-helper.git | |
cd amazon-ecr-credential-helper/ | |
sudo apt install make | |
make docker | |
sudo cp ./bin/local/docker-credential-ecr-login /usr/local/bin/docker-credential-ecr-login | |
mkdir ~/.docker | |
cat '{ "credsStore": "ecr-login"}' > ~/.docker/config.json | |
# Remove Go container used to compile binary | |
docker system prune -a | |
} | |
npm install -g sass | |
pip3 install awscli --upgrade --user |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment