fix: replace docker-compose v1 with docker compose v2 in e2e workflow #3

Closed
opened 2026-03-17 19:54:47 +01:00 by marcel · 0 comments
Owner

Problem

The e2e CI job fails immediately with:

/var/run/act/workflow/1: line 2: docker-compose: command not found
exitcode '127': command not found

Root cause: The workflow uses docker-compose (v1, standalone binary) on lines 67 and 72 of .gitea/workflows/ci.yml. Modern Docker installations (Docker Engine 20.10+) ship Compose as a plugin (docker compose, with a space), and the v1 standalone binary is not installed on the act runner.

Fix

Replace the two occurrences in .gitea/workflows/ci.yml:

- docker-compose up -d db minio create-buckets
+ docker compose up -d db minio create-buckets

- until docker-compose exec -T db pg_isready -U archive_user; do sleep 2; done
+ until docker compose exec -T db pg_isready -U archive_user; do sleep 2; done

No other changes needed — docker compose v2 is a drop-in replacement for all flags used here.

## Problem The e2e CI job fails immediately with: ``` /var/run/act/workflow/1: line 2: docker-compose: command not found exitcode '127': command not found ``` **Root cause:** The workflow uses `docker-compose` (v1, standalone binary) on lines 67 and 72 of `.gitea/workflows/ci.yml`. Modern Docker installations (Docker Engine 20.10+) ship Compose as a plugin (`docker compose`, with a space), and the v1 standalone binary is not installed on the act runner. ## Fix Replace the two occurrences in `.gitea/workflows/ci.yml`: ```diff - docker-compose up -d db minio create-buckets + docker compose up -d db minio create-buckets - until docker-compose exec -T db pg_isready -U archive_user; do sleep 2; done + until docker compose exec -T db pg_isready -U archive_user; do sleep 2; done ``` No other changes needed — `docker compose` v2 is a drop-in replacement for all flags used here.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: marcel/familienarchiv#3