mirror of
https://github.com/cytopia/devilbox.git
synced 2025-01-18 10:46:23 +00:00
commit
e657e9b7e8
@ -128,7 +128,8 @@ class Postgres
|
|||||||
if ($database !== null) {
|
if ($database !== null) {
|
||||||
$link = pg_pconnect('host='.$host.' dbname='.$database.' user='.$user.' password='.$pass);
|
$link = pg_pconnect('host='.$host.' dbname='.$database.' user='.$user.' password='.$pass);
|
||||||
} else {
|
} else {
|
||||||
$link = pg_pconnect('host='.$host.' user='.$user.' password='.$pass);
|
// NOTE: using dbname=postgres prevents HHVM from segfaulting
|
||||||
|
$link = pg_pconnect('host='.$host.' dbname=postgres user='.$user.' password='.$pass);
|
||||||
}
|
}
|
||||||
error_reporting(-1);
|
error_reporting(-1);
|
||||||
|
|
||||||
|
@ -91,6 +91,7 @@ wait_for() {
|
|||||||
if [ "${#}" = "2" ]; then
|
if [ "${#}" = "2" ]; then
|
||||||
if [ "${2}" = "1" ]; then
|
if [ "${2}" = "1" ]; then
|
||||||
printf "wait "
|
printf "wait "
|
||||||
|
# shellcheck disable=SC2034
|
||||||
for i in $(seq 1 "${_time}"); do
|
for i in $(seq 1 "${_time}"); do
|
||||||
sleep 1
|
sleep 1
|
||||||
printf "."
|
printf "."
|
||||||
@ -377,7 +378,7 @@ debilbox_test() {
|
|||||||
### Variables
|
### Variables
|
||||||
###
|
###
|
||||||
_ret=0 # Final exit code
|
_ret=0 # Final exit code
|
||||||
_oks=3 # Require this many [OK]'s on the page
|
_oks=4 # Require this many [OK]'s on the page
|
||||||
|
|
||||||
|
|
||||||
###
|
###
|
||||||
@ -489,4 +490,4 @@ _test_curled_oks() {
|
|||||||
else
|
else
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -30,6 +30,7 @@ services:
|
|||||||
# HTTP
|
# HTTP
|
||||||
# ----------------------------------------
|
# ----------------------------------------
|
||||||
httpd:
|
httpd:
|
||||||
|
# TODO: remove latest, once it is ready for the next release
|
||||||
image: cytopia/${HTTPD_SERVER}:latest
|
image: cytopia/${HTTPD_SERVER}:latest
|
||||||
|
|
||||||
# Manually build via `docker-compose build`
|
# Manually build via `docker-compose build`
|
||||||
@ -91,6 +92,9 @@ services:
|
|||||||
# (configured in /etc/${HTTPD_SERVER}/02-vhost-mass.conf)
|
# (configured in /etc/${HTTPD_SERVER}/02-vhost-mass.conf)
|
||||||
- ${HOST_PATH_TO_WWW_DOCROOTS}:/shared/httpd:ro
|
- ${HOST_PATH_TO_WWW_DOCROOTS}:/shared/httpd:ro
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- php
|
||||||
|
|
||||||
links:
|
links:
|
||||||
# ---- Format: ----
|
# ---- Format: ----
|
||||||
# SERVICE [ : ALIAS]
|
# SERVICE [ : ALIAS]
|
||||||
@ -194,6 +198,10 @@ services:
|
|||||||
# (configured in /etc/${HTTPD_SERVER}/02-vhost-mass.conf)
|
# (configured in /etc/${HTTPD_SERVER}/02-vhost-mass.conf)
|
||||||
- ${HOST_PATH_TO_WWW_DOCROOTS}:/shared/httpd
|
- ${HOST_PATH_TO_WWW_DOCROOTS}:/shared/httpd
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- mysql
|
||||||
|
- postgres
|
||||||
|
|
||||||
|
|
||||||
links:
|
links:
|
||||||
# ---- Format: ----
|
# ---- Format: ----
|
||||||
@ -206,6 +214,7 @@ services:
|
|||||||
# DATABASE
|
# DATABASE
|
||||||
# ----------------------------------------
|
# ----------------------------------------
|
||||||
mysql:
|
mysql:
|
||||||
|
# TODO: remove latest, once it is ready for the next release
|
||||||
image: cytopia/${MYSQL_SERVER}:latest
|
image: cytopia/${MYSQL_SERVER}:latest
|
||||||
|
|
||||||
# Manually build via `docker-compose build`
|
# Manually build via `docker-compose build`
|
||||||
|
Loading…
Reference in New Issue
Block a user