2023-06-16 13:10:10 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
BASE_URL=https://git.cringe-studios.com/CringeStudios/cloud-computing/raw/branch/main/glusterfs
|
|
|
|
HOSTNAME=team07-glusterfs-0
|
|
|
|
|
|
|
|
apt update
|
|
|
|
apt install -y docker docker-compose
|
|
|
|
|
|
|
|
hostnamectl set-hostname $HOSTNAME
|
|
|
|
systemctl enable --now docker
|
|
|
|
|
|
|
|
cd /home/ubuntu
|
|
|
|
wget -O docker-compose.yml $BASE_URL/docker-compose.yml
|
2023-06-17 13:03:03 +02:00
|
|
|
wget -O my.layout $BASE_URL/my.layout
|
|
|
|
|
|
|
|
sfdisk /dev/sdb < my.layout
|