Skip to content

Commit

Permalink
Fix: Try to fix docker in image
Browse files Browse the repository at this point in the history
  • Loading branch information
wickdChromosome committed Jun 18, 2024
1 parent 1bea70a commit 772c9d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 23 deletions.
25 changes: 3 additions & 22 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,34 +25,15 @@ jobs:

- name: Install dependencies
run: |
#sudo apt install podman -y
#sudo systemctl enable podman.service
sudo apt update
sudo apt purge docker.io containerd runc
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo systemctl enable docker.service
python -m pip uninstall molecule-docker
python -m pip install molecule-docker
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
sudo apt install podman -y
sudo systemctl enable podman.service
- name: Lint with ansible-lint including yamllint
run: |
echo "ansible-lint"
- name: Test with molecule
run: |
sudo usermod -aG docker $USER
newgrp docker
systemctl status docker
ls -l /var/run/docker.sock
#docker info
export DOCKER_HOST="/run/docker.sock"
export molecule_inst=$(which molecule)
groups $(whoami)
$molecule_inst --debug test
molecule test
env:
MOLECULE_DISTRO: ${{ matrix.distro }}
2 changes: 1 addition & 1 deletion molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dependency:
name: galaxy

driver:
name: docker
name: podman

platforms:
- name: instance
Expand Down

0 comments on commit 772c9d6

Please sign in to comment.