From c424afa9355e2c1e221541feff81ed1ee65ff14c Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Sat, 20 Sep 2025 01:24:20 +0200 Subject: [PATCH] Fix CLI workflow and container startup - Updated GitHub Actions workflow to call `infinito make ...` inside container - Simplified Dockerfile CMD to run `infinito --help` and keep container alive - Adjusted docker-compose.yml to use explicit image name See: https://chatgpt.com/share/68cde606-c3f8-800f-8ac5-fc035386da87 --- .github/workflows/test-cli.yml | 6 +++--- Dockerfile | 7 +------ docker-compose.yml | 2 +- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test-cli.yml b/.github/workflows/test-cli.yml index 9614f4cb..331877e0 100644 --- a/.github/workflows/test-cli.yml +++ b/.github/workflows/test-cli.yml @@ -21,12 +21,12 @@ jobs: - name: Clean build artifacts run: | - docker run --rm infinito:latest make clean + docker run --rm infinito:latest infinito make clean - name: Generate project outputs run: | - docker run --rm infinito:latest make build + docker run --rm infinito:latest infinito make build - name: Run tests run: | - docker run --rm infinito:latest make test + docker run --rm infinito:latest infinito make test diff --git a/Dockerfile b/Dockerfile index 5c6f8a23..07718fa5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -59,9 +59,4 @@ RUN INFINITO_PATH=$(pkgmgr path infinito) && \ ln -sf "$INFINITO_PATH"/main.py /usr/local/bin/infinito && \ chmod +x /usr/local/bin/infinito -# 10) Run integration tests -# This needed to be deactivated becaus it doesn't work with gitthub workflow -#RUN INFINITO_PATH=$(pkgmgr path infinito) && \ -# cd "$INFINITO_PATH" && \ -# make test -CMD ["infinito --help"] +CMD sh -c "infinito --help && exec tail -f /dev/null" diff --git a/docker-compose.yml b/docker-compose.yml index 2d053a82..7791be38 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,8 +8,8 @@ services: network: host pull_policy: never container_name: infinito_nexus + image: infinito_nexus restart: unless-stopped - command: tail -f /dev/null volumes: - data:/var/lib/docker/volumes/ - backups:/Backups/