Skip to content

Commit

Permalink
Merge pull request #494 from SUSE/php8_tumbleweed
Browse files Browse the repository at this point in the history
Also build PHP8 containers for Tumbleweed
  • Loading branch information
dcermak authored Jul 6, 2023
2 parents 2976d03 + 857aa69 commit 6b39032
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/bci_build/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -1563,7 +1563,7 @@ def _php_entrypoint(variant: PhpVariant) -> str:


_EMPTY_SCRIPT = """#!/bin/sh
echo "This script is not required in the PHP SLE BCI."
echo "This script is not required in this PHP container."
"""


Expand Down Expand Up @@ -1610,8 +1610,8 @@ def _create_php_bci(
+ DOCKERFILE_RUN
+ r""" \
cd /etc/php8/fpm/; \
cp php-fpm.d/www.conf.default php-fpm.d/www.conf; \
cp php-fpm.conf.default php-fpm.conf; \
test -e php-fpm.d/www.conf.default && cp -p php-fpm.d/www.conf.default php-fpm.d/www.conf; \
test -e php-fpm.conf.default && cp -p php-fpm.conf.default php-fpm.conf; \
{ \
echo '[global]'; \
echo 'error_log = /proc/self/fd/2'; \
Expand Down Expand Up @@ -1655,7 +1655,7 @@ def _create_php_bci(
package_list=[
f"php{php_version}",
f"php{php_version}-cli",
"php-composer",
"php-composer2",
f"php{php_version}-curl",
f"php{php_version}-zip",
f"php{php_version}-zlib",
Expand Down Expand Up @@ -1698,8 +1698,11 @@ def _create_php_bci(


PHP_CONTAINERS = [
_create_php_bci(OsVersion.SP5, variant, 8)
for variant in (PhpVariant.cli, PhpVariant.apache, PhpVariant.fpm)
_create_php_bci(os_version, variant, 8)
for os_version, variant in product(
(OsVersion.SP5, OsVersion.TUMBLEWEED),
(PhpVariant.cli, PhpVariant.apache, PhpVariant.fpm),
)
]


Expand Down

0 comments on commit 6b39032

Please sign in to comment.