Skip to content

Commit

Permalink
setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-brennan2005 committed Jun 11, 2024
1 parent aed6ec1 commit 4044f79
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
5 changes: 0 additions & 5 deletions config/.env.template
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ SAC_AWS_REGION="SAC_AWS_REGION"

SAC_SUDO_PASSWORD="Password#!1"

SAC_AWS_BUCKET_NAME="SAC_AWS_BUCKET_NAME"
SAC_AWS_ID="SAC_AWS_ID"
SAC_AWS_SECRET="SAC_AWS_SECRET"
SAC_AWS_REGION="SAC_AWS_REGION"

SAC_RESEND_API_KEY="SAC_RESEND_API_KEY"

SAC_CALENDAR_MAX_TERMINATION_DATE="12-31-2024"
Expand Down
18 changes: 18 additions & 0 deletions deployment/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
sudo yum update -y
sudo yum install -y docker git golang
sudo systemctl enable --now docker
sudo usermod -a -G docker ec2-user

# Install the docker compose plugin for all users
sudo mkdir -p /usr/local/lib/docker/cli-plugins

sudo curl -sL https://github.com/docker/compose/releases/latest/download/docker-compose-linux-"$(uname -m)" \
-o /usr/local/lib/docker/cli-plugins/docker-compose

# Set ownership to root and make executable
test -f /usr/local/lib/docker/cli-plugins/docker-compose \
&& sudo chown root:root /usr/local/lib/docker/cli-plugins/docker-compose
test -f /usr/local/lib/docker/cli-plugins/docker-compose \
&& sudo chmod +x /usr/local/lib/docker/cli-plugins/docker-compose

git clone -b prod-business https://github.com/GenerateNU/sac

0 comments on commit 4044f79

Please sign in to comment.