From b295f41a6b13146487b2e9977f14045ace499883 Mon Sep 17 00:00:00 2001 From: bakpaul Date: Fri, 5 Jan 2024 16:01:46 +0100 Subject: [PATCH] clean --- docker/sofabuilder_ubuntu/test | 1 - setup/setup-ubuntu_builder.sh | 33 +++++++++++++++++++++++++++++---- 2 files changed, 29 insertions(+), 5 deletions(-) delete mode 100644 docker/sofabuilder_ubuntu/test diff --git a/docker/sofabuilder_ubuntu/test b/docker/sofabuilder_ubuntu/test deleted file mode 100644 index a84ee05..0000000 --- a/docker/sofabuilder_ubuntu/test +++ /dev/null @@ -1 +0,0 @@ -./ci/scripts/configure.sh /workspace/build/ /workspace/src/ ubuntu_gcc options "run-regression-tests run-scene-tests run-unit-tests force-full-build build-scope-full build-all-plugins" \ No newline at end of file diff --git a/setup/setup-ubuntu_builder.sh b/setup/setup-ubuntu_builder.sh index c15ba88..21c1f40 100644 --- a/setup/setup-ubuntu_builder.sh +++ b/setup/setup-ubuntu_builder.sh @@ -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 @@ -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