Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
bakpaul committed Jan 5, 2024
1 parent e3c91ba commit b295f41
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 5 deletions.
1 change: 0 additions & 1 deletion docker/sofabuilder_ubuntu/test

This file was deleted.

33 changes: 29 additions & 4 deletions setup/setup-ubuntu_builder.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,31 @@
# 2 : 46
# 3 : 28
# 4 : 05
#To mount the data volume
#
#1) run `sudo gdisk /dev/vdb`
# Create a new gpt partition table
# Create a new partition with all the defaults parameters
# Write out
#
#2) run `sudo mkfs.ext4 /dev/vdb1` to create file system (generate UUID)
#
#3) run sudo blkid to get the UUID of /dev/vdb1
#
#Now we want to automatically mount /dev/vdb1 to /builds
#
#1) backup current /builds folder which is also ci's home folder
# run sudo mv /builds /builds2
#
#2) recreate a /builds : run sudo mkdir /builds
#
#3) modify /etc/fstab file and add a line with
# UUID=(the uuid that you got at the end of last part) /builds ext4 defaults 0 1
#
#4) run sudo mount -a to mount the volume
#
#5) run shopt -s dotglob && sudo mv /builds2 /builds && sudo rm -rf /builds2 && sudo chown ci: /builds
# this will move all file from builds2 to build, including hidden files then clean up everything and give back ownership of the /build folder to the ci user
#
#6) last step is to reboot the slaves

# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install -y ca-certificates curl gnupg
Expand All @@ -22,4 +47,4 @@ sudo apt-get install -y git docker-ce docker-ce-cli containerd.io docker-buildx-
sudo groupadd docker
sudo usermod -aG docker $USER

docker pull sofaframework/sofabuilder_ubuntu:builders_transition
docker pull sofaframework/sofabuilder_ubuntu:latest

0 comments on commit b295f41

Please sign in to comment.