fix: verify DEV services through Docker network
All checks were successful
THE-TIP-TOP-MULTIBRANCH/pipeline/head This commit looks good

This commit is contained in:
2026-08-04 15:01:28 +00:00
parent bbab18351b
commit 0d68356457
2 changed files with 22 additions and 3 deletions

22
Jenkinsfile vendored
View File

@@ -167,23 +167,41 @@ pipeline {
echo "Attente du backend DEV..."
for i in $(seq 1 30); do
if curl -fsS http://localhost:5001/ >/dev/null; then
if docker run --rm \
--network tiptop-dev \
curlimages/curl:8.12.1 \
-fsS http://backend:5000/ >/dev/null; then
echo "Backend DEV opérationnel."
break
fi
if [ "$i" -eq 30 ]; then
echo "Le backend DEV ne répond pas."
docker compose \
-p tiptop-dev \
-f deploy/dev/docker-compose.yml \
ps
docker compose \
-p tiptop-dev \
-f deploy/dev/docker-compose.yml \
logs --tail=100
exit 1
fi
sleep 5
done
curl -fsS http://localhost:5173/ >/dev/null
echo "Vérification du frontend DEV..."
docker run --rm \
--network tiptop-dev \
curlimages/curl:8.12.1 \
-fsS http://frontend/ >/dev/null
echo "Frontend DEV opérationnel."
'''
}

View File

@@ -67,6 +67,7 @@ services:
volumes:
tiptop_postgres_dev_data:
external: true
name: the-tip-top_tiptop_postgres_dev_data
networks: