Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion docker/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,12 @@ exec env="dev" *args="bash":


# run a basic functional smoke test against a running opencodelists
smoke-test host="http://localhost:7000":
smoke-test host="http://localhost:7000" env="prod":
#!/bin/bash
set -eu
# First run the release script to perform checks and migrations
Comment thread
rw251 marked this conversation as resolved.
Outdated
echo "Running release script (check and migrations)..."
docker compose exec {{ env }} bash /app/deploy/release.sh
# Then check if the service is responding
echo "Testing service connectivity..."
curl -I {{ host }} -s --compressed --fail --retry 20 --retry-delay 1 --retry-all-errors
4 changes: 2 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,8 @@ docker-exec *args="bash": _env


# run tests in docker container
docker-smoke-test host="http://localhost:7000": _env
{{ just_executable() }} docker/smoke-test {{ host }}
docker-smoke-test host="http://localhost:7000" env="prod": _env
{{ just_executable() }} docker/smoke-test {{ host }} {{env}}


# check migrations in the dev docker container
Expand Down