From 9694dc83a75cab3f5598c05a4a208378fbe8df85 Mon Sep 17 00:00:00 2001 From: Federico Capoano Date: Wed, 22 May 2024 14:54:55 -0400 Subject: [PATCH] [ci/debug] Debug docker on github actions --- .github/workflows/ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a58b075a..641f1272 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,6 +26,21 @@ jobs: - debian11 steps: + - name: Check Docker Version + run: docker --version + + - name: Check Docker Info + run: docker info + + - name: Enable Debug Output + run: | + sudo mkdir -p /etc/systemd/system/docker.service.d + echo '[Service]' | sudo tee /etc/systemd/system/docker.service.d/override.conf + echo 'Environment="DOCKER_OPTS=--debug"' | sudo tee -a /etc/systemd/system/docker.service.d/override.conf + sudo systemctl daemon-reload + sudo systemctl restart docker + sudo journalctl -u docker.service --no-pager --since "5 minutes ago" + - uses: actions/checkout@v2 with: ref: ${{ github.event.pull_request.head.sha }} @@ -39,6 +54,8 @@ jobs: run: | pip install molecule molecule-plugins[docker] yamllint ansible-lint docker pip install openwisp-utils[qa] + # https://github.com/ansible-community/molecule-plugins/issues/256 + python -m pip install 'requests<2.32' - name: Install Ansible Galaxy dependencies run: ansible-galaxy collection install "community.general:>=3.6.0"