From 8ccf8ce5569dc2b819f0f9b6f4e52465fbcd98f0 Mon Sep 17 00:00:00 2001 From: Bas Date: Tue, 21 Jan 2025 14:55:04 +0100 Subject: [PATCH] Add a smoketest profile for Stepup See https://github.com/OpenConext/OpenConext-devconf/issues/19 --- .github/workflows/stepup-behat.yml | 2 +- stepup/docker-compose.yml | 2 ++ stepup/start-dev-env.sh | 4 +--- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/stepup-behat.yml b/.github/workflows/stepup-behat.yml index 3d392f4..9a68c4f 100644 --- a/.github/workflows/stepup-behat.yml +++ b/.github/workflows/stepup-behat.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 env: - DOCKER_COMPOSE: docker compose -f docker-compose.yml + DOCKER_COMPOSE: docker compose --profile smoketest -f docker-compose.yml steps: - name: Checkout uses: actions/checkout@v4 diff --git a/stepup/docker-compose.yml b/stepup/docker-compose.yml index c8fa584..3a2a65f 100644 --- a/stepup/docker-compose.yml +++ b/stepup/docker-compose.yml @@ -44,6 +44,8 @@ services: volumes: - ${PWD}/:/config - /var/run/docker.sock:/var/run/docker.sock + profiles: + - "smoketest" webauthn: image: ghcr.io/openconext/stepup-webauthn/stepup-webauthn:${STEPUP_VERSION:-prod} diff --git a/stepup/start-dev-env.sh b/stepup/start-dev-env.sh index f945d15..b04d533 100755 --- a/stepup/start-dev-env.sh +++ b/stepup/start-dev-env.sh @@ -78,6 +78,4 @@ done echo -e "Starting the ${MODE} environment with the following command:\n" echo -e "docker compose -f docker-compose.yml ${docker_compose_args[@]} ${extra_compose_args} up ${d_option} ${@:$number_of_dev_envs}\n" -docker compose -f docker-compose.yml ${docker_compose_args[@]} ${extra_compose_args} up ${d_option} ${@:$number_of_dev_envs} - - +docker compose --profile smoketest -f docker-compose.yml ${docker_compose_args[@]} ${extra_compose_args} up ${d_option} ${@:$number_of_dev_envs}