Skip to content

Instantly share code, notes, and snippets.

@ryanmaclean
Created December 18, 2016 19:10
Show Gist options
  • Select an option

  • Save ryanmaclean/227c604ec9bd00ffb50a318d3e0d979a to your computer and use it in GitHub Desktop.

Select an option

Save ryanmaclean/227c604ec9bd00ffb50a318d3e0d979a to your computer and use it in GitHub Desktop.
GitLab Runner EBS
sudo mkfs -t ext4 /dev/xvdf
sudo mkdir /ebscache
sudo mount /dev/xvdf /ebscache
sudo cp /etc/fstab /etc/fstab.orig
echo "/dev/xvdf /ebscache ext4 defaults,nofail 0 2" | sudo tee -a /etc/fstab
sudo mkdir /ebscache/cache
sudo mkdir /ebscache/build-cache
sudo chown gitlab-runner:gitlab-runner /ebscache/cache
sudo chown gitlab-runner:gitlab-runner /ebscache/build-cache
sudo chmod -R 755 /ebscache/cache
sudo chmod -R 755 /ebscache/build-cache
sudo rm -rf /cache
sudo ln -s /ebscache/cache /cache
sudo rm -rf /build-cache
sudo ln -s /ebscache/build-cache /build-cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment