Skip to content

Commit

Permalink
Win docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Ifropc committed Dec 12, 2024
1 parent 2bd979f commit fd6b0b8
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/bindings-ts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,22 @@ jobs:
- name: Install wsl
if: runner.os == 'windows'
uses: vedantmgoyal9/setup-wsl2@main
- run: apt update && apt upgrade -y
- run: |
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo docker run hello-world
if: runner.os == 'windows'
shell: wsl-run {0} # add this to run the commands inside linux
- run: ls -la
Expand Down

0 comments on commit fd6b0b8

Please sign in to comment.