Skip to content

Commit

Permalink
Added pruning to yaml file
Browse files Browse the repository at this point in the history
  • Loading branch information
erland-syafiq committed Jun 2, 2024
1 parent e547aed commit 6cf2272
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/vtmunc-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ jobs:
run: docker rm -f vtmunc || true
- name: Run container
run: docker run -p 8080:8080 -d --name vtmunc vtmunc/vtmunc
- name: Clean up (Removes old containers)
run: docker system prune -f
24 changes: 11 additions & 13 deletions aws/ec2-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,12 @@ curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo
sudo apt update
sudo apt install caddy

# create user
sudo useradd -m -d /home/webapp -s /bin/bash webapp
sudo usermod -aG sudo webapp
sudo passwd -d webapp
# Writes config file
sudo wget https://raw.githubusercontent.com/Trafix120/VTMUNC/main/reverse-proxy/CaddyFile -O /etc/caddy/Caddyfile
sudo systemctl enable caddy
sudo systemctl restart caddy

# Allow ssh for webapp
sudo mkdir /home/webapp/.ssh
sudo cp /home/ubuntu/.ssh/authorized_keys /home/webapp/.ssh/authorized_keys

# Set the correct permissions for the authorized_keys file
sudo chmod 600 /home/webapp/.ssh/authorized_keys
sudo chown webapp:webapp /home/webapp/.ssh/authorized_keys

# Install Docker
# Add Docker's official GPG key:
Expand All @@ -36,17 +30,21 @@ sudo apt-get update

sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

# Add docker to user group
sudo usermod -aG docker $USER


# Add github runner
# Create a folder

# Creates user githubrunner
sudo useradd -m -d /home/githubrunner -s /bin/bash githubrunner
sudo passwd -d githubrunner
sudo usermod -aG sudo githubrunner
sudo usermod -aG docker githubrunner

# Login to githubrunner
su githubrunner
cd ~

# Creates a folder
mkdir actions-runner && cd actions-runner
# Download the latest runner package
curl -o actions-runner-linux-x64-2.316.1.tar.gz -L https://github.com/actions/runner/releases/download/v2.316.1/actions-runner-linux-x64-2.316.1.tar.gz
Expand Down
4 changes: 2 additions & 2 deletions public/src/pages/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ function Home() {
<div className="heroHighlightBox"></div>
<div className="heroContent">
<h3>
Feb 2nd - Feb 4th
Spring 2025
</h3>
<h1>
VTMUNC 2024
VTMUNC 2025
</h1>
<h4>
The premier Model United Nations conference for high school students
Expand Down

0 comments on commit 6cf2272

Please sign in to comment.