Add setup script for Galera
This commit is contained in:
parent
26187c32f7
commit
f5e8ac12fa
14
galera/setup.sh
Normal file
14
galera/setup.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user