fix: verify DEV services through Docker network
All checks were successful
THE-TIP-TOP-MULTIBRANCH/pipeline/head This commit looks good
All checks were successful
THE-TIP-TOP-MULTIBRANCH/pipeline/head This commit looks good
This commit is contained in:
24
Jenkinsfile
vendored
24
Jenkinsfile
vendored
@@ -152,7 +152,7 @@ pipeline {
|
||||
}
|
||||
}
|
||||
|
||||
stage('Déploiement DEV') {
|
||||
stage('Déploiement DEV') {
|
||||
steps {
|
||||
sh '''
|
||||
REGISTRY="${REGISTRY}" \
|
||||
@@ -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."
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -67,6 +67,7 @@ services:
|
||||
|
||||
volumes:
|
||||
tiptop_postgres_dev_data:
|
||||
external: true
|
||||
name: the-tip-top_tiptop_postgres_dev_data
|
||||
|
||||
networks:
|
||||
|
||||
Reference in New Issue
Block a user