diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2126fe29..dd542858 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -117,7 +117,7 @@ jobs: -e KAFKA_BOOTSTRAP_SERVERS="kafka:9093" \ -e KAFKA_GROUP_ID="launchpad-test-ci" \ -e KAFKA_TOPICS="preprod-artifact-events" \ - launchpad-test python -m pytest -n auto tests/ --ignore=tests/e2e -v + --entrypoint python launchpad-test -m pytest -n auto tests/ --ignore=tests/e2e -v - name: Show Kafka logs on failure if: failure() @@ -133,7 +133,7 @@ jobs: -e LAUNCHPAD_ENV=development \ -e LAUNCHPAD_HOST=localhost \ -e LAUNCHPAD_PORT=2218 \ - launchpad-test launchpad --help + launchpad-test --help e2e: runs-on: ubuntu-latest diff --git a/Dockerfile b/Dockerfile index be79b032..79086e1d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -112,5 +112,8 @@ EXPOSE 2218 ARG LAUNCHPAD_VERSION_SHA ENV LAUNCHPAD_VERSION_SHA=$LAUNCHPAD_VERSION_SHA -# Default command -CMD ["launchpad", "serve"] +# ENTRYPOINT/CMD split allows K8s deployments to override the subcommand via `args`. +# - Serve mode (deployment.yaml): uses default CMD -> "launchpad serve" +# - Worker mode (taskworker-deployment.yaml): overrides CMD via args -> "launchpad worker ..." +ENTRYPOINT ["launchpad"] +CMD ["serve"] diff --git a/devservices/config.yml b/devservices/config.yml index 24414903..39b8cb30 100644 --- a/devservices/config.yml +++ b/devservices/config.yml @@ -26,7 +26,6 @@ services: ports: - 127.0.0.1:2218:2218 # Bind to localhost only - no external access command: - - launchpad - serve - --verbose healthcheck: