Skip to content

Instantly share code, notes, and snippets.

@leogdion
Last active April 28, 2025 17:43
Show Gist options
  • Save leogdion/b6a21d77523d441924f8eac5adb2bffb to your computer and use it in GitHub Desktop.
Save leogdion/b6a21d77523d441924f8eac5adb2bffb to your computer and use it in GitHub Desktop.
sudo dd if=/dev/zero of=/swapfile bs=1M count=4096
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
# Add to /etc/fstab to make permanent
echo '/swapfile swap swap defaults 0 0' | sudo tee -a /etc/fstab
sudo yum update -y && sudo yum install docker -y && sudo yum install git -y && sudo yum install libicu -y &&
sudo systemctl start docker
sudo systemctl enable docker
sudo usermod -a -G docker ec2-user
sudo chmod 666 /var/run/docker.sock
# Create a folder
$ mkdir actions-runner && cd actions-runner
Copied! # Download the latest runner package
$ curl -o actions-runner-linux-x64-2.323.0.tar.gz -L https://github.com/actions/runner/releases/download/v2.323.0/actions-runner-linux-x64-2.323.0.tar.gz
Copied! # Optional: Validate the hash
$ echo "0dbc9bf5a58620fc52cb6cc0448abcca964a8d74b5f39773b7afcad9ab691e19 actions-runner-linux-x64-2.323.0.tar.gz" | shasum -a 256 -c
# Extract the installer
$ tar xzf ./actions-runner-linux-x64-2.323.0.tar.gz
# Create the runner and start the configuration experience
$ ./config.sh --url https://github.com/brightdigit --token xxx
Copied! # Last step, run it!
$ sudo ./svc.sh install
$ sudo ./svc.sh start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment