:-'Generic Commit'
Some checks failed
Build-Test-Publish / Build (push) Failing after 26s

This commit is contained in:
Your Name
2025-05-30 22:00:33 +12:00
parent 9ba0469dea
commit ce6357d99c
7 changed files with 18 additions and 14 deletions

View File

@@ -57,7 +57,7 @@ docker buildx build --no-cache --load -t gitea.jde.nz/public/simple-object-stora
#------------------------------------------------------------------------------------------------
# run the docker container
title "Running docker container"
export LOCALCONFIG="${SCRIPT_DIR}/config.json"
export LOCALCONFIG="${SCRIPT_DIR}/sos_config.json"
export COMPOSE_FILE="${SCRIPT_DIR}/compose.yaml"
[ -f "${LOCALCONFIG}" ] || die "Config file not found: ${LOCALCONFIG}"
@@ -66,8 +66,11 @@ export COMPOSE_FILE="${SCRIPT_DIR}/compose.yaml"
#------------------------------------------------------------------------------------------------
title "Running tests"
PREV_DIR=$(pwd)
cd "${SCRIPT_DIR}"
docker stop sos-test || true
docker rm sos-test || true
docker rm -v sos-test || true
LOCALCONFIG=${LOCALCONFIG} docker compose -f "${COMPOSE_FILE}" up -d
@@ -77,7 +80,6 @@ if ! wait_for_container "sos-test"; then
echo "Container sos-test is not healthy"
echo "----------------------------------------"
docker logs sos-test
docker inspect sos-test
die "Container sos-test is not healthy"
fi
@@ -89,5 +91,7 @@ RESULT=$?
docker compose -f "${COMPOSE_FILE}" down
docker compose -f "${COMPOSE_FILE}" rm -v
cd "${PREV_DIR}"
exit $RESULT