mirror of
https://github.com/devilbox/docker-php-fpm.git
synced 2025-12-17 14:31:14 +00:00
Test: Better check to see if PHP-FPM is running
This commit is contained in:
@@ -38,8 +38,15 @@ print_h2 "-e DEBUG_ENTRYPOINT=2 -e NEW_UID=$(id -u) -e NEW_GID=$(id -g) -v ${RUN
|
||||
if ! name="$( docker_run "${IMAGE}:${VERSION}-${FLAVOUR}" "${ARCH}" "-e DEBUG_ENTRYPOINT=2 -e NEW_UID=$(id -u) -e NEW_GID=$(id -g) -v ${RUN_SH_HOST}:${RUN_SH_CONT}" )"; then
|
||||
exit 1
|
||||
fi
|
||||
# Wait for both containers to be up and running
|
||||
run "sleep 10"
|
||||
|
||||
# Check if PHP-FPM is running
|
||||
print_h2 "Check if PHP-FPM is running"
|
||||
if ! check_php_fpm_running "${name}"; then
|
||||
docker_logs "${name}" || true
|
||||
docker_stop "${name}" || true
|
||||
echo "Failed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check entrypoint for script run
|
||||
print_h2 "Check docker logs for script run"
|
||||
|
||||
Reference in New Issue
Block a user