Skip to content

Instantly share code, notes, and snippets.

@wongcyrus
Created September 9, 2020 07:21
Show Gist options
  • Save wongcyrus/17849b2c7dcdd2b60cffa98cc2260be2 to your computer and use it in GitHub Desktop.
Save wongcyrus/17849b2c7dcdd2b60cffa98cc2260be2 to your computer and use it in GitHub Desktop.
Run Open Project in AWS Cloud9
#!/bin/bash
sudo curl -L "https://github.com/docker/compose/releases/download/1.27.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose --version
wget https://gist.githubusercontent.com/wongcyrus/a4e726b961260395efa7811cab0b4516/raw/543fe335adaf7222f5f4fca475cf716d61b9a77b/resize.sh
chmod +x resize.sh
./resize.sh
security_group=$(ec2-metadata -s | cut -d " " -f 2);
aws ec2 authorize-security-group-ingress --group-name $security_group --protocol tcp --port 8080 --cidr 0.0.0.0/0
git clone --depth=1 --branch=stable/10 https://github.com/opf/openproject
cd openproject
docker-compose up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment