Skip to content

Comments

Fix docker-compose command not found in CI workflow#21

Merged
mitchelllisle merged 5 commits intosnyk-fix-39a8d5c99f31cea4f211d5b205af7c3cfrom
copilot/fix-docker-compose-install
Dec 26, 2025
Merged

Fix docker-compose command not found in CI workflow#21
mitchelllisle merged 5 commits intosnyk-fix-39a8d5c99f31cea4f211d5b205af7c3cfrom
copilot/fix-docker-compose-install

Conversation

Copy link
Contributor

Copilot AI commented Dec 26, 2025

GitHub Actions ubuntu-latest runners now ship with Docker Compose V2, which uses docker compose (space) instead of the V1 command docker-compose (hyphen).

Changes

  • Updated .github/workflows/run-tests.yaml to use docker compose syntax
# Before
run: docker-compose -f docker/docker-compose.yaml up --abort-on-container-exit

# After
run: docker compose -f docker/docker-compose.yaml up --abort-on-container-exit

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/mitchelllisle/database-reconstruction-attacks/actions/jobs/58890491509/logs
    • Triggering command: /usr/bin/curl curl -s -H Accept: application/vnd.github.v3+json REDACTED (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

In the GitHub Actions workflow '.github/workflows/run-tests.yaml' for the 'build-test' workflow, the test action fails because the 'docker-compose' command is not found. Specifically, the error message is: '/home/runner/work/_temp/6a9a904d-7af7-4b8a-9213-bbe5fdac7584.sh: line 1: docker-compose: command not found'. To resolve this, the workflow needs to be updated to ensure that Docker Compose is installed before attempting to run it. This issue prevents the test suite from executing correctly as the required container orchestration fails.

This pull request was created from Copilot chat.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: mitchelllisle <18128531+mitchelllisle@users.noreply.github.com>
Copilot AI changed the title [WIP] Update workflow to install Docker Compose before running tests Fix docker-compose command not found in CI workflow Dec 26, 2025
Copilot AI requested a review from mitchelllisle December 26, 2025 22:35
Copilot AI and others added 2 commits December 26, 2025 22:44
Co-authored-by: mitchelllisle <18128531+mitchelllisle@users.noreply.github.com>
@mitchelllisle mitchelllisle marked this pull request as ready for review December 26, 2025 22:57
@mitchelllisle mitchelllisle merged commit 676a6b3 into snyk-fix-39a8d5c99f31cea4f211d5b205af7c3c Dec 26, 2025
2 checks passed
@mitchelllisle mitchelllisle deleted the copilot/fix-docker-compose-install branch December 26, 2025 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants