Skip to content

Commit 1d9ee52

Browse files
authored
v2.1.11 (#37)
Minor updates * Using latest base images * Allowing 'custom' php.ini value Documentation updates * Updating comments in Dockerfiles
1 parent 84198a7 commit 1d9ee52

8 files changed

Lines changed: 36 additions & 23 deletions

File tree

5.6/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM bfren/apache:apache2.4.4x-2.1.9
1+
FROM bfren/apache:apache2.4.4x-2.1.10
22

33
LABEL org.opencontainers.image.source="https://github.com/bfren/docker-apache-php"
44

@@ -10,7 +10,8 @@ ENV \
1010
PHP_DIR=/etc/php5 \
1111
# www.conf override: log_level
1212
PHP_FPM_LOG_LEVEL="notice" \
13-
# php.ini template to use
13+
# php.ini template to use, or 'custom' if you want to bind your own custom php.ini -
14+
# which will cause the other PHP_INI_* environment variables to be ignored
1415
PHP_INI="production" \
1516
# php.ini override: display_errors
1617
PHP_INI_DISPLAY_ERRORS= \

7.4/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM bfren/apache:apache2.4.5x-2.1.9
1+
FROM bfren/apache:apache2.4.5x-2.1.10
22

33
LABEL org.opencontainers.image.source="https://github.com/bfren/docker-apache-php"
44

@@ -10,7 +10,8 @@ ENV \
1010
PHP_DIR=/etc/php7 \
1111
# www.conf override: log_level
1212
PHP_FPM_LOG_LEVEL="notice" \
13-
# php.ini template to use
13+
# php.ini template to use, or 'custom' if you want to bind your own custom php.ini -
14+
# which will cause the other PHP_INI_* environment variables to be ignored
1415
PHP_INI="production" \
1516
# php.ini override: display_errors
1617
PHP_INI_DISPLAY_ERRORS= \

8.0/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM bfren/apache:apache2.4.5x-2.1.9
1+
FROM bfren/apache:apache2.4.5x-2.1.10
22

33
LABEL org.opencontainers.image.source="https://github.com/bfren/docker-apache-php"
44

@@ -10,7 +10,8 @@ ENV \
1010
PHP_DIR=/etc/php8 \
1111
# www.conf override: log_level
1212
PHP_FPM_LOG_LEVEL="notice" \
13-
# php.ini template to use
13+
# php.ini template to use, or 'custom' if you want to bind your own custom php.ini -
14+
# which will cause the other PHP_INI_* environment variables to be ignored
1415
PHP_INI="production" \
1516
# php.ini override: display_errors
1617
PHP_INI_DISPLAY_ERRORS= \

Dockerfile.esh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ ENV \
1010
PHP_DIR=/etc/php<%= ${PHP_MAJOR} %> \
1111
# www.conf override: log_level
1212
PHP_FPM_LOG_LEVEL="notice" \
13-
# php.ini template to use
13+
# php.ini template to use, or 'custom' if you want to bind your own custom php.ini -
14+
# which will cause the other PHP_INI_* environment variables to be ignored
1415
PHP_INI="production" \
1516
# php.ini override: display_errors
1617
PHP_INI_DISPLAY_ERRORS= \

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.1.10
1+
2.1.11

generate-dockerfiles.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -euo pipefail
44

55
docker pull bfren/alpine
66

7-
BASE_REVISION="2.1.9"
7+
BASE_REVISION="2.1.10"
88
echo "Base: ${BASE_REVISION}"
99

1010
PHP_VERSIONS="5.6 7.4 8.0"

overlay/etc/bf/init.d/21-php-ini-download

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ if [ "${PHP_INI}" = "development" ] || [ "${PHP_INI}" = "production" ] ; then
2121
&& touch ${DOWNLOADED}
2222
exit 0
2323

24+
elif [ "${PHP_INI}" = "custom" ] ; then
25+
26+
bf-echo "Custom PHP configuration enabled."
27+
exit 0
28+
2429
fi
2530

2631
bf-error "Unsupported PHP_INI value '${PHP_INI}'."

overlay/etc/bf/init.d/22-php-ini-config

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,21 @@ export BF_E=`basename ${0}`
88
# Optionally override configuration.
99
#======================================================================================================================
1010

11-
bf-echo "Setting php.ini configuration values..."
12-
13-
declare -A VALUES
14-
VALUES["display_errors"]="${PHP_INI_DISPLAY_ERRORS-}"
15-
VALUES["display_startup_errors"]="${PHP_INI_DISPLAY_STARTUP_ERRORS-}"
16-
VALUES["error_log"]="${PHP_INI_ERROR_LOG-}"
17-
VALUES["error_reporting"]="${PHP_INI_ERROR_REPORTING-}"
18-
VALUES["memory_limit"]="${PHP_INI_MEMORY_LIMIT-}"
19-
VALUES["post_max_size"]="${PHP_INI_MAX_POST-}"
20-
VALUES["session.gc_maxlifetime"]="${PHP_SESSION_MAX_LIFETIME-}"
21-
VALUES["upload_max_filesize"]="${PHP_INI_MAX_UPLOAD-}"
22-
23-
source ${BF_INC}/php-replace-ini.sh
24-
replace-ini VALUES ${PHP_DIR}/php.ini
11+
if [ "${PHP_INI}" != "custom" ] ; then
12+
13+
bf-echo "Setting php.ini configuration values..."
14+
15+
declare -A VALUES
16+
VALUES["display_errors"]="${PHP_INI_DISPLAY_ERRORS-}"
17+
VALUES["display_startup_errors"]="${PHP_INI_DISPLAY_STARTUP_ERRORS-}"
18+
VALUES["error_log"]="${PHP_INI_ERROR_LOG-}"
19+
VALUES["error_reporting"]="${PHP_INI_ERROR_REPORTING-}"
20+
VALUES["memory_limit"]="${PHP_INI_MEMORY_LIMIT-}"
21+
VALUES["post_max_size"]="${PHP_INI_MAX_POST-}"
22+
VALUES["session.gc_maxlifetime"]="${PHP_SESSION_MAX_LIFETIME-}"
23+
VALUES["upload_max_filesize"]="${PHP_INI_MAX_UPLOAD-}"
24+
25+
source ${BF_INC}/php-replace-ini.sh
26+
replace-ini VALUES ${PHP_DIR}/php.ini
27+
28+
fi

0 commit comments

Comments
 (0)