Add setup script for Galera

This commit is contained in:
MrLetsplay 2023-06-14 12:01:31 +02:00
parent 26187c32f7
commit f5e8ac12fa

14
galera/setup.sh Normal file
View File

@ -0,0 +1,14 @@
#!/bin/bash
BASE_URL=https://git.cringe-studios.com/CringeStudios/cloud-computing/raw/branch/main
FOLDER=galera/bootstrap
FULL_COMPOSE_URL=$BASE_URL/$FOLDER/docker-compose.yml
FULL_ENV_URL=$BASE_URL/$FOLDER/.env
apt update
apt install -y docker docker-compose
cd /home/cc-student
wget -O docker-compose.yml $FULL_COMPOSE_URL
wget -O .env $FULL_ENV_URL