cloud-computing/galera/setup.sh

19 lines
441 B
Bash
Raw Normal View History

2023-06-14 12:01:31 +02:00
#!/bin/bash
BASE_URL=https://git.cringe-studios.com/CringeStudios/cloud-computing/raw/branch/main
FOLDER=galera/bootstrap
2023-06-14 12:44:00 +02:00
HOSTNAME=galera-node-0
2023-06-14 12:01:31 +02:00
FULL_COMPOSE_URL=$BASE_URL/$FOLDER/docker-compose.yml
FULL_ENV_URL=$BASE_URL/$FOLDER/.env
apt update
apt install -y docker docker-compose
2023-06-16 12:36:00 +02:00
hostnamectl set-hostname $HOSTNAME
2023-06-16 12:41:05 +02:00
systemctl enable --now docker
2023-06-14 12:44:00 +02:00
cd /home/ubuntu
2023-06-14 12:01:31 +02:00
wget -O docker-compose.yml $FULL_COMPOSE_URL
2023-06-16 12:36:00 +02:00
wget -O .env $FULL_ENV_URL