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

24
Jenkinsfile vendored
View File

@@ -152,7 +152,7 @@ pipeline {
} }
} }
stage('Déploiement DEV') { stage('Déploiement DEV') {
steps { steps {
sh ''' sh '''
REGISTRY="${REGISTRY}" \ REGISTRY="${REGISTRY}" \
@@ -167,23 +167,41 @@ pipeline {
echo "Attente du backend DEV..." echo "Attente du backend DEV..."
for i in $(seq 1 30); do 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." echo "Backend DEV opérationnel."
break break
fi fi
if [ "$i" -eq 30 ]; then 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 \ docker compose \
-p tiptop-dev \ -p tiptop-dev \
-f deploy/dev/docker-compose.yml \ -f deploy/dev/docker-compose.yml \
logs --tail=100 logs --tail=100
exit 1 exit 1
fi fi
sleep 5 sleep 5
done 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." echo "Frontend DEV opérationnel."
''' '''
} }

View File

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