Skip to content

Instantly share code, notes, and snippets.

@euclideansphere
Last active March 12, 2021 19:49
Show Gist options
  • Save euclideansphere/17fa33d9e62dd2cde9c8fa94f3691eec to your computer and use it in GitHub Desktop.
Save euclideansphere/17fa33d9e62dd2cde9c8fa94f3691eec to your computer and use it in GitHub Desktop.
github runner install
#!/usr/bin/env bash
# first this - https://github.com/GenoPalate/GenoPalateWeb/settings/actions/add-new-runner?arch=x64&os=linux
sudo ./svc.sh install
sudo ./svc.sh start
sudo yum install -y git rsync jq postgresql docker
sudo amazon-linux-extras install docker
# yarn also should be installed on the machine, but setup-node makes a coinflip decision to install yarn so you gotta install it in the runner task probably
# docker is flaming pile of shit
sudo services docker start
sudo systemctl start docker
sudo usermod -a -G docker $USER
sudo chmod 777 /var/run/docker.sock
sudo systemctl enable docker
docker ps
# docker cleanup cron job -
(crontab -l ; echo "0 0 * * 1,2,3,4,5 docker system prune -af") | crontab -
# yarn cache clean cron job -
(crontab -l ; echo "0 0 * * 1,2,3,4,5 yarn cache clean") | crontab -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment