Skip to content

Instantly share code, notes, and snippets.

@7coil
Last active March 1, 2021 17:41
Show Gist options
  • Save 7coil/0ddbaac2b8baf545853d4e4971dbfae8 to your computer and use it in GitHub Desktop.
Save 7coil/0ddbaac2b8baf545853d4e4971dbfae8 to your computer and use it in GitHub Desktop.
# Update your APT repositories
sudo apt update
# Install some things needed to run the following commands
sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
# Add the docker pub key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# Add the Docker repository to your machine
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
# Update your APT repositories again (which now include the docker repository)
sudo apt update
# Install Docker and Docker Compose
sudo apt install docker-ce docker-ce-cli containerd.io docker-compose
###
# SSH KEYGEN
# For cloning the repository
###
# Run, accepting all defaults
ssh-keygen
# Copy the output and pop it in https://github.com/settings/keys
cat ~/.ssh/id_rsa.pub
# Go to wherever you like - I love the Documents folder.
cd ~/Documents/
# Clone the repository
git clone git@github.com:RHUL-CS-Projects/TeamProject2021_22.git
###
# RUNNING
###
# Run without build
docker-compose up
# Run with build
docker-compose up --build
# Delete data
docker-compose rm
# Delete only the database
docker-compose rm database
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment