Skip to content

Instantly share code, notes, and snippets.

@nickyfoto
Last active February 15, 2019 21:58
Show Gist options
  • Save nickyfoto/22f4f80c43908ea352ff366d32b807ac to your computer and use it in GitHub Desktop.
Save nickyfoto/22f4f80c43908ea352ff366d32b807ac to your computer and use it in GitHub Desktop.
cloud9 initial script
# set java
sudo yum -y update
sudo yum -y install java-1.8.0-openjdk-devel
sudo update-alternatives --config java
sudo update-alternatives --config javac
sudo yum -y update
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
. ~/.bashrc
nvm install node
npm install -g yarn
# remove unused images
docker image prune -a
# install docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment