Skip to content

Commit 0b2da74

Browse files
committed
Load flag into bake config file
1 parent 175dbda commit 0b2da74

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

docker-bake.hcl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ variable "IMAGE_VERSION_SUFFIX" {
1717
variable "DOCKER_PLATFORM" {
1818
default = "linux/amd64"
1919
}
20+
variable "ENABLE_ZTS" {
21+
default = ""
22+
}
2023

2124
target "build-php" {
2225
dockerfile = "php-${PHP_VERSION}/Dockerfile"
@@ -34,6 +37,7 @@ target "php" {
3437
tags = ["bref/${CPU_PREFIX}php-${PHP_VERSION}"]
3538
args = {
3639
"IMAGE_VERSION_SUFFIX" = "${IMAGE_VERSION_SUFFIX}"
40+
"ENABLE_ZTS" = "${ENABLE_ZTS}"
3741
}
3842
contexts = {
3943
"bref/${CPU_PREFIX}build-php-${PHP_VERSION}" = "target:build-php"

php-80/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ RUN CFLAGS="-fstack-protector-strong -fpic -fpie -O3 -I${INSTALL_DIR}/include -I
378378
--enable-fpm \
379379
--disable-cgi \
380380
--enable-cli \
381+
${ENABLE_ZTS} \
381382
--disable-phpdbg \
382383
--with-sodium \
383384
--with-readline \
@@ -397,7 +398,6 @@ RUN CFLAGS="-fstack-protector-strong -fpic -fpie -O3 -I${INSTALL_DIR}/include -I
397398
--with-pdo-pgsql=shared,${INSTALL_DIR} \
398399
--enable-intl=shared \
399400
--enable-soap \
400-
${ENABLE_ZTS} \
401401
--with-xsl=${INSTALL_DIR} \
402402
# necessary for `pecl` to work (to install PHP extensions)
403403
--with-pear

php-81/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ RUN CFLAGS="-fstack-protector-strong -fpic -fpie -O3 -I${INSTALL_DIR}/include -I
378378
--enable-fpm \
379379
--disable-cgi \
380380
--enable-cli \
381+
${ENABLE_ZTS} \
381382
--disable-phpdbg \
382383
--with-sodium \
383384
--with-readline \
@@ -397,7 +398,6 @@ RUN CFLAGS="-fstack-protector-strong -fpic -fpie -O3 -I${INSTALL_DIR}/include -I
397398
--with-pdo-pgsql=shared,${INSTALL_DIR} \
398399
--enable-intl=shared \
399400
--enable-soap \
400-
${ENABLE_ZTS} \
401401
--with-xsl=${INSTALL_DIR} \
402402
# necessary for `pecl` to work (to install PHP extensions)
403403
--with-pear

php-82/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ RUN CFLAGS="-fstack-protector-strong -fpic -fpie -O3 -I${INSTALL_DIR}/include -I
378378
--enable-fpm \
379379
--disable-cgi \
380380
--enable-cli \
381+
${ENABLE_ZTS} \
381382
--disable-phpdbg \
382383
--with-sodium \
383384
--with-readline \
@@ -397,7 +398,6 @@ RUN CFLAGS="-fstack-protector-strong -fpic -fpie -O3 -I${INSTALL_DIR}/include -I
397398
--with-pdo-pgsql=shared,${INSTALL_DIR} \
398399
--enable-intl=shared \
399400
--enable-soap \
400-
${ENABLE_ZTS} \
401401
--with-xsl=${INSTALL_DIR} \
402402
# necessary for `pecl` to work (to install PHP extensions)
403403
--with-pear

0 commit comments

Comments
 (0)