1. create a new aws ec2 instance
2. check the git, usually the default of git install in the instance should be 1.18.XX, we need to update it to git 2.XXX
$ git --version
$ sudo yum remove git*
$ sudo yum -y install https://packages.endpoint.com/rhel/7/os/x86_64/endpoint-repo-1.7-1.x86_64.rpm
$ sudo yum install git
$ git --version
git version 2.30.1
3. check if the docker is installed in the instance, we need to intall it if not.
$docker --verison
$sudo yum intall docker
$sudo service docker restart
add current user to docker group, give the user access to docker, so that we don't need to add "sudo" when using docker.
$sudo groupadd docker
$sudo usermod -aG docker centos
$sudo reboot #restart the instance.
4.setup runner in ths instance
install git 2.30 for ubuntu 18.04:
remove the old version
$sudo apt-get remove git
Step 1: Add the Official PPA by GIT
sudo add-apt-repository ppa:git-core/ppa
Step 2: Update the repository
sudo apt update
Step 3: Install Git 2.30.0
sudo apt install git
install git-lfs:
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
sudo apt-get install git-lfs
git lfs install