Last active
March 1, 2021 17:41
-
-
Save 7coil/0ddbaac2b8baf545853d4e4971dbfae8 to your computer and use it in GitHub Desktop.
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
# 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 [email protected]: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