Compare commits

..

No commits in common. "3a1dda18c0ed5646d8404978684c1d9fde63e08d" and "b3cfe15cdbee7b1d0d007321620208847fb1a723" have entirely different histories.

4
3_2.py
View File

@ -148,6 +148,10 @@ runcmd:
- chmod +x /usr/local/bin/docker-compose
- systemctl start docker
- systemctl enable docker
- mkfs.ext4 -F /dev/disk/by-id/scsi-0HC_Volume_{volume_id}
- mkdir /mnt/{PREFIX}-gitea-volume
- mount -o discard,defaults /dev/disk/by-id/scsi-0HC_Volume_{volume_id} /mnt/{PREFIX}-gitea-volume
- echo "/dev/disk/by-id/scsi-0HC_Volume_{volume_id} /mnt/{PREFIX}-gitea-volume ext4 discard,nofail,defaults 0 0" >> /etc/fstab
- cd /root/ && docker-compose up -d
'''
gitea_server = client.servers.create(