@@ -89,7 +89,7 @@ jobs:
|
|||||||
cp eapim-admin/build/libs/eapim-admin.war "$DEPLOY_DIR/monitoring.war"
|
cp eapim-admin/build/libs/eapim-admin.war "$DEPLOY_DIR/monitoring.war"
|
||||||
ls -la "$DEPLOY_DIR"
|
ls -la "$DEPLOY_DIR"
|
||||||
|
|
||||||
- name: Start tomcat and readiness probe (timeout 120s)
|
- name: Start tomcat and readiness probe (timeout 180s)
|
||||||
working-directory: ${{ github.workspace }}
|
working-directory: ${{ github.workspace }}
|
||||||
run: |
|
run: |
|
||||||
LOG="$CATALINA_BASE/logs/catalina.$(date +%Y-%m-%d).log"
|
LOG="$CATALINA_BASE/logs/catalina.$(date +%Y-%m-%d).log"
|
||||||
@@ -99,7 +99,7 @@ jobs:
|
|||||||
# systemd 가 Tomcat 을 새 cgroup 으로 띄움 — runner step 종료와 무관하게 살아남음
|
# systemd 가 Tomcat 을 새 cgroup 으로 띄움 — runner step 종료와 무관하게 살아남음
|
||||||
systemctl --user start eapim-admin
|
systemctl --user start eapim-admin
|
||||||
|
|
||||||
DEADLINE=$(($(date +%s) + 120))
|
DEADLINE=$(($(date +%s) + 180))
|
||||||
STATUS=000
|
STATUS=000
|
||||||
while [ $(date +%s) -lt $DEADLINE ]; do
|
while [ $(date +%s) -lt $DEADLINE ]; do
|
||||||
STATUS=$(curl -sS -o /dev/null -w '%{http_code}' --max-time 3 \
|
STATUS=$(curl -sS -o /dev/null -w '%{http_code}' --max-time 3 \
|
||||||
@@ -122,7 +122,7 @@ jobs:
|
|||||||
case "$STATUS" in
|
case "$STATUS" in
|
||||||
200|302|401) ;;
|
200|302|401) ;;
|
||||||
*)
|
*)
|
||||||
echo "::error::Readiness probe failed within 120s (last HTTP status: $STATUS)"
|
echo "::error::Readiness probe failed within 180s (last HTTP status: $STATUS)"
|
||||||
[ -f "$LOG" ] && tail -c +$((BEFORE+1)) "$LOG" | tail -100
|
[ -f "$LOG" ] && tail -c +$((BEFORE+1)) "$LOG" | tail -100
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user