Spaces:
Runtime error
Runtime error
**Install docker and docker-compose on Ubuntu 22.04** | |
Install docker | |
```bash | |
sudo apt update | |
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
sudo apt update | |
sudo apt install -y docker-ce | |
sudo systemctl start docker | |
sudo systemctl enable docker | |
sudo usermod -aG docker $USER | |
sudo systemctl restart docker | |
sudo reboot | |
docker --version | |
``` | |
Install docker-compose | |
```bash | |
sudo rm /usr/local/bin/docker-compose | |
sudo curl -L "https://github.com/docker/compose/releases/download/v2.10.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
docker-compose --version | |
``` | |
** Github actions self-hosted runner | |
```bash | |
mkdir actions-runner && cd actions-runner | |
curl -o actions-runner-linux-x64-2.320.0.tar.gz -L https://github.com/actions/runner/releases/download/v2.320.0/actions-runner-linux-x64-2.320.0.tar.gz | |
echo "93ac1b7ce743ee85b5d386f5c1787385ef07b3d7c728ff66ce0d3813d5f46900 actions-runner-linux-x64-2.320.0.tar.gz" | shasum -a 256 -c | |
tar xzf ./actions-runner-linux-x64-2.320.0.tar.gz | |
./config.sh --url https://github.com/soutrik71/pytorch-template-aws --token A75IT2B6B7L22EQZFM6AZLLHFIVA2 | |
# cd actions-runner/ | |
./run.sh | |
``` | |
** Activate aws cli | |
```bash | |
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" | |
unzip awscliv2.zip | |
sudo ./aws/install | |
aws --version | |
``` |