├── .gitignore ├── nextcloud ├── 29 │ └── fpm-alpine │ │ ├── cron.sh │ │ ├── config │ │ ├── apcu.config.php │ │ ├── upgrade-disable-web.config.php │ │ ├── apps.config.php │ │ ├── redis.config.php │ │ ├── smtp.config.php │ │ ├── reverse-proxy.config.php │ │ └── swift.config.php │ │ └── upgrade.exclude ├── 30 │ └── fpm-alpine │ │ ├── cron.sh │ │ ├── config │ │ ├── apcu.config.php │ │ ├── upgrade-disable-web.config.php │ │ ├── apps.config.php │ │ ├── redis.config.php │ │ ├── smtp.config.php │ │ ├── reverse-proxy.config.php │ │ └── swift.config.php │ │ └── upgrade.exclude ├── 31 │ └── fpm-alpine │ │ ├── cron.sh │ │ ├── config │ │ ├── apcu.config.php │ │ ├── upgrade-disable-web.config.php │ │ ├── apps.config.php │ │ ├── redis.config.php │ │ ├── smtp.config.php │ │ ├── reverse-proxy.config.php │ │ └── swift.config.php │ │ └── upgrade.exclude ├── latest.txt ├── docker-cron.sh ├── .config │ ├── apache-pretty-urls.config.php │ ├── apcu.config.php │ ├── upgrade-disable-web.config.php │ ├── apps.config.php │ ├── redis.config.php │ ├── smtp.config.php │ ├── reverse-proxy.config.php │ └── swift.config.php └── upgrade.exclude ├── .gitattributes ├── squid ├── .gitattributes ├── examples │ ├── docker-compose.yml │ ├── README.md │ └── squid-deployment.yml ├── entrypoint.sh └── Dockerfile ├── golang └── update.sh ├── php ├── update.sh ├── docker-php-entrypoint ├── 8.2 │ ├── alpine3.22 │ │ ├── cli │ │ │ ├── docker-php-entrypoint │ │ │ ├── docker-php-source │ │ │ └── docker-php-ext-configure │ │ ├── zts │ │ │ ├── docker-php-entrypoint │ │ │ ├── docker-php-source │ │ │ └── docker-php-ext-configure │ │ └── fpm │ │ │ ├── docker-php-entrypoint │ │ │ ├── docker-php-source │ │ │ └── docker-php-ext-configure │ ├── alpine3.23 │ │ ├── cli │ │ │ ├── docker-php-entrypoint │ │ │ ├── docker-php-source │ │ │ └── docker-php-ext-configure │ │ ├── zts │ │ │ ├── docker-php-entrypoint │ │ │ ├── docker-php-source │ │ │ └── docker-php-ext-configure │ │ └── fpm │ │ │ ├── docker-php-entrypoint │ │ │ ├── docker-php-source │ │ │ └── docker-php-ext-configure │ └── trixie │ │ ├── cli │ │ ├── docker-php-entrypoint │ │ ├── docker-php-source │ │ └── docker-php-ext-configure │ │ ├── fpm │ │ ├── docker-php-entrypoint │ │ ├── docker-php-source │ │ └── docker-php-ext-configure │ │ ├── zts │ │ ├── docker-php-entrypoint │ │ ├── docker-php-source │ │ └── docker-php-ext-configure │ │ └── apache │ │ ├── docker-php-entrypoint │ │ ├── docker-php-source │ │ ├── apache2-foreground │ │ └── docker-php-ext-configure ├── 8.3 │ ├── alpine3.22 │ │ ├── cli │ │ │ ├── docker-php-entrypoint │ │ │ ├── docker-php-source │ │ │ └── docker-php-ext-configure │ │ ├── zts │ │ │ ├── docker-php-entrypoint │ │ │ ├── docker-php-source │ │ │ └── docker-php-ext-configure │ │ └── fpm │ │ │ ├── docker-php-entrypoint │ │ │ ├── docker-php-source │ │ │ └── docker-php-ext-configure │ ├── alpine3.23 │ │ ├── cli │ │ │ ├── docker-php-entrypoint │ │ │ ├── docker-php-source │ │ │ └── docker-php-ext-configure │ │ ├── zts │ │ │ ├── docker-php-entrypoint │ │ │ ├── docker-php-source │ │ │ └── docker-php-ext-configure │ │ └── fpm │ │ │ ├── docker-php-entrypoint │ │ │ ├── docker-php-source │ │ │ └── docker-php-ext-configure │ └── trixie │ │ ├── cli │ │ ├── docker-php-entrypoint │ │ ├── docker-php-source │ │ └── docker-php-ext-configure │ │ ├── fpm │ │ ├── docker-php-entrypoint │ │ ├── docker-php-source │ │ └── docker-php-ext-configure │ │ ├── zts │ │ ├── docker-php-entrypoint │ │ ├── docker-php-source │ │ └── docker-php-ext-configure │ │ └── apache │ │ ├── docker-php-entrypoint │ │ ├── docker-php-source │ │ ├── apache2-foreground │ │ └── docker-php-ext-configure ├── 8.4 │ ├── alpine3.22 │ │ ├── cli │ │ │ ├── docker-php-entrypoint │ │ │ ├── docker-php-source │ │ │ └── docker-php-ext-configure │ │ ├── zts │ │ │ ├── docker-php-entrypoint │ │ │ ├── docker-php-source │ │ │ └── docker-php-ext-configure │ │ └── fpm │ │ │ ├── docker-php-entrypoint │ │ │ ├── docker-php-source │ │ │ └── docker-php-ext-configure │ ├── alpine3.23 │ │ ├── cli │ │ │ ├── docker-php-entrypoint │ │ │ ├── docker-php-source │ │ │ └── docker-php-ext-configure │ │ ├── zts │ │ │ ├── docker-php-entrypoint │ │ │ ├── docker-php-source │ │ │ └── docker-php-ext-configure │ │ └── fpm │ │ │ ├── docker-php-entrypoint │ │ │ ├── docker-php-source │ │ │ └── docker-php-ext-configure │ └── trixie │ │ ├── cli │ │ ├── docker-php-entrypoint │ │ ├── docker-php-source │ │ └── docker-php-ext-configure │ │ ├── fpm │ │ ├── docker-php-entrypoint │ │ ├── docker-php-source │ │ └── docker-php-ext-configure │ │ ├── zts │ │ ├── docker-php-entrypoint │ │ ├── docker-php-source │ │ └── docker-php-ext-configure │ │ └── apache │ │ ├── docker-php-entrypoint │ │ ├── docker-php-source │ │ ├── apache2-foreground │ │ └── docker-php-ext-configure ├── 8.5 │ ├── alpine3.22 │ │ ├── cli │ │ │ ├── docker-php-entrypoint │ │ │ ├── docker-php-source │ │ │ └── docker-php-ext-configure │ │ ├── zts │ │ │ ├── docker-php-entrypoint │ │ │ ├── docker-php-source │ │ │ └── docker-php-ext-configure │ │ └── fpm │ │ │ ├── docker-php-entrypoint │ │ │ ├── docker-php-source │ │ │ └── docker-php-ext-configure │ ├── alpine3.23 │ │ ├── cli │ │ │ ├── docker-php-entrypoint │ │ │ ├── docker-php-source │ │ │ └── docker-php-ext-configure │ │ ├── zts │ │ │ ├── docker-php-entrypoint │ │ │ ├── docker-php-source │ │ │ └── docker-php-ext-configure │ │ └── fpm │ │ │ ├── docker-php-entrypoint │ │ │ ├── docker-php-source │ │ │ └── docker-php-ext-configure │ └── trixie │ │ ├── cli │ │ ├── docker-php-entrypoint │ │ ├── docker-php-source │ │ └── docker-php-ext-configure │ │ ├── fpm │ │ ├── docker-php-entrypoint │ │ ├── docker-php-source │ │ └── docker-php-ext-configure │ │ ├── zts │ │ ├── docker-php-entrypoint │ │ ├── docker-php-source │ │ └── docker-php-ext-configure │ │ └── apache │ │ ├── docker-php-entrypoint │ │ ├── docker-php-source │ │ ├── apache2-foreground │ │ └── docker-php-ext-configure ├── docker-php-source ├── apache2-foreground └── docker-php-ext-configure ├── python └── update.sh ├── redis ├── update.sh ├── docker-entrypoint.sh ├── 6.2 │ ├── alpine │ │ └── docker-entrypoint.sh │ └── debian │ │ └── docker-entrypoint.sh ├── 7.0 │ ├── alpine │ │ └── docker-entrypoint.sh │ └── debian │ │ └── docker-entrypoint.sh ├── 7.2 │ ├── alpine │ │ └── docker-entrypoint.sh │ └── debian │ │ └── docker-entrypoint.sh ├── 7.4-rc │ ├── alpine │ │ └── docker-entrypoint.sh │ └── debian │ │ └── docker-entrypoint.sh ├── 7.4 │ ├── alpine │ │ └── docker-entrypoint.sh │ └── debian │ │ └── docker-entrypoint.sh └── apply-templates.sh ├── postgres ├── update.sh └── apply-templates.sh ├── valkey ├── update.sh ├── docker-entrypoint.sh ├── 7.2 │ ├── alpine │ │ └── docker-entrypoint.sh │ └── debian │ │ └── docker-entrypoint.sh ├── 8.0 │ ├── alpine │ │ └── docker-entrypoint.sh │ └── debian │ │ └── docker-entrypoint.sh ├── 8.1 │ ├── alpine │ │ └── docker-entrypoint.sh │ └── debian │ │ └── docker-entrypoint.sh ├── 9.0 │ ├── alpine │ │ └── docker-entrypoint.sh │ └── debian │ │ └── docker-entrypoint.sh ├── versions.json └── apply-templates.sh ├── mariadb ├── docker.cnf └── versions.json ├── node ├── 20 │ ├── forky │ │ └── docker-entrypoint.sh │ ├── alpine3.22 │ │ └── docker-entrypoint.sh │ ├── alpine3.23 │ │ └── docker-entrypoint.sh │ ├── forky-slim │ │ └── docker-entrypoint.sh │ ├── trixie │ │ └── docker-entrypoint.sh │ └── trixie-slim │ │ └── docker-entrypoint.sh ├── 22 │ ├── forky │ │ └── docker-entrypoint.sh │ ├── alpine3.22 │ │ └── docker-entrypoint.sh │ ├── alpine3.23 │ │ └── docker-entrypoint.sh │ ├── forky-slim │ │ └── docker-entrypoint.sh │ ├── trixie │ │ └── docker-entrypoint.sh │ └── trixie-slim │ │ └── docker-entrypoint.sh ├── 24 │ ├── forky │ │ └── docker-entrypoint.sh │ ├── alpine3.22 │ │ └── docker-entrypoint.sh │ ├── alpine3.23 │ │ └── docker-entrypoint.sh │ ├── forky-slim │ │ └── docker-entrypoint.sh │ ├── trixie │ │ └── docker-entrypoint.sh │ └── trixie-slim │ │ └── docker-entrypoint.sh ├── 25 │ ├── alpine3.22 │ │ └── docker-entrypoint.sh │ ├── alpine3.23 │ │ └── docker-entrypoint.sh │ ├── forky │ │ └── docker-entrypoint.sh │ ├── trixie-slim │ │ └── docker-entrypoint.sh │ ├── trixie │ │ └── docker-entrypoint.sh │ └── forky-slim │ │ └── docker-entrypoint.sh └── update.sh ├── nginx ├── entrypoint │ ├── 15-local-resolvers.envsh │ └── docker-entrypoint.sh ├── mainline │ ├── debian │ │ ├── 15-local-resolvers.envsh │ │ └── docker-entrypoint.sh │ └── alpine-slim │ │ ├── 15-local-resolvers.envsh │ │ └── docker-entrypoint.sh └── stable │ ├── debian │ ├── 15-local-resolvers.envsh │ └── docker-entrypoint.sh │ └── alpine-slim │ ├── 15-local-resolvers.envsh │ └── docker-entrypoint.sh ├── .github └── workflows │ ├── delete-untagged-images.yml │ └── check.yml └── LICENSE /.gitignore: -------------------------------------------------------------------------------- 1 | .jq-template.awk -------------------------------------------------------------------------------- /nextcloud/latest.txt: -------------------------------------------------------------------------------- 1 | 32.0.3 2 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=lf 3 | -------------------------------------------------------------------------------- /squid/.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=lf 3 | -------------------------------------------------------------------------------- /nextcloud/docker-cron.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -eu 3 | 4 | exec busybox crond -f -L /dev/stdout 5 | -------------------------------------------------------------------------------- /nextcloud/29/fpm-alpine/cron.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -eu 3 | 4 | exec busybox crond -f -L /dev/stdout 5 | -------------------------------------------------------------------------------- /nextcloud/30/fpm-alpine/cron.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -eu 3 | 4 | exec busybox crond -f -L /dev/stdout 5 | -------------------------------------------------------------------------------- /nextcloud/31/fpm-alpine/cron.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -eu 3 | 4 | exec busybox crond -f -L /dev/stdout 5 | -------------------------------------------------------------------------------- /nextcloud/.config/apache-pretty-urls.config.php: -------------------------------------------------------------------------------- 1 | '/', 4 | ); 5 | -------------------------------------------------------------------------------- /nextcloud/.config/apcu.config.php: -------------------------------------------------------------------------------- 1 | '\OC\Memcache\APCu', 4 | ); 5 | -------------------------------------------------------------------------------- /nextcloud/.config/upgrade-disable-web.config.php: -------------------------------------------------------------------------------- 1 | true, 4 | ); 5 | -------------------------------------------------------------------------------- /nextcloud/upgrade.exclude: -------------------------------------------------------------------------------- 1 | /config/ 2 | /data/ 3 | /custom_apps/ 4 | /themes/ 5 | /version.php 6 | /nextcloud-init-sync.lock 7 | -------------------------------------------------------------------------------- /nextcloud/29/fpm-alpine/config/apcu.config.php: -------------------------------------------------------------------------------- 1 | '\OC\Memcache\APCu', 4 | ); 5 | -------------------------------------------------------------------------------- /nextcloud/30/fpm-alpine/config/apcu.config.php: -------------------------------------------------------------------------------- 1 | '\OC\Memcache\APCu', 4 | ); 5 | -------------------------------------------------------------------------------- /nextcloud/31/fpm-alpine/config/apcu.config.php: -------------------------------------------------------------------------------- 1 | '\OC\Memcache\APCu', 4 | ); 5 | -------------------------------------------------------------------------------- /nextcloud/29/fpm-alpine/config/upgrade-disable-web.config.php: -------------------------------------------------------------------------------- 1 | true, 4 | ); 5 | -------------------------------------------------------------------------------- /nextcloud/30/fpm-alpine/config/upgrade-disable-web.config.php: -------------------------------------------------------------------------------- 1 | true, 4 | ); 5 | -------------------------------------------------------------------------------- /nextcloud/31/fpm-alpine/config/upgrade-disable-web.config.php: -------------------------------------------------------------------------------- 1 | true, 4 | ); 5 | -------------------------------------------------------------------------------- /nextcloud/29/fpm-alpine/upgrade.exclude: -------------------------------------------------------------------------------- 1 | /config/ 2 | /data/ 3 | /custom_apps/ 4 | /themes/ 5 | /version.php 6 | /nextcloud-init-sync.lock 7 | -------------------------------------------------------------------------------- /nextcloud/30/fpm-alpine/upgrade.exclude: -------------------------------------------------------------------------------- 1 | /config/ 2 | /data/ 3 | /custom_apps/ 4 | /themes/ 5 | /version.php 6 | /nextcloud-init-sync.lock 7 | -------------------------------------------------------------------------------- /nextcloud/31/fpm-alpine/upgrade.exclude: -------------------------------------------------------------------------------- 1 | /config/ 2 | /data/ 3 | /custom_apps/ 4 | /themes/ 5 | /version.php 6 | /nextcloud-init-sync.lock 7 | -------------------------------------------------------------------------------- /golang/update.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -Eeuo pipefail 3 | 4 | cd "$(dirname "$(readlink -f "$BASH_SOURCE")")" 5 | 6 | ./versions.sh "$@" 7 | ./apply-templates.sh "$@" 8 | -------------------------------------------------------------------------------- /php/update.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -Eeuo pipefail 3 | 4 | cd "$(dirname "$(readlink -f "$BASH_SOURCE")")" 5 | 6 | ./versions.sh "$@" 7 | ./apply-templates.sh "$@" 8 | -------------------------------------------------------------------------------- /python/update.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -Eeuo pipefail 3 | 4 | cd "$(dirname "$(readlink -f "$BASH_SOURCE")")" 5 | 6 | ./versions.sh "$@" 7 | ./apply-templates.sh "$@" 8 | -------------------------------------------------------------------------------- /redis/update.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -Eeuo pipefail 3 | 4 | cd "$(dirname "$(readlink -f "$BASH_SOURCE")")" 5 | 6 | ./versions.sh "$@" 7 | ./apply-templates.sh "$@" 8 | -------------------------------------------------------------------------------- /postgres/update.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -Eeuo pipefail 3 | 4 | cd "$(dirname "$(readlink -f "$BASH_SOURCE")")" 5 | 6 | ./versions.sh "$@" 7 | ./apply-templates.sh "$@" 8 | -------------------------------------------------------------------------------- /valkey/update.sh: -------------------------------------------------------------------------------- 1 | 2 | #!/usr/bin/env bash 3 | set -Eeuo pipefail 4 | 5 | cd "$(dirname "$(readlink -f "$BASH_SOURCE")")" 6 | 7 | ./versions.sh "$@" 8 | ./apply-templates.sh "$@" 9 | -------------------------------------------------------------------------------- /php/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.2/alpine3.22/cli/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.2/alpine3.22/zts/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.2/alpine3.23/cli/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.2/alpine3.23/zts/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.2/trixie/cli/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.2/trixie/fpm/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php-fpm "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.2/trixie/zts/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.3/alpine3.22/cli/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.3/alpine3.22/zts/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.3/alpine3.23/cli/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.3/alpine3.23/zts/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.3/trixie/cli/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.3/trixie/fpm/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php-fpm "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.3/trixie/zts/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.4/alpine3.22/cli/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.4/alpine3.22/zts/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.4/alpine3.23/cli/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.4/alpine3.23/zts/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.4/trixie/cli/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.4/trixie/fpm/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php-fpm "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.4/trixie/zts/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.5/alpine3.22/cli/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.5/alpine3.22/zts/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.5/alpine3.23/cli/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.5/alpine3.23/zts/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.5/trixie/cli/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.5/trixie/fpm/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php-fpm "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.5/trixie/zts/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.2/alpine3.22/fpm/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php-fpm "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.2/alpine3.23/fpm/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php-fpm "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.3/alpine3.22/fpm/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php-fpm "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.3/alpine3.23/fpm/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php-fpm "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.4/alpine3.22/fpm/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php-fpm "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.4/alpine3.23/fpm/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php-fpm "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.5/alpine3.22/fpm/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php-fpm "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.5/alpine3.23/fpm/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- php-fpm "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.2/trixie/apache/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- apache2-foreground "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.3/trixie/apache/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- apache2-foreground "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.4/trixie/apache/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- apache2-foreground "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /php/8.5/trixie/apache/docker-php-entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- apache2-foreground "$@" 7 | fi 8 | 9 | exec "$@" 10 | -------------------------------------------------------------------------------- /squid/examples/docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '2' 2 | 3 | services: 4 | squid: 5 | image: ghcr.io/loong64/squid:edge 6 | ports: 7 | - '3128:3128' 8 | volumes: 9 | - 'squid_cache:/var/spool/squid' 10 | - 'squid_logs:/var/log/squid' 11 | volumes: 12 | squid_cache: 13 | squid_logs: 14 | -------------------------------------------------------------------------------- /mariadb/docker.cnf: -------------------------------------------------------------------------------- 1 | # Ubuntu container compatibility 2 | 3 | [mariadb] 4 | host-cache-size=0 5 | skip-name-resolve 6 | 7 | expire_logs_days=10 8 | character-set-server=utf8mb4 9 | 10 | character-set-collations=utf8mb4=uca1400_ai_ci # 11.3, 11.4 11 | collation-server=utf8mb4_general_ci # 10* 12 | 13 | [client-server] 14 | socket=/run/mariadb/mariadb.sock 15 | 16 | !includedir /etc/mysql/mariadb.conf.d 17 | !includedir /etc/mysql/conf.d 18 | -------------------------------------------------------------------------------- /node/20/forky/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # Run command with node if the first argument contains a "-" or is not a system command. The last 5 | # part inside the "{}" is a workaround for the following bug in ash/dash: 6 | # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 7 | if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then 8 | set -- node "$@" 9 | fi 10 | 11 | exec "$@" 12 | -------------------------------------------------------------------------------- /node/22/forky/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # Run command with node if the first argument contains a "-" or is not a system command. The last 5 | # part inside the "{}" is a workaround for the following bug in ash/dash: 6 | # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 7 | if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then 8 | set -- node "$@" 9 | fi 10 | 11 | exec "$@" 12 | -------------------------------------------------------------------------------- /node/24/forky/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # Run command with node if the first argument contains a "-" or is not a system command. The last 5 | # part inside the "{}" is a workaround for the following bug in ash/dash: 6 | # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 7 | if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then 8 | set -- node "$@" 9 | fi 10 | 11 | exec "$@" 12 | -------------------------------------------------------------------------------- /node/20/alpine3.22/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # Run command with node if the first argument contains a "-" or is not a system command. The last 5 | # part inside the "{}" is a workaround for the following bug in ash/dash: 6 | # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 7 | if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then 8 | set -- node "$@" 9 | fi 10 | 11 | exec "$@" 12 | -------------------------------------------------------------------------------- /node/20/alpine3.23/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # Run command with node if the first argument contains a "-" or is not a system command. The last 5 | # part inside the "{}" is a workaround for the following bug in ash/dash: 6 | # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 7 | if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then 8 | set -- node "$@" 9 | fi 10 | 11 | exec "$@" 12 | -------------------------------------------------------------------------------- /node/20/forky-slim/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # Run command with node if the first argument contains a "-" or is not a system command. The last 5 | # part inside the "{}" is a workaround for the following bug in ash/dash: 6 | # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 7 | if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then 8 | set -- node "$@" 9 | fi 10 | 11 | exec "$@" 12 | -------------------------------------------------------------------------------- /node/20/trixie/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # Run command with node if the first argument contains a "-" or is not a system command. The last 5 | # part inside the "{}" is a workaround for the following bug in ash/dash: 6 | # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 7 | if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then 8 | set -- node "$@" 9 | fi 10 | 11 | exec "$@" 12 | -------------------------------------------------------------------------------- /node/22/alpine3.22/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # Run command with node if the first argument contains a "-" or is not a system command. The last 5 | # part inside the "{}" is a workaround for the following bug in ash/dash: 6 | # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 7 | if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then 8 | set -- node "$@" 9 | fi 10 | 11 | exec "$@" 12 | -------------------------------------------------------------------------------- /node/22/alpine3.23/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # Run command with node if the first argument contains a "-" or is not a system command. The last 5 | # part inside the "{}" is a workaround for the following bug in ash/dash: 6 | # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 7 | if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then 8 | set -- node "$@" 9 | fi 10 | 11 | exec "$@" 12 | -------------------------------------------------------------------------------- /node/22/forky-slim/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # Run command with node if the first argument contains a "-" or is not a system command. The last 5 | # part inside the "{}" is a workaround for the following bug in ash/dash: 6 | # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 7 | if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then 8 | set -- node "$@" 9 | fi 10 | 11 | exec "$@" 12 | -------------------------------------------------------------------------------- /node/22/trixie/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # Run command with node if the first argument contains a "-" or is not a system command. The last 5 | # part inside the "{}" is a workaround for the following bug in ash/dash: 6 | # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 7 | if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then 8 | set -- node "$@" 9 | fi 10 | 11 | exec "$@" 12 | -------------------------------------------------------------------------------- /node/24/alpine3.22/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # Run command with node if the first argument contains a "-" or is not a system command. The last 5 | # part inside the "{}" is a workaround for the following bug in ash/dash: 6 | # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 7 | if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then 8 | set -- node "$@" 9 | fi 10 | 11 | exec "$@" 12 | -------------------------------------------------------------------------------- /node/24/alpine3.23/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # Run command with node if the first argument contains a "-" or is not a system command. The last 5 | # part inside the "{}" is a workaround for the following bug in ash/dash: 6 | # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 7 | if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then 8 | set -- node "$@" 9 | fi 10 | 11 | exec "$@" 12 | -------------------------------------------------------------------------------- /node/24/forky-slim/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # Run command with node if the first argument contains a "-" or is not a system command. The last 5 | # part inside the "{}" is a workaround for the following bug in ash/dash: 6 | # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 7 | if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then 8 | set -- node "$@" 9 | fi 10 | 11 | exec "$@" 12 | -------------------------------------------------------------------------------- /node/24/trixie/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # Run command with node if the first argument contains a "-" or is not a system command. The last 5 | # part inside the "{}" is a workaround for the following bug in ash/dash: 6 | # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 7 | if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then 8 | set -- node "$@" 9 | fi 10 | 11 | exec "$@" 12 | -------------------------------------------------------------------------------- /node/25/alpine3.22/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # Run command with node if the first argument contains a "-" or is not a system command. The last 5 | # part inside the "{}" is a workaround for the following bug in ash/dash: 6 | # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 7 | if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then 8 | set -- node "$@" 9 | fi 10 | 11 | exec "$@" 12 | -------------------------------------------------------------------------------- /node/25/alpine3.23/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # Run command with node if the first argument contains a "-" or is not a system command. The last 5 | # part inside the "{}" is a workaround for the following bug in ash/dash: 6 | # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 7 | if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then 8 | set -- node "$@" 9 | fi 10 | 11 | exec "$@" 12 | -------------------------------------------------------------------------------- /nextcloud/.config/apps.config.php: -------------------------------------------------------------------------------- 1 | array ( 4 | 0 => array ( 5 | 'path' => OC::$SERVERROOT.'/apps', 6 | 'url' => '/apps', 7 | 'writable' => false, 8 | ), 9 | 1 => array ( 10 | 'path' => OC::$SERVERROOT.'/custom_apps', 11 | 'url' => '/custom_apps', 12 | 'writable' => true, 13 | ), 14 | ), 15 | ); 16 | -------------------------------------------------------------------------------- /node/20/trixie-slim/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # Run command with node if the first argument contains a "-" or is not a system command. The last 5 | # part inside the "{}" is a workaround for the following bug in ash/dash: 6 | # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 7 | if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then 8 | set -- node "$@" 9 | fi 10 | 11 | exec "$@" 12 | -------------------------------------------------------------------------------- /node/22/trixie-slim/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # Run command with node if the first argument contains a "-" or is not a system command. The last 5 | # part inside the "{}" is a workaround for the following bug in ash/dash: 6 | # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 7 | if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then 8 | set -- node "$@" 9 | fi 10 | 11 | exec "$@" 12 | -------------------------------------------------------------------------------- /node/24/trixie-slim/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # Run command with node if the first argument contains a "-" or is not a system command. The last 5 | # part inside the "{}" is a workaround for the following bug in ash/dash: 6 | # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 7 | if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then 8 | set -- node "$@" 9 | fi 10 | 11 | exec "$@" 12 | -------------------------------------------------------------------------------- /node/25/forky/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | 2 | #!/bin/sh 3 | set -e 4 | 5 | # Run command with node if the first argument contains a "-" or is not a system command. The last 6 | # part inside the "{}" is a workaround for the following bug in ash/dash: 7 | # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 8 | if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then 9 | set -- node "$@" 10 | fi 11 | 12 | exec "$@" 13 | -------------------------------------------------------------------------------- /node/25/trixie-slim/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # Run command with node if the first argument contains a "-" or is not a system command. The last 5 | # part inside the "{}" is a workaround for the following bug in ash/dash: 6 | # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 7 | if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then 8 | set -- node "$@" 9 | fi 10 | 11 | exec "$@" 12 | -------------------------------------------------------------------------------- /node/25/trixie/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | 2 | #!/bin/sh 3 | set -e 4 | 5 | # Run command with node if the first argument contains a "-" or is not a system command. The last 6 | # part inside the "{}" is a workaround for the following bug in ash/dash: 7 | # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 8 | if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then 9 | set -- node "$@" 10 | fi 11 | 12 | exec "$@" 13 | -------------------------------------------------------------------------------- /node/25/forky-slim/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | 2 | #!/bin/sh 3 | set -e 4 | 5 | # Run command with node if the first argument contains a "-" or is not a system command. The last 6 | # part inside the "{}" is a workaround for the following bug in ash/dash: 7 | # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 8 | if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then 9 | set -- node "$@" 10 | fi 11 | 12 | exec "$@" 13 | -------------------------------------------------------------------------------- /nextcloud/29/fpm-alpine/config/apps.config.php: -------------------------------------------------------------------------------- 1 | array ( 4 | 0 => array ( 5 | 'path' => OC::$SERVERROOT.'/apps', 6 | 'url' => '/apps', 7 | 'writable' => false, 8 | ), 9 | 1 => array ( 10 | 'path' => OC::$SERVERROOT.'/custom_apps', 11 | 'url' => '/custom_apps', 12 | 'writable' => true, 13 | ), 14 | ), 15 | ); 16 | -------------------------------------------------------------------------------- /nextcloud/30/fpm-alpine/config/apps.config.php: -------------------------------------------------------------------------------- 1 | array ( 4 | 0 => array ( 5 | 'path' => OC::$SERVERROOT.'/apps', 6 | 'url' => '/apps', 7 | 'writable' => false, 8 | ), 9 | 1 => array ( 10 | 'path' => OC::$SERVERROOT.'/custom_apps', 11 | 'url' => '/custom_apps', 12 | 'writable' => true, 13 | ), 14 | ), 15 | ); 16 | -------------------------------------------------------------------------------- /nextcloud/31/fpm-alpine/config/apps.config.php: -------------------------------------------------------------------------------- 1 | array ( 4 | 0 => array ( 5 | 'path' => OC::$SERVERROOT.'/apps', 6 | 'url' => '/apps', 7 | 'writable' => false, 8 | ), 9 | 1 => array ( 10 | 'path' => OC::$SERVERROOT.'/custom_apps', 11 | 'url' => '/custom_apps', 12 | 'writable' => true, 13 | ), 14 | ), 15 | ); 16 | -------------------------------------------------------------------------------- /nginx/entrypoint/15-local-resolvers.envsh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # vim:sw=2:ts=2:sts=2:et 3 | 4 | set -eu 5 | 6 | LC_ALL=C 7 | PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 8 | 9 | [ "${NGINX_ENTRYPOINT_LOCAL_RESOLVERS:-}" ] || return 0 10 | 11 | NGINX_LOCAL_RESOLVERS=$(awk 'BEGIN{ORS=" "} $1=="nameserver" {if ($2 ~ ":") {print "["$2"]"} else {print $2}}' /etc/resolv.conf) 12 | 13 | NGINX_LOCAL_RESOLVERS="${NGINX_LOCAL_RESOLVERS% }" 14 | 15 | export NGINX_LOCAL_RESOLVERS 16 | -------------------------------------------------------------------------------- /nginx/mainline/debian/15-local-resolvers.envsh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # vim:sw=2:ts=2:sts=2:et 3 | 4 | set -eu 5 | 6 | LC_ALL=C 7 | PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 8 | 9 | [ "${NGINX_ENTRYPOINT_LOCAL_RESOLVERS:-}" ] || return 0 10 | 11 | NGINX_LOCAL_RESOLVERS=$(awk 'BEGIN{ORS=" "} $1=="nameserver" {if ($2 ~ ":") {print "["$2"]"} else {print $2}}' /etc/resolv.conf) 12 | 13 | NGINX_LOCAL_RESOLVERS="${NGINX_LOCAL_RESOLVERS% }" 14 | 15 | export NGINX_LOCAL_RESOLVERS 16 | -------------------------------------------------------------------------------- /nginx/stable/debian/15-local-resolvers.envsh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # vim:sw=2:ts=2:sts=2:et 3 | 4 | set -eu 5 | 6 | LC_ALL=C 7 | PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 8 | 9 | [ "${NGINX_ENTRYPOINT_LOCAL_RESOLVERS:-}" ] || return 0 10 | 11 | NGINX_LOCAL_RESOLVERS=$(awk 'BEGIN{ORS=" "} $1=="nameserver" {if ($2 ~ ":") {print "["$2"]"} else {print $2}}' /etc/resolv.conf) 12 | 13 | NGINX_LOCAL_RESOLVERS="${NGINX_LOCAL_RESOLVERS% }" 14 | 15 | export NGINX_LOCAL_RESOLVERS 16 | -------------------------------------------------------------------------------- /nginx/mainline/alpine-slim/15-local-resolvers.envsh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # vim:sw=2:ts=2:sts=2:et 3 | 4 | set -eu 5 | 6 | LC_ALL=C 7 | PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 8 | 9 | [ "${NGINX_ENTRYPOINT_LOCAL_RESOLVERS:-}" ] || return 0 10 | 11 | NGINX_LOCAL_RESOLVERS=$(awk 'BEGIN{ORS=" "} $1=="nameserver" {if ($2 ~ ":") {print "["$2"]"} else {print $2}}' /etc/resolv.conf) 12 | 13 | NGINX_LOCAL_RESOLVERS="${NGINX_LOCAL_RESOLVERS% }" 14 | 15 | export NGINX_LOCAL_RESOLVERS 16 | -------------------------------------------------------------------------------- /nginx/stable/alpine-slim/15-local-resolvers.envsh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # vim:sw=2:ts=2:sts=2:et 3 | 4 | set -eu 5 | 6 | LC_ALL=C 7 | PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 8 | 9 | [ "${NGINX_ENTRYPOINT_LOCAL_RESOLVERS:-}" ] || return 0 10 | 11 | NGINX_LOCAL_RESOLVERS=$(awk 'BEGIN{ORS=" "} $1=="nameserver" {if ($2 ~ ":") {print "["$2"]"} else {print $2}}' /etc/resolv.conf) 12 | 13 | NGINX_LOCAL_RESOLVERS="${NGINX_LOCAL_RESOLVERS% }" 14 | 15 | export NGINX_LOCAL_RESOLVERS 16 | -------------------------------------------------------------------------------- /valkey/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | # or first arg is `something.conf` 6 | if [ "${1#-}" != "$1" ] || [ "${1%.conf}" != "$1" ]; then 7 | set -- valkey-server "$@" 8 | fi 9 | 10 | # allow the container to be started with `--user` 11 | if [ "$1" = 'valkey-server' -a "$(id -u)" = '0' ]; then 12 | find . \! -user valkey -exec chown valkey '{}' + 13 | exec setpriv --reuid=valkey --regid=valkey --clear-groups -- "$0" "$@" 14 | fi 15 | 16 | # set an appropriate umask (if one isn't set already) 17 | um="$(umask)" 18 | if [ "$um" = '0022' ]; then 19 | umask 0077 20 | fi 21 | 22 | exec "$@" $VALKEY_EXTRA_FLAGS 23 | -------------------------------------------------------------------------------- /valkey/7.2/alpine/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | # or first arg is `something.conf` 6 | if [ "${1#-}" != "$1" ] || [ "${1%.conf}" != "$1" ]; then 7 | set -- valkey-server "$@" 8 | fi 9 | 10 | # allow the container to be started with `--user` 11 | if [ "$1" = 'valkey-server' -a "$(id -u)" = '0' ]; then 12 | find . \! -user valkey -exec chown valkey '{}' + 13 | exec setpriv --reuid=valkey --regid=valkey --clear-groups -- "$0" "$@" 14 | fi 15 | 16 | # set an appropriate umask (if one isn't set already) 17 | um="$(umask)" 18 | if [ "$um" = '0022' ]; then 19 | umask 0077 20 | fi 21 | 22 | exec "$@" $VALKEY_EXTRA_FLAGS 23 | -------------------------------------------------------------------------------- /valkey/7.2/debian/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | # or first arg is `something.conf` 6 | if [ "${1#-}" != "$1" ] || [ "${1%.conf}" != "$1" ]; then 7 | set -- valkey-server "$@" 8 | fi 9 | 10 | # allow the container to be started with `--user` 11 | if [ "$1" = 'valkey-server' -a "$(id -u)" = '0' ]; then 12 | find . \! -user valkey -exec chown valkey '{}' + 13 | exec setpriv --reuid=valkey --regid=valkey --clear-groups -- "$0" "$@" 14 | fi 15 | 16 | # set an appropriate umask (if one isn't set already) 17 | um="$(umask)" 18 | if [ "$um" = '0022' ]; then 19 | umask 0077 20 | fi 21 | 22 | exec "$@" $VALKEY_EXTRA_FLAGS 23 | -------------------------------------------------------------------------------- /valkey/8.0/alpine/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | # or first arg is `something.conf` 6 | if [ "${1#-}" != "$1" ] || [ "${1%.conf}" != "$1" ]; then 7 | set -- valkey-server "$@" 8 | fi 9 | 10 | # allow the container to be started with `--user` 11 | if [ "$1" = 'valkey-server' -a "$(id -u)" = '0' ]; then 12 | find . \! -user valkey -exec chown valkey '{}' + 13 | exec setpriv --reuid=valkey --regid=valkey --clear-groups -- "$0" "$@" 14 | fi 15 | 16 | # set an appropriate umask (if one isn't set already) 17 | um="$(umask)" 18 | if [ "$um" = '0022' ]; then 19 | umask 0077 20 | fi 21 | 22 | exec "$@" $VALKEY_EXTRA_FLAGS 23 | -------------------------------------------------------------------------------- /valkey/8.0/debian/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | # or first arg is `something.conf` 6 | if [ "${1#-}" != "$1" ] || [ "${1%.conf}" != "$1" ]; then 7 | set -- valkey-server "$@" 8 | fi 9 | 10 | # allow the container to be started with `--user` 11 | if [ "$1" = 'valkey-server' -a "$(id -u)" = '0' ]; then 12 | find . \! -user valkey -exec chown valkey '{}' + 13 | exec setpriv --reuid=valkey --regid=valkey --clear-groups -- "$0" "$@" 14 | fi 15 | 16 | # set an appropriate umask (if one isn't set already) 17 | um="$(umask)" 18 | if [ "$um" = '0022' ]; then 19 | umask 0077 20 | fi 21 | 22 | exec "$@" $VALKEY_EXTRA_FLAGS 23 | -------------------------------------------------------------------------------- /valkey/8.1/alpine/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | # or first arg is `something.conf` 6 | if [ "${1#-}" != "$1" ] || [ "${1%.conf}" != "$1" ]; then 7 | set -- valkey-server "$@" 8 | fi 9 | 10 | # allow the container to be started with `--user` 11 | if [ "$1" = 'valkey-server' -a "$(id -u)" = '0' ]; then 12 | find . \! -user valkey -exec chown valkey '{}' + 13 | exec setpriv --reuid=valkey --regid=valkey --clear-groups -- "$0" "$@" 14 | fi 15 | 16 | # set an appropriate umask (if one isn't set already) 17 | um="$(umask)" 18 | if [ "$um" = '0022' ]; then 19 | umask 0077 20 | fi 21 | 22 | exec "$@" $VALKEY_EXTRA_FLAGS 23 | -------------------------------------------------------------------------------- /valkey/8.1/debian/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | # or first arg is `something.conf` 6 | if [ "${1#-}" != "$1" ] || [ "${1%.conf}" != "$1" ]; then 7 | set -- valkey-server "$@" 8 | fi 9 | 10 | # allow the container to be started with `--user` 11 | if [ "$1" = 'valkey-server' -a "$(id -u)" = '0' ]; then 12 | find . \! -user valkey -exec chown valkey '{}' + 13 | exec setpriv --reuid=valkey --regid=valkey --clear-groups -- "$0" "$@" 14 | fi 15 | 16 | # set an appropriate umask (if one isn't set already) 17 | um="$(umask)" 18 | if [ "$um" = '0022' ]; then 19 | umask 0077 20 | fi 21 | 22 | exec "$@" $VALKEY_EXTRA_FLAGS 23 | -------------------------------------------------------------------------------- /valkey/9.0/alpine/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | # or first arg is `something.conf` 6 | if [ "${1#-}" != "$1" ] || [ "${1%.conf}" != "$1" ]; then 7 | set -- valkey-server "$@" 8 | fi 9 | 10 | # allow the container to be started with `--user` 11 | if [ "$1" = 'valkey-server' -a "$(id -u)" = '0' ]; then 12 | find . \! -user valkey -exec chown valkey '{}' + 13 | exec setpriv --reuid=valkey --regid=valkey --clear-groups -- "$0" "$@" 14 | fi 15 | 16 | # set an appropriate umask (if one isn't set already) 17 | um="$(umask)" 18 | if [ "$um" = '0022' ]; then 19 | umask 0077 20 | fi 21 | 22 | exec "$@" $VALKEY_EXTRA_FLAGS 23 | -------------------------------------------------------------------------------- /valkey/9.0/debian/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | # or first arg is `something.conf` 6 | if [ "${1#-}" != "$1" ] || [ "${1%.conf}" != "$1" ]; then 7 | set -- valkey-server "$@" 8 | fi 9 | 10 | # allow the container to be started with `--user` 11 | if [ "$1" = 'valkey-server' -a "$(id -u)" = '0' ]; then 12 | find . \! -user valkey -exec chown valkey '{}' + 13 | exec setpriv --reuid=valkey --regid=valkey --clear-groups -- "$0" "$@" 14 | fi 15 | 16 | # set an appropriate umask (if one isn't set already) 17 | um="$(umask)" 18 | if [ "$um" = '0022' ]; then 19 | umask 0077 20 | fi 21 | 22 | exec "$@" $VALKEY_EXTRA_FLAGS 23 | -------------------------------------------------------------------------------- /php/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.2/alpine3.22/cli/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.2/alpine3.22/fpm/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.2/alpine3.22/zts/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.2/alpine3.23/cli/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.2/alpine3.23/fpm/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.2/alpine3.23/zts/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.2/trixie/apache/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.2/trixie/cli/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.2/trixie/fpm/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.2/trixie/zts/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.3/alpine3.22/cli/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.3/alpine3.22/fpm/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.3/alpine3.22/zts/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.3/alpine3.23/cli/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.3/alpine3.23/fpm/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.3/alpine3.23/zts/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.3/trixie/apache/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.3/trixie/cli/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.3/trixie/fpm/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.3/trixie/zts/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.4/alpine3.22/cli/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.4/alpine3.22/fpm/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.4/alpine3.22/zts/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.4/alpine3.23/cli/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.4/alpine3.23/fpm/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.4/alpine3.23/zts/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.4/trixie/apache/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.4/trixie/cli/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.4/trixie/fpm/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.4/trixie/zts/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.5/alpine3.22/cli/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.5/alpine3.22/fpm/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.5/alpine3.22/zts/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.5/alpine3.23/cli/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.5/alpine3.23/fpm/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.5/alpine3.23/zts/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.5/trixie/apache/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.5/trixie/cli/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.5/trixie/fpm/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /php/8.5/trixie/zts/docker-php-source: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | dir=/usr/src/php 5 | 6 | usage() { 7 | echo "usage: $0 COMMAND" 8 | echo 9 | echo "Manage php source tarball lifecycle." 10 | echo 11 | echo "Commands:" 12 | echo " extract extract php source tarball into directory $dir if not already done." 13 | echo " delete delete extracted php source located into $dir if not already done." 14 | echo 15 | } 16 | 17 | case "$1" in 18 | extract) 19 | mkdir -p "$dir" 20 | if [ ! -f "$dir/.docker-extracted" ]; then 21 | tar -Jxf /usr/src/php.tar.xz -C "$dir" --strip-components=1 22 | touch "$dir/.docker-extracted" 23 | fi 24 | ;; 25 | 26 | delete) 27 | rm -rf "$dir" 28 | ;; 29 | 30 | *) 31 | usage 32 | exit 1 33 | ;; 34 | esac 35 | -------------------------------------------------------------------------------- /redis/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | # or first arg is `something.conf` 6 | if [ "${1#-}" != "$1" ] || [ "${1%.conf}" != "$1" ]; then 7 | set -- redis-server "$@" 8 | fi 9 | 10 | # allow the container to be started with `--user` 11 | if [ "$1" = 'redis-server' -a "$(id -u)" = '0' ]; then 12 | find . \! -user redis -exec chown redis '{}' + 13 | exec gosu redis "$0" "$@" 14 | fi 15 | 16 | # set an appropriate umask (if one isn't set already) 17 | # - https://github.com/docker-library/redis/issues/305 18 | # - https://github.com/redis/redis/blob/bb875603fb7ff3f9d19aad906bd45d7db98d9a39/utils/systemd-redis_server.service#L37 19 | um="$(umask)" 20 | if [ "$um" = '0022' ]; then 21 | umask 0077 22 | fi 23 | 24 | exec "$@" 25 | -------------------------------------------------------------------------------- /redis/6.2/alpine/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | # or first arg is `something.conf` 6 | if [ "${1#-}" != "$1" ] || [ "${1%.conf}" != "$1" ]; then 7 | set -- redis-server "$@" 8 | fi 9 | 10 | # allow the container to be started with `--user` 11 | if [ "$1" = 'redis-server' -a "$(id -u)" = '0' ]; then 12 | find . \! -user redis -exec chown redis '{}' + 13 | exec gosu redis "$0" "$@" 14 | fi 15 | 16 | # set an appropriate umask (if one isn't set already) 17 | # - https://github.com/docker-library/redis/issues/305 18 | # - https://github.com/redis/redis/blob/bb875603fb7ff3f9d19aad906bd45d7db98d9a39/utils/systemd-redis_server.service#L37 19 | um="$(umask)" 20 | if [ "$um" = '0022' ]; then 21 | umask 0077 22 | fi 23 | 24 | exec "$@" 25 | -------------------------------------------------------------------------------- /redis/6.2/debian/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | # or first arg is `something.conf` 6 | if [ "${1#-}" != "$1" ] || [ "${1%.conf}" != "$1" ]; then 7 | set -- redis-server "$@" 8 | fi 9 | 10 | # allow the container to be started with `--user` 11 | if [ "$1" = 'redis-server' -a "$(id -u)" = '0' ]; then 12 | find . \! -user redis -exec chown redis '{}' + 13 | exec gosu redis "$0" "$@" 14 | fi 15 | 16 | # set an appropriate umask (if one isn't set already) 17 | # - https://github.com/docker-library/redis/issues/305 18 | # - https://github.com/redis/redis/blob/bb875603fb7ff3f9d19aad906bd45d7db98d9a39/utils/systemd-redis_server.service#L37 19 | um="$(umask)" 20 | if [ "$um" = '0022' ]; then 21 | umask 0077 22 | fi 23 | 24 | exec "$@" 25 | -------------------------------------------------------------------------------- /redis/7.0/alpine/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | # or first arg is `something.conf` 6 | if [ "${1#-}" != "$1" ] || [ "${1%.conf}" != "$1" ]; then 7 | set -- redis-server "$@" 8 | fi 9 | 10 | # allow the container to be started with `--user` 11 | if [ "$1" = 'redis-server' -a "$(id -u)" = '0' ]; then 12 | find . \! -user redis -exec chown redis '{}' + 13 | exec gosu redis "$0" "$@" 14 | fi 15 | 16 | # set an appropriate umask (if one isn't set already) 17 | # - https://github.com/docker-library/redis/issues/305 18 | # - https://github.com/redis/redis/blob/bb875603fb7ff3f9d19aad906bd45d7db98d9a39/utils/systemd-redis_server.service#L37 19 | um="$(umask)" 20 | if [ "$um" = '0022' ]; then 21 | umask 0077 22 | fi 23 | 24 | exec "$@" 25 | -------------------------------------------------------------------------------- /redis/7.0/debian/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | # or first arg is `something.conf` 6 | if [ "${1#-}" != "$1" ] || [ "${1%.conf}" != "$1" ]; then 7 | set -- redis-server "$@" 8 | fi 9 | 10 | # allow the container to be started with `--user` 11 | if [ "$1" = 'redis-server' -a "$(id -u)" = '0' ]; then 12 | find . \! -user redis -exec chown redis '{}' + 13 | exec gosu redis "$0" "$@" 14 | fi 15 | 16 | # set an appropriate umask (if one isn't set already) 17 | # - https://github.com/docker-library/redis/issues/305 18 | # - https://github.com/redis/redis/blob/bb875603fb7ff3f9d19aad906bd45d7db98d9a39/utils/systemd-redis_server.service#L37 19 | um="$(umask)" 20 | if [ "$um" = '0022' ]; then 21 | umask 0077 22 | fi 23 | 24 | exec "$@" 25 | -------------------------------------------------------------------------------- /redis/7.2/alpine/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | # or first arg is `something.conf` 6 | if [ "${1#-}" != "$1" ] || [ "${1%.conf}" != "$1" ]; then 7 | set -- redis-server "$@" 8 | fi 9 | 10 | # allow the container to be started with `--user` 11 | if [ "$1" = 'redis-server' -a "$(id -u)" = '0' ]; then 12 | find . \! -user redis -exec chown redis '{}' + 13 | exec gosu redis "$0" "$@" 14 | fi 15 | 16 | # set an appropriate umask (if one isn't set already) 17 | # - https://github.com/docker-library/redis/issues/305 18 | # - https://github.com/redis/redis/blob/bb875603fb7ff3f9d19aad906bd45d7db98d9a39/utils/systemd-redis_server.service#L37 19 | um="$(umask)" 20 | if [ "$um" = '0022' ]; then 21 | umask 0077 22 | fi 23 | 24 | exec "$@" 25 | -------------------------------------------------------------------------------- /redis/7.2/debian/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | # or first arg is `something.conf` 6 | if [ "${1#-}" != "$1" ] || [ "${1%.conf}" != "$1" ]; then 7 | set -- redis-server "$@" 8 | fi 9 | 10 | # allow the container to be started with `--user` 11 | if [ "$1" = 'redis-server' -a "$(id -u)" = '0' ]; then 12 | find . \! -user redis -exec chown redis '{}' + 13 | exec gosu redis "$0" "$@" 14 | fi 15 | 16 | # set an appropriate umask (if one isn't set already) 17 | # - https://github.com/docker-library/redis/issues/305 18 | # - https://github.com/redis/redis/blob/bb875603fb7ff3f9d19aad906bd45d7db98d9a39/utils/systemd-redis_server.service#L37 19 | um="$(umask)" 20 | if [ "$um" = '0022' ]; then 21 | umask 0077 22 | fi 23 | 24 | exec "$@" 25 | -------------------------------------------------------------------------------- /redis/7.4-rc/alpine/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | # or first arg is `something.conf` 6 | if [ "${1#-}" != "$1" ] || [ "${1%.conf}" != "$1" ]; then 7 | set -- redis-server "$@" 8 | fi 9 | 10 | # allow the container to be started with `--user` 11 | if [ "$1" = 'redis-server' -a "$(id -u)" = '0' ]; then 12 | find . \! -user redis -exec chown redis '{}' + 13 | exec gosu redis "$0" "$@" 14 | fi 15 | 16 | # set an appropriate umask (if one isn't set already) 17 | # - https://github.com/docker-library/redis/issues/305 18 | # - https://github.com/redis/redis/blob/bb875603fb7ff3f9d19aad906bd45d7db98d9a39/utils/systemd-redis_server.service#L37 19 | um="$(umask)" 20 | if [ "$um" = '0022' ]; then 21 | umask 0077 22 | fi 23 | 24 | exec "$@" 25 | -------------------------------------------------------------------------------- /redis/7.4-rc/debian/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | # or first arg is `something.conf` 6 | if [ "${1#-}" != "$1" ] || [ "${1%.conf}" != "$1" ]; then 7 | set -- redis-server "$@" 8 | fi 9 | 10 | # allow the container to be started with `--user` 11 | if [ "$1" = 'redis-server' -a "$(id -u)" = '0' ]; then 12 | find . \! -user redis -exec chown redis '{}' + 13 | exec gosu redis "$0" "$@" 14 | fi 15 | 16 | # set an appropriate umask (if one isn't set already) 17 | # - https://github.com/docker-library/redis/issues/305 18 | # - https://github.com/redis/redis/blob/bb875603fb7ff3f9d19aad906bd45d7db98d9a39/utils/systemd-redis_server.service#L37 19 | um="$(umask)" 20 | if [ "$um" = '0022' ]; then 21 | umask 0077 22 | fi 23 | 24 | exec "$@" 25 | -------------------------------------------------------------------------------- /redis/7.4/alpine/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | # or first arg is `something.conf` 6 | if [ "${1#-}" != "$1" ] || [ "${1%.conf}" != "$1" ]; then 7 | set -- redis-server "$@" 8 | fi 9 | 10 | # allow the container to be started with `--user` 11 | if [ "$1" = 'redis-server' -a "$(id -u)" = '0' ]; then 12 | find . \! -user redis -exec chown redis '{}' + 13 | exec gosu redis "$0" "$@" 14 | fi 15 | 16 | # set an appropriate umask (if one isn't set already) 17 | # - https://github.com/docker-library/redis/issues/305 18 | # - https://github.com/redis/redis/blob/bb875603fb7ff3f9d19aad906bd45d7db98d9a39/utils/systemd-redis_server.service#L37 19 | um="$(umask)" 20 | if [ "$um" = '0022' ]; then 21 | umask 0077 22 | fi 23 | 24 | exec "$@" 25 | -------------------------------------------------------------------------------- /redis/7.4/debian/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | # or first arg is `something.conf` 6 | if [ "${1#-}" != "$1" ] || [ "${1%.conf}" != "$1" ]; then 7 | set -- redis-server "$@" 8 | fi 9 | 10 | # allow the container to be started with `--user` 11 | if [ "$1" = 'redis-server' -a "$(id -u)" = '0' ]; then 12 | find . \! -user redis -exec chown redis '{}' + 13 | exec gosu redis "$0" "$@" 14 | fi 15 | 16 | # set an appropriate umask (if one isn't set already) 17 | # - https://github.com/docker-library/redis/issues/305 18 | # - https://github.com/redis/redis/blob/bb875603fb7ff3f9d19aad906bd45d7db98d9a39/utils/systemd-redis_server.service#L37 19 | um="$(umask)" 20 | if [ "$um" = '0022' ]; then 21 | umask 0077 22 | fi 23 | 24 | exec "$@" 25 | -------------------------------------------------------------------------------- /nextcloud/.config/redis.config.php: -------------------------------------------------------------------------------- 1 | '\OC\Memcache\Redis', 5 | 'memcache.locking' => '\OC\Memcache\Redis', 6 | 'redis' => array( 7 | 'host' => getenv('REDIS_HOST'), 8 | 'password' => getenv('REDIS_HOST_PASSWORD_FILE') ? trim(file_get_contents(getenv('REDIS_HOST_PASSWORD_FILE'))) : (string) getenv('REDIS_HOST_PASSWORD'), 9 | ), 10 | ); 11 | 12 | if (getenv('REDIS_HOST_PORT') !== false) { 13 | $CONFIG['redis']['port'] = (int) getenv('REDIS_HOST_PORT'); 14 | } elseif (getenv('REDIS_HOST')[0] != '/') { 15 | $CONFIG['redis']['port'] = 6379; 16 | } 17 | 18 | if (getenv('REDIS_HOST_USER') !== false) { 19 | $CONFIG['redis']['user'] = (string) getenv('REDIS_HOST_USER'); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /nextcloud/29/fpm-alpine/config/redis.config.php: -------------------------------------------------------------------------------- 1 | '\OC\Memcache\Redis', 5 | 'memcache.locking' => '\OC\Memcache\Redis', 6 | 'redis' => array( 7 | 'host' => getenv('REDIS_HOST'), 8 | 'password' => getenv('REDIS_HOST_PASSWORD_FILE') ? trim(file_get_contents(getenv('REDIS_HOST_PASSWORD_FILE'))) : (string) getenv('REDIS_HOST_PASSWORD'), 9 | ), 10 | ); 11 | 12 | if (getenv('REDIS_HOST_PORT') !== false) { 13 | $CONFIG['redis']['port'] = (int) getenv('REDIS_HOST_PORT'); 14 | } elseif (getenv('REDIS_HOST')[0] != '/') { 15 | $CONFIG['redis']['port'] = 6379; 16 | } 17 | 18 | if (getenv('REDIS_HOST_USER') !== false) { 19 | $CONFIG['redis']['user'] = (string) getenv('REDIS_HOST_USER'); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /nextcloud/30/fpm-alpine/config/redis.config.php: -------------------------------------------------------------------------------- 1 | '\OC\Memcache\Redis', 5 | 'memcache.locking' => '\OC\Memcache\Redis', 6 | 'redis' => array( 7 | 'host' => getenv('REDIS_HOST'), 8 | 'password' => getenv('REDIS_HOST_PASSWORD_FILE') ? trim(file_get_contents(getenv('REDIS_HOST_PASSWORD_FILE'))) : (string) getenv('REDIS_HOST_PASSWORD'), 9 | ), 10 | ); 11 | 12 | if (getenv('REDIS_HOST_PORT') !== false) { 13 | $CONFIG['redis']['port'] = (int) getenv('REDIS_HOST_PORT'); 14 | } elseif (getenv('REDIS_HOST')[0] != '/') { 15 | $CONFIG['redis']['port'] = 6379; 16 | } 17 | 18 | if (getenv('REDIS_HOST_USER') !== false) { 19 | $CONFIG['redis']['user'] = (string) getenv('REDIS_HOST_USER'); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /nextcloud/31/fpm-alpine/config/redis.config.php: -------------------------------------------------------------------------------- 1 | '\OC\Memcache\Redis', 5 | 'memcache.locking' => '\OC\Memcache\Redis', 6 | 'redis' => array( 7 | 'host' => getenv('REDIS_HOST'), 8 | 'password' => getenv('REDIS_HOST_PASSWORD_FILE') ? trim(file_get_contents(getenv('REDIS_HOST_PASSWORD_FILE'))) : (string) getenv('REDIS_HOST_PASSWORD'), 9 | ), 10 | ); 11 | 12 | if (getenv('REDIS_HOST_PORT') !== false) { 13 | $CONFIG['redis']['port'] = (int) getenv('REDIS_HOST_PORT'); 14 | } elseif (getenv('REDIS_HOST')[0] != '/') { 15 | $CONFIG['redis']['port'] = 6379; 16 | } 17 | 18 | if (getenv('REDIS_HOST_USER') !== false) { 19 | $CONFIG['redis']['user'] = (string) getenv('REDIS_HOST_USER'); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /.github/workflows/delete-untagged-images.yml: -------------------------------------------------------------------------------- 1 | # 清理 ghcr.io 上的无标签镜像, 建议每年执行一次即可(会导致镜像下载量清空) 2 | name: Delete Untagged 3 | 4 | on: 5 | workflow_dispatch: 6 | 7 | jobs: 8 | generate-jobs: 9 | runs-on: ubuntu-latest 10 | steps: 11 | - name: Set up Docker Buildx 12 | uses: docker/setup-buildx-action@v3 13 | 14 | - name: Login to GitHub Container Registry 15 | uses: docker/login-action@v3 16 | with: 17 | registry: ghcr.io 18 | username: ${{ github.actor }} 19 | password: ${{ secrets.GH_TOKEN }} 20 | 21 | - name: Delete all containers from repository without tags 22 | uses: Chizkiyahu/delete-untagged-ghcr-action@v5 23 | with: 24 | token: ${{ secrets.GH_TOKEN }} 25 | repository_owner: ${{ github.repository_owner }} 26 | repository: ${{ github.repository }} 27 | untagged_only: true 28 | owner_type: org # or user 29 | except_untagged_multiplatform: true -------------------------------------------------------------------------------- /nextcloud/.config/smtp.config.php: -------------------------------------------------------------------------------- 1 | 'smtp', 5 | 'mail_smtphost' => getenv('SMTP_HOST'), 6 | 'mail_smtpport' => getenv('SMTP_PORT') ?: (getenv('SMTP_SECURE') ? 465 : 25), 7 | 'mail_smtpsecure' => getenv('SMTP_SECURE') ?: '', 8 | 'mail_smtpauth' => getenv('SMTP_NAME') && (getenv('SMTP_PASSWORD') || getenv('SMTP_PASSWORD_FILE')), 9 | 'mail_smtpauthtype' => getenv('SMTP_AUTHTYPE') ?: 'LOGIN', 10 | 'mail_smtpname' => getenv('SMTP_NAME') ?: '', 11 | 'mail_from_address' => getenv('MAIL_FROM_ADDRESS'), 12 | 'mail_domain' => getenv('MAIL_DOMAIN'), 13 | ); 14 | 15 | if (getenv('SMTP_PASSWORD_FILE')) { 16 | $CONFIG['mail_smtppassword'] = trim(file_get_contents(getenv('SMTP_PASSWORD_FILE'))); 17 | } elseif (getenv('SMTP_PASSWORD')) { 18 | $CONFIG['mail_smtppassword'] = getenv('SMTP_PASSWORD'); 19 | } else { 20 | $CONFIG['mail_smtppassword'] = ''; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /nextcloud/29/fpm-alpine/config/smtp.config.php: -------------------------------------------------------------------------------- 1 | 'smtp', 5 | 'mail_smtphost' => getenv('SMTP_HOST'), 6 | 'mail_smtpport' => getenv('SMTP_PORT') ?: (getenv('SMTP_SECURE') ? 465 : 25), 7 | 'mail_smtpsecure' => getenv('SMTP_SECURE') ?: '', 8 | 'mail_smtpauth' => getenv('SMTP_NAME') && (getenv('SMTP_PASSWORD') || getenv('SMTP_PASSWORD_FILE')), 9 | 'mail_smtpauthtype' => getenv('SMTP_AUTHTYPE') ?: 'LOGIN', 10 | 'mail_smtpname' => getenv('SMTP_NAME') ?: '', 11 | 'mail_from_address' => getenv('MAIL_FROM_ADDRESS'), 12 | 'mail_domain' => getenv('MAIL_DOMAIN'), 13 | ); 14 | 15 | if (getenv('SMTP_PASSWORD_FILE')) { 16 | $CONFIG['mail_smtppassword'] = trim(file_get_contents(getenv('SMTP_PASSWORD_FILE'))); 17 | } elseif (getenv('SMTP_PASSWORD')) { 18 | $CONFIG['mail_smtppassword'] = getenv('SMTP_PASSWORD'); 19 | } else { 20 | $CONFIG['mail_smtppassword'] = ''; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /nextcloud/30/fpm-alpine/config/smtp.config.php: -------------------------------------------------------------------------------- 1 | 'smtp', 5 | 'mail_smtphost' => getenv('SMTP_HOST'), 6 | 'mail_smtpport' => getenv('SMTP_PORT') ?: (getenv('SMTP_SECURE') ? 465 : 25), 7 | 'mail_smtpsecure' => getenv('SMTP_SECURE') ?: '', 8 | 'mail_smtpauth' => getenv('SMTP_NAME') && (getenv('SMTP_PASSWORD') || getenv('SMTP_PASSWORD_FILE')), 9 | 'mail_smtpauthtype' => getenv('SMTP_AUTHTYPE') ?: 'LOGIN', 10 | 'mail_smtpname' => getenv('SMTP_NAME') ?: '', 11 | 'mail_from_address' => getenv('MAIL_FROM_ADDRESS'), 12 | 'mail_domain' => getenv('MAIL_DOMAIN'), 13 | ); 14 | 15 | if (getenv('SMTP_PASSWORD_FILE')) { 16 | $CONFIG['mail_smtppassword'] = trim(file_get_contents(getenv('SMTP_PASSWORD_FILE'))); 17 | } elseif (getenv('SMTP_PASSWORD')) { 18 | $CONFIG['mail_smtppassword'] = getenv('SMTP_PASSWORD'); 19 | } else { 20 | $CONFIG['mail_smtppassword'] = ''; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /nextcloud/31/fpm-alpine/config/smtp.config.php: -------------------------------------------------------------------------------- 1 | 'smtp', 5 | 'mail_smtphost' => getenv('SMTP_HOST'), 6 | 'mail_smtpport' => getenv('SMTP_PORT') ?: (getenv('SMTP_SECURE') ? 465 : 25), 7 | 'mail_smtpsecure' => getenv('SMTP_SECURE') ?: '', 8 | 'mail_smtpauth' => getenv('SMTP_NAME') && (getenv('SMTP_PASSWORD') || getenv('SMTP_PASSWORD_FILE')), 9 | 'mail_smtpauthtype' => getenv('SMTP_AUTHTYPE') ?: 'LOGIN', 10 | 'mail_smtpname' => getenv('SMTP_NAME') ?: '', 11 | 'mail_from_address' => getenv('MAIL_FROM_ADDRESS'), 12 | 'mail_domain' => getenv('MAIL_DOMAIN'), 13 | ); 14 | 15 | if (getenv('SMTP_PASSWORD_FILE')) { 16 | $CONFIG['mail_smtppassword'] = trim(file_get_contents(getenv('SMTP_PASSWORD_FILE'))); 17 | } elseif (getenv('SMTP_PASSWORD')) { 18 | $CONFIG['mail_smtppassword'] = getenv('SMTP_PASSWORD'); 19 | } else { 20 | $CONFIG['mail_smtppassword'] = ''; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /mariadb/versions.json: -------------------------------------------------------------------------------- 1 | { 2 | "12.2": { 3 | "milestone": "12.2", 4 | "version": "12.2.1", 5 | "fullVersion": "1:12.2.1+maria~deb13", 6 | "releaseStatus": "RC", 7 | "supportType": "Rolling", 8 | "base": "debian:trixie", 9 | "arches": [ 10 | "amd64", 11 | "arm64v8", 12 | "ppc64le", 13 | "s390x" 14 | ] 15 | }, 16 | "12.1": { 17 | "milestone": "12.1", 18 | "version": "12.1.2", 19 | "fullVersion": "1:12.1.2+maria~deb13", 20 | "releaseStatus": "Stable", 21 | "supportType": "Rolling", 22 | "base": "debian:trixie", 23 | "arches": [ 24 | "amd64", 25 | "arm64v8", 26 | "ppc64le", 27 | "s390x" 28 | ] 29 | }, 30 | "11.8": { 31 | "milestone": "11.8", 32 | "version": "11.8.5", 33 | "fullVersion": "1:11.8.5+maria~deb13", 34 | "releaseStatus": "Stable", 35 | "supportType": "Long Term Support", 36 | "base": "debian:trixie", 37 | "arches": [ 38 | "amd64", 39 | "arm64v8", 40 | "ppc64le", 41 | "s390x" 42 | ] 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 吴小白 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /squid/examples/README.md: -------------------------------------------------------------------------------- 1 | # Running the examples 2 | 3 | ## docker-compose 4 | 5 | Install `docker-compose` from the Ubuntu archive: 6 | 7 | ``` 8 | $ sudo apt install -y docker-compose 9 | ``` 10 | 11 | Call `docker-compose` from the examples directory: 12 | 13 | ``` 14 | $ docker-compose up -f docker-compose.yml -d 15 | ``` 16 | 17 | You can now squid squid at `localhost:3128` 18 | 19 | To stop `docker-compose`, run: 20 | 21 | ``` 22 | $ docker-compose -f docker-compose.yml down 23 | ``` 24 | 25 | # Microk8s 26 | 27 | Install microk8s from snap: 28 | 29 | ``` 30 | $ snap install microk8s --classic 31 | ``` 32 | 33 | With microk8s running, enable the `dns` and `storage` add-ons: 34 | 35 | ``` 36 | $ microk8s enable dns storage 37 | ``` 38 | 39 | Create a configmap for the configuration files: 40 | 41 | ``` 42 | $ microk8s kubectl create configmap squid-config \ 43 | --from-file=squid=config/squid.conf \ 44 | ``` 45 | 46 | Apply the `squid-deployment.yml`: 47 | 48 | ``` 49 | $ microk8s kubectl apply -f squid-deployment.yml 50 | ``` 51 | 52 | You can now use the squid proxy on port `3128` (e.g., `https_proxy=localhost:3128 curl https://ubuntu.com`) 53 | -------------------------------------------------------------------------------- /nextcloud/.config/reverse-proxy.config.php: -------------------------------------------------------------------------------- 1 | [ 6 | 'class' => 'OC\\Files\\ObjectStore\\Swift', 7 | 'arguments' => [ 8 | 'autocreate' => $autocreate == true && strtolower($autocreate) !== 'false', 9 | 'user' => [ 10 | 'name' => getenv('OBJECTSTORE_SWIFT_USER_NAME'), 11 | 'password' => getenv('OBJECTSTORE_SWIFT_USER_PASSWORD'), 12 | 'domain' => [ 13 | 'name' => (getenv('OBJECTSTORE_SWIFT_USER_DOMAIN')) ?: 'Default', 14 | ], 15 | ], 16 | 'scope' => [ 17 | 'project' => [ 18 | 'name' => getenv('OBJECTSTORE_SWIFT_PROJECT_NAME'), 19 | 'domain' => [ 20 | 'name' => (getenv('OBJECTSTORE_SWIFT_PROJECT_DOMAIN')) ?: 'Default', 21 | ], 22 | ], 23 | ], 24 | 'serviceName' => (getenv('OBJECTSTORE_SWIFT_SERVICE_NAME')) ?: 'swift', 25 | 'region' => getenv('OBJECTSTORE_SWIFT_REGION'), 26 | 'url' => getenv('OBJECTSTORE_SWIFT_URL'), 27 | 'bucket' => getenv('OBJECTSTORE_SWIFT_CONTAINER_NAME'), 28 | ] 29 | ] 30 | ); 31 | } 32 | -------------------------------------------------------------------------------- /redis/apply-templates.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -Eeuo pipefail 3 | 4 | [ -f versions.json ] # run "versions.sh" first 5 | 6 | jqt='.jq-template.awk' 7 | if [ -n "${BASHBREW_SCRIPTS:-}" ]; then 8 | jqt="$BASHBREW_SCRIPTS/jq-template.awk" 9 | elif [ "$BASH_SOURCE" -nt "$jqt" ]; then 10 | # https://github.com/docker-library/bashbrew/blob/master/scripts/jq-template.awk 11 | wget -qO "$jqt" 'https://github.com/docker-library/bashbrew/raw/9f6a35772ac863a0241f147c820354e4008edf38/scripts/jq-template.awk' 12 | fi 13 | 14 | if [ "$#" -eq 0 ]; then 15 | versions="$(jq -r 'keys | map(@sh) | join(" ")' versions.json)" 16 | eval "set -- $versions" 17 | fi 18 | 19 | generated_warning() { 20 | cat <<-EOH 21 | # 22 | # NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh" 23 | # 24 | # PLEASE DO NOT EDIT IT DIRECTLY. 25 | # 26 | 27 | EOH 28 | } 29 | 30 | for version; do 31 | rm -rf "$version" 32 | 33 | for variant in debian alpine; do 34 | export version variant 35 | 36 | dir="$version/$variant" 37 | 38 | echo "processing $dir ..." 39 | 40 | mkdir -p "$dir" 41 | 42 | { 43 | generated_warning 44 | gawk -f "$jqt" Dockerfile.template 45 | } > "$dir/Dockerfile" 46 | 47 | cp -a docker-entrypoint.sh "$dir/" 48 | done 49 | done 50 | -------------------------------------------------------------------------------- /nextcloud/29/fpm-alpine/config/swift.config.php: -------------------------------------------------------------------------------- 1 | [ 6 | 'class' => 'OC\\Files\\ObjectStore\\Swift', 7 | 'arguments' => [ 8 | 'autocreate' => $autocreate == true && strtolower($autocreate) !== 'false', 9 | 'user' => [ 10 | 'name' => getenv('OBJECTSTORE_SWIFT_USER_NAME'), 11 | 'password' => getenv('OBJECTSTORE_SWIFT_USER_PASSWORD'), 12 | 'domain' => [ 13 | 'name' => (getenv('OBJECTSTORE_SWIFT_USER_DOMAIN')) ?: 'Default', 14 | ], 15 | ], 16 | 'scope' => [ 17 | 'project' => [ 18 | 'name' => getenv('OBJECTSTORE_SWIFT_PROJECT_NAME'), 19 | 'domain' => [ 20 | 'name' => (getenv('OBJECTSTORE_SWIFT_PROJECT_DOMAIN')) ?: 'Default', 21 | ], 22 | ], 23 | ], 24 | 'serviceName' => (getenv('OBJECTSTORE_SWIFT_SERVICE_NAME')) ?: 'swift', 25 | 'region' => getenv('OBJECTSTORE_SWIFT_REGION'), 26 | 'url' => getenv('OBJECTSTORE_SWIFT_URL'), 27 | 'bucket' => getenv('OBJECTSTORE_SWIFT_CONTAINER_NAME'), 28 | ] 29 | ] 30 | ); 31 | } 32 | -------------------------------------------------------------------------------- /nextcloud/30/fpm-alpine/config/swift.config.php: -------------------------------------------------------------------------------- 1 | [ 6 | 'class' => 'OC\\Files\\ObjectStore\\Swift', 7 | 'arguments' => [ 8 | 'autocreate' => $autocreate == true && strtolower($autocreate) !== 'false', 9 | 'user' => [ 10 | 'name' => getenv('OBJECTSTORE_SWIFT_USER_NAME'), 11 | 'password' => getenv('OBJECTSTORE_SWIFT_USER_PASSWORD'), 12 | 'domain' => [ 13 | 'name' => (getenv('OBJECTSTORE_SWIFT_USER_DOMAIN')) ?: 'Default', 14 | ], 15 | ], 16 | 'scope' => [ 17 | 'project' => [ 18 | 'name' => getenv('OBJECTSTORE_SWIFT_PROJECT_NAME'), 19 | 'domain' => [ 20 | 'name' => (getenv('OBJECTSTORE_SWIFT_PROJECT_DOMAIN')) ?: 'Default', 21 | ], 22 | ], 23 | ], 24 | 'serviceName' => (getenv('OBJECTSTORE_SWIFT_SERVICE_NAME')) ?: 'swift', 25 | 'region' => getenv('OBJECTSTORE_SWIFT_REGION'), 26 | 'url' => getenv('OBJECTSTORE_SWIFT_URL'), 27 | 'bucket' => getenv('OBJECTSTORE_SWIFT_CONTAINER_NAME'), 28 | ] 29 | ] 30 | ); 31 | } 32 | -------------------------------------------------------------------------------- /nextcloud/31/fpm-alpine/config/swift.config.php: -------------------------------------------------------------------------------- 1 | [ 6 | 'class' => 'OC\\Files\\ObjectStore\\Swift', 7 | 'arguments' => [ 8 | 'autocreate' => $autocreate == true && strtolower($autocreate) !== 'false', 9 | 'user' => [ 10 | 'name' => getenv('OBJECTSTORE_SWIFT_USER_NAME'), 11 | 'password' => getenv('OBJECTSTORE_SWIFT_USER_PASSWORD'), 12 | 'domain' => [ 13 | 'name' => (getenv('OBJECTSTORE_SWIFT_USER_DOMAIN')) ?: 'Default', 14 | ], 15 | ], 16 | 'scope' => [ 17 | 'project' => [ 18 | 'name' => getenv('OBJECTSTORE_SWIFT_PROJECT_NAME'), 19 | 'domain' => [ 20 | 'name' => (getenv('OBJECTSTORE_SWIFT_PROJECT_DOMAIN')) ?: 'Default', 21 | ], 22 | ], 23 | ], 24 | 'serviceName' => (getenv('OBJECTSTORE_SWIFT_SERVICE_NAME')) ?: 'swift', 25 | 'region' => getenv('OBJECTSTORE_SWIFT_REGION'), 26 | 'url' => getenv('OBJECTSTORE_SWIFT_URL'), 27 | 'bucket' => getenv('OBJECTSTORE_SWIFT_CONTAINER_NAME'), 28 | ] 29 | ] 30 | ); 31 | } 32 | -------------------------------------------------------------------------------- /squid/entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Squid OCI image entrypoint 4 | 5 | # This entrypoint aims to forward the squid logs to stdout to assist users of 6 | # common container related tooling (e.g., kubernetes, docker-compose, etc) to 7 | # access the service logs. 8 | 9 | # Moreover, it invokes the squid binary, leaving all the desired parameters to 10 | # be provided by the "command" passed to the spawned container. If no command 11 | # is provided by the user, the default behavior (as per the CMD statement in 12 | # the Dockerfile) will be to use Ubuntu's default configuration [1] and run 13 | # squid with the "-NYC" options to mimic the behavior of the Ubuntu provided 14 | # systemd unit. 15 | 16 | # [1] The default configuration is changed in the Dockerfile to allow local 17 | # network connections. See the Dockerfile for further information. 18 | 19 | # re-create snakeoil self-signed certificate removed in the build process 20 | if [ ! -f /etc/ssl/private/ssl-cert-snakeoil.key ]; then 21 | /usr/sbin/make-ssl-cert generate-default-snakeoil --force-overwrite > /dev/null 2>&1 22 | fi 23 | 24 | tail -F /var/log/squid/access.log 2>/dev/null & 25 | tail -F /var/log/squid/error.log 2>/dev/null & 26 | tail -F /var/log/squid/store.log 2>/dev/null & 27 | tail -F /var/log/squid/cache.log 2>/dev/null & 28 | # create missing cache directories and exit 29 | /usr/sbin/squid -Nz 30 | /usr/sbin/squid "$@" 31 | -------------------------------------------------------------------------------- /valkey/versions.json: -------------------------------------------------------------------------------- 1 | { 2 | "7.2": { 3 | "version": "7.2.11", 4 | "url": "https://github.com/valkey-io/valkey/archive/refs/tags/7.2.11.tar.gz", 5 | "sha256": "12acb6e5c07c71460761eee4361310dbd3618cecd42c70f02223d0ccf31fc6d8", 6 | "debian": { 7 | "version": "trixie" 8 | }, 9 | "alpine": { 10 | "version": "3.23" 11 | } 12 | }, 13 | "8.0": { 14 | "version": "8.0.6", 15 | "url": "https://github.com/valkey-io/valkey/archive/refs/tags/8.0.6.tar.gz", 16 | "sha256": "f8d15c257a3619e0e42e68998e9dc16536009d257662efa4c62ef7d08a71b0dd", 17 | "debian": { 18 | "version": "trixie" 19 | }, 20 | "alpine": { 21 | "version": "3.23" 22 | } 23 | }, 24 | "8.1": { 25 | "version": "8.1.5", 26 | "url": "https://github.com/valkey-io/valkey/archive/refs/tags/8.1.5.tar.gz", 27 | "sha256": "2d47a6afaec7a5383813579c2367193053ec885bc135e810284fe94ccdd324d2", 28 | "debian": { 29 | "version": "trixie" 30 | }, 31 | "alpine": { 32 | "version": "3.23" 33 | } 34 | }, 35 | "9.0": { 36 | "version": "9.0.1", 37 | "url": "https://github.com/valkey-io/valkey/archive/refs/tags/9.0.1.tar.gz", 38 | "sha256": "9cfbc5f32a2a6058ee0f8c532b9c4d24167cc49d719f091dd75f1bb8353a1fc5", 39 | "debian": { 40 | "version": "trixie" 41 | }, 42 | "alpine": { 43 | "version": "3.23" 44 | } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /squid/examples/squid-deployment.yml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: v1 3 | kind: PersistentVolumeClaim 4 | metadata: 5 | name: squid-volume-claim 6 | spec: 7 | accessModes: 8 | - ReadWriteOnce 9 | storageClassName: microk8s-hostpath 10 | resources: 11 | requests: 12 | storage: 500M 13 | --- 14 | apiVersion: v1 15 | kind: Service 16 | metadata: 17 | name: squid-service 18 | labels: 19 | app: squid 20 | spec: 21 | ports: 22 | - port: 3128 23 | selector: 24 | app: squid 25 | --- 26 | apiVersion: apps/v1 27 | kind: Deployment 28 | metadata: 29 | name: squid-deployment 30 | spec: 31 | replicas: 1 32 | selector: 33 | matchLabels: 34 | app: squid 35 | template: 36 | metadata: 37 | labels: 38 | app: squid 39 | spec: 40 | containers: 41 | - name: squid 42 | image: ghcr.io/loong64/squid:edge 43 | ports: 44 | - containerPort: 3128 45 | name: squid 46 | protocol: TCP 47 | volumeMounts: 48 | - name: squid-config-volume 49 | mountPath: /etc/squid/squid.conf 50 | subPath: squid.conf 51 | - name: squid-data 52 | mountPath: /var/spool/squid 53 | volumes: 54 | - name: squid-config-volume 55 | configMap: 56 | name: squid-config 57 | items: 58 | - key: squid 59 | path: squid.conf 60 | - name: squid-data 61 | persistentVolumeClaim: 62 | claimName: squid-volume-claim 63 | -------------------------------------------------------------------------------- /php/apache2-foreground: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | 4 | # Note: we don't just use "apache2ctl" here because it itself is just a shell-script wrapper around apache2 which provides extra functionality like "apache2ctl start" for launching apache2 in the background. 5 | # (also, when run as "apache2ctl ", it does not use "exec", which leaves an undesirable resident shell process) 6 | 7 | : "${APACHE_CONFDIR:=/etc/apache2}" 8 | : "${APACHE_ENVVARS:=$APACHE_CONFDIR/envvars}" 9 | if test -f "$APACHE_ENVVARS"; then 10 | . "$APACHE_ENVVARS" 11 | fi 12 | 13 | # Apache gets grumpy about PID files pre-existing 14 | : "${APACHE_RUN_DIR:=/var/run/apache2}" 15 | : "${APACHE_PID_FILE:=$APACHE_RUN_DIR/apache2.pid}" 16 | rm -f "$APACHE_PID_FILE" 17 | 18 | # create missing directories 19 | # (especially APACHE_RUN_DIR, APACHE_LOCK_DIR, and APACHE_LOG_DIR) 20 | for e in "${!APACHE_@}"; do 21 | if [[ "$e" == *_DIR ]] && [[ "${!e}" == /* ]]; then 22 | # handle "/var/lock" being a symlink to "/run/lock", but "/run/lock" not existing beforehand, so "/var/lock/something" fails to mkdir 23 | # mkdir: cannot create directory '/var/lock': File exists 24 | dir="${!e}" 25 | while [ "$dir" != "$(dirname "$dir")" ]; do 26 | dir="$(dirname "$dir")" 27 | if [ -d "$dir" ]; then 28 | break 29 | fi 30 | absDir="$(readlink -f "$dir" 2>/dev/null || :)" 31 | if [ -n "$absDir" ]; then 32 | mkdir -p "$absDir" 33 | fi 34 | done 35 | 36 | mkdir -p "${!e}" 37 | fi 38 | done 39 | 40 | exec apache2 -DFOREGROUND "$@" 41 | -------------------------------------------------------------------------------- /.github/workflows/check.yml: -------------------------------------------------------------------------------- 1 | name: Check update 2 | 3 | on: 4 | pull_request: 5 | types: 6 | - opened 7 | - synchronize 8 | - reopened 9 | 10 | jobs: 11 | check: 12 | runs-on: ubuntu-latest 13 | steps: 14 | - uses: actions/checkout@v5 15 | 16 | - name: Install dependencies 17 | run: | 18 | sudo wget -q -O /usr/local/bin/bashbrew https://github.com/docker-library/bashbrew/releases/latest/download/bashbrew-amd64 19 | sudo chmod +x /usr/local/bin/bashbrew 20 | sudo chown root:root /usr/local/bin/bashbrew 21 | 22 | - name: Check for changes 23 | run: | 24 | git config --global user.name "${GITHUB_ACTOR}" 25 | git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com" 26 | 27 | need_update=false 28 | for app in */; do 29 | app=${app%/} 30 | if [ -f "$app/update.sh" ]; then 31 | pushd "$app" 32 | chmod +x *.sh 33 | ./update.sh 34 | popd 35 | if git status --porcelain -- $app | grep 'M'; then 36 | need_update=true 37 | fi 38 | fi 39 | done 40 | 41 | if [ "$need_update" = true ]; then 42 | git status 43 | git commit -am "build(app): bump app to latest" 44 | git push origin ${{ github.event.pull_request.head.ref }} 45 | fi 46 | env: 47 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 48 | -------------------------------------------------------------------------------- /php/8.2/trixie/apache/apache2-foreground: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | 4 | # Note: we don't just use "apache2ctl" here because it itself is just a shell-script wrapper around apache2 which provides extra functionality like "apache2ctl start" for launching apache2 in the background. 5 | # (also, when run as "apache2ctl ", it does not use "exec", which leaves an undesirable resident shell process) 6 | 7 | : "${APACHE_CONFDIR:=/etc/apache2}" 8 | : "${APACHE_ENVVARS:=$APACHE_CONFDIR/envvars}" 9 | if test -f "$APACHE_ENVVARS"; then 10 | . "$APACHE_ENVVARS" 11 | fi 12 | 13 | # Apache gets grumpy about PID files pre-existing 14 | : "${APACHE_RUN_DIR:=/var/run/apache2}" 15 | : "${APACHE_PID_FILE:=$APACHE_RUN_DIR/apache2.pid}" 16 | rm -f "$APACHE_PID_FILE" 17 | 18 | # create missing directories 19 | # (especially APACHE_RUN_DIR, APACHE_LOCK_DIR, and APACHE_LOG_DIR) 20 | for e in "${!APACHE_@}"; do 21 | if [[ "$e" == *_DIR ]] && [[ "${!e}" == /* ]]; then 22 | # handle "/var/lock" being a symlink to "/run/lock", but "/run/lock" not existing beforehand, so "/var/lock/something" fails to mkdir 23 | # mkdir: cannot create directory '/var/lock': File exists 24 | dir="${!e}" 25 | while [ "$dir" != "$(dirname "$dir")" ]; do 26 | dir="$(dirname "$dir")" 27 | if [ -d "$dir" ]; then 28 | break 29 | fi 30 | absDir="$(readlink -f "$dir" 2>/dev/null || :)" 31 | if [ -n "$absDir" ]; then 32 | mkdir -p "$absDir" 33 | fi 34 | done 35 | 36 | mkdir -p "${!e}" 37 | fi 38 | done 39 | 40 | exec apache2 -DFOREGROUND "$@" 41 | -------------------------------------------------------------------------------- /php/8.3/trixie/apache/apache2-foreground: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | 4 | # Note: we don't just use "apache2ctl" here because it itself is just a shell-script wrapper around apache2 which provides extra functionality like "apache2ctl start" for launching apache2 in the background. 5 | # (also, when run as "apache2ctl ", it does not use "exec", which leaves an undesirable resident shell process) 6 | 7 | : "${APACHE_CONFDIR:=/etc/apache2}" 8 | : "${APACHE_ENVVARS:=$APACHE_CONFDIR/envvars}" 9 | if test -f "$APACHE_ENVVARS"; then 10 | . "$APACHE_ENVVARS" 11 | fi 12 | 13 | # Apache gets grumpy about PID files pre-existing 14 | : "${APACHE_RUN_DIR:=/var/run/apache2}" 15 | : "${APACHE_PID_FILE:=$APACHE_RUN_DIR/apache2.pid}" 16 | rm -f "$APACHE_PID_FILE" 17 | 18 | # create missing directories 19 | # (especially APACHE_RUN_DIR, APACHE_LOCK_DIR, and APACHE_LOG_DIR) 20 | for e in "${!APACHE_@}"; do 21 | if [[ "$e" == *_DIR ]] && [[ "${!e}" == /* ]]; then 22 | # handle "/var/lock" being a symlink to "/run/lock", but "/run/lock" not existing beforehand, so "/var/lock/something" fails to mkdir 23 | # mkdir: cannot create directory '/var/lock': File exists 24 | dir="${!e}" 25 | while [ "$dir" != "$(dirname "$dir")" ]; do 26 | dir="$(dirname "$dir")" 27 | if [ -d "$dir" ]; then 28 | break 29 | fi 30 | absDir="$(readlink -f "$dir" 2>/dev/null || :)" 31 | if [ -n "$absDir" ]; then 32 | mkdir -p "$absDir" 33 | fi 34 | done 35 | 36 | mkdir -p "${!e}" 37 | fi 38 | done 39 | 40 | exec apache2 -DFOREGROUND "$@" 41 | -------------------------------------------------------------------------------- /php/8.4/trixie/apache/apache2-foreground: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | 4 | # Note: we don't just use "apache2ctl" here because it itself is just a shell-script wrapper around apache2 which provides extra functionality like "apache2ctl start" for launching apache2 in the background. 5 | # (also, when run as "apache2ctl ", it does not use "exec", which leaves an undesirable resident shell process) 6 | 7 | : "${APACHE_CONFDIR:=/etc/apache2}" 8 | : "${APACHE_ENVVARS:=$APACHE_CONFDIR/envvars}" 9 | if test -f "$APACHE_ENVVARS"; then 10 | . "$APACHE_ENVVARS" 11 | fi 12 | 13 | # Apache gets grumpy about PID files pre-existing 14 | : "${APACHE_RUN_DIR:=/var/run/apache2}" 15 | : "${APACHE_PID_FILE:=$APACHE_RUN_DIR/apache2.pid}" 16 | rm -f "$APACHE_PID_FILE" 17 | 18 | # create missing directories 19 | # (especially APACHE_RUN_DIR, APACHE_LOCK_DIR, and APACHE_LOG_DIR) 20 | for e in "${!APACHE_@}"; do 21 | if [[ "$e" == *_DIR ]] && [[ "${!e}" == /* ]]; then 22 | # handle "/var/lock" being a symlink to "/run/lock", but "/run/lock" not existing beforehand, so "/var/lock/something" fails to mkdir 23 | # mkdir: cannot create directory '/var/lock': File exists 24 | dir="${!e}" 25 | while [ "$dir" != "$(dirname "$dir")" ]; do 26 | dir="$(dirname "$dir")" 27 | if [ -d "$dir" ]; then 28 | break 29 | fi 30 | absDir="$(readlink -f "$dir" 2>/dev/null || :)" 31 | if [ -n "$absDir" ]; then 32 | mkdir -p "$absDir" 33 | fi 34 | done 35 | 36 | mkdir -p "${!e}" 37 | fi 38 | done 39 | 40 | exec apache2 -DFOREGROUND "$@" 41 | -------------------------------------------------------------------------------- /php/8.5/trixie/apache/apache2-foreground: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | 4 | # Note: we don't just use "apache2ctl" here because it itself is just a shell-script wrapper around apache2 which provides extra functionality like "apache2ctl start" for launching apache2 in the background. 5 | # (also, when run as "apache2ctl ", it does not use "exec", which leaves an undesirable resident shell process) 6 | 7 | : "${APACHE_CONFDIR:=/etc/apache2}" 8 | : "${APACHE_ENVVARS:=$APACHE_CONFDIR/envvars}" 9 | if test -f "$APACHE_ENVVARS"; then 10 | . "$APACHE_ENVVARS" 11 | fi 12 | 13 | # Apache gets grumpy about PID files pre-existing 14 | : "${APACHE_RUN_DIR:=/var/run/apache2}" 15 | : "${APACHE_PID_FILE:=$APACHE_RUN_DIR/apache2.pid}" 16 | rm -f "$APACHE_PID_FILE" 17 | 18 | # create missing directories 19 | # (especially APACHE_RUN_DIR, APACHE_LOCK_DIR, and APACHE_LOG_DIR) 20 | for e in "${!APACHE_@}"; do 21 | if [[ "$e" == *_DIR ]] && [[ "${!e}" == /* ]]; then 22 | # handle "/var/lock" being a symlink to "/run/lock", but "/run/lock" not existing beforehand, so "/var/lock/something" fails to mkdir 23 | # mkdir: cannot create directory '/var/lock': File exists 24 | dir="${!e}" 25 | while [ "$dir" != "$(dirname "$dir")" ]; do 26 | dir="$(dirname "$dir")" 27 | if [ -d "$dir" ]; then 28 | break 29 | fi 30 | absDir="$(readlink -f "$dir" 2>/dev/null || :)" 31 | if [ -n "$absDir" ]; then 32 | mkdir -p "$absDir" 33 | fi 34 | done 35 | 36 | mkdir -p "${!e}" 37 | fi 38 | done 39 | 40 | exec apache2 -DFOREGROUND "$@" 41 | -------------------------------------------------------------------------------- /squid/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ghcr.io/loong64/debian:trixie 2 | 3 | ENV TZ=UTC 4 | # LABEL maintainer="Ubuntu Server team " 5 | 6 | RUN set -eux; \ 7 | apt-get update; \ 8 | DEBIAN_FRONTEND=noninteractive apt-get full-upgrade -y; \ 9 | DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ 10 | squid ca-certificates tzdata; \ 11 | DEBIAN_FRONTEND=noninteractive apt-get remove --purge --auto-remove -y; \ 12 | rm -rf /var/lib/apt/lists/*; \ 13 | # Change default configuration to allow local network access \ 14 | sed -i 's/^#http_access allow localnet$/http_access allow localnet/' /etc/squid/conf.d/debian.conf; \ 15 | echo "# Set max_filedescriptors to avoid using system's RLIMIT_NOFILE. See LP: #1978272" > /etc/squid/conf.d/rock.conf; \ 16 | echo 'max_filedescriptors 1024' >> /etc/squid/conf.d/rock.conf; \ 17 | # Remove the snakeoil self-signed certificate generated by the ssl-cert package 18 | rm -f /etc/ssl/certs/ssl-cert-snakeoil.pem /etc/ssl/private/ssl-cert-snakeoil.key; \ 19 | # smoketest 20 | /usr/sbin/squid --version; \ 21 | # create manifest \ 22 | mkdir -p /usr/share/rocks; \ 23 | (echo "# os-release" && cat /etc/os-release && echo "# dpkg-query" && dpkg-query -f '${db:Status-Abbrev},${binary:Package},${Version},${source:Package},${Source:Version}\n' -W) > /usr/share/rocks/dpkg.query 24 | 25 | EXPOSE 3128 26 | VOLUME /var/log/squid \ 27 | /var/spool/squid 28 | 29 | COPY entrypoint.sh /usr/local/bin/entrypoint.sh 30 | ENTRYPOINT ["entrypoint.sh"] 31 | CMD ["-f", "/etc/squid/squid.conf", "-NYC"] 32 | -------------------------------------------------------------------------------- /valkey/apply-templates.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -Eeuo pipefail 3 | 4 | [ -f versions.json ] # run "versions.sh" first 5 | 6 | jqt='.jq-template.awk' 7 | if [ -n "${BASHBREW_SCRIPTS:-}" ]; then 8 | jqt="$BASHBREW_SCRIPTS/jq-template.awk" 9 | elif [ "$BASH_SOURCE" -nt "$jqt" ]; then 10 | # https://github.com/docker-library/bashbrew/blob/master/scripts/jq-template.awk 11 | wget -qO "$jqt" 'https://github.com/docker-library/bashbrew/raw/9f6a35772ac863a0241f147c820354e4008edf38/scripts/jq-template.awk' 12 | fi 13 | 14 | jqf='.template-helper-functions.jq' 15 | if [ -n "${BASHBREW_SCRIPTS:-}" ]; then 16 | jqf="$BASHBREW_SCRIPTS/template-helper-functions.jq" 17 | elif [ "$BASH_SOURCE" -nt "$jqf" ]; then 18 | # https://github.com/docker-library/bashbrew/blob/master/scripts/template-helper-functions.jq 19 | wget -qO "$jqf" 'https://github.com/docker-library/bashbrew/raw/08c926140ad0af22de58c2a2656afda58082ba3e/scripts/template-helper-functions.jq' 20 | fi 21 | 22 | if [ "$#" -eq 0 ]; then 23 | versions="$(jq -r 'keys | map(@sh) | join(" ")' versions.json)" 24 | eval "set -- $versions" 25 | fi 26 | 27 | generated_warning() { 28 | cat <<-EOH 29 | # 30 | # NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh" 31 | # 32 | # PLEASE DO NOT EDIT IT DIRECTLY. 33 | # 34 | 35 | EOH 36 | } 37 | 38 | for version; do 39 | rm -rf "$version" 40 | 41 | for variant in debian alpine; do 42 | export version variant 43 | 44 | dir="$version/$variant" 45 | 46 | echo "processing $dir ..." 47 | 48 | mkdir -p "$dir" 49 | 50 | { 51 | generated_warning 52 | gawk -f "$jqt" Dockerfile.template 53 | } > "$dir/Dockerfile" 54 | 55 | cp -a docker-entrypoint.sh "$dir/" 56 | done 57 | done 58 | -------------------------------------------------------------------------------- /postgres/apply-templates.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -Eeuo pipefail 3 | 4 | [ -f versions.json ] # run "versions.sh" first 5 | 6 | cd "$(dirname "$(readlink -f "$BASH_SOURCE")")" 7 | 8 | jqt='.jq-template.awk' 9 | if [ -n "${BASHBREW_SCRIPTS:-}" ]; then 10 | jqt="$BASHBREW_SCRIPTS/jq-template.awk" 11 | elif [ "$BASH_SOURCE" -nt "$jqt" ]; then 12 | # https://github.com/docker-library/bashbrew/blob/master/scripts/jq-template.awk 13 | wget -qO "$jqt" 'https://github.com/docker-library/bashbrew/raw/9f6a35772ac863a0241f147c820354e4008edf38/scripts/jq-template.awk' 14 | fi 15 | 16 | if [ "$#" -eq 0 ]; then 17 | versions="$(jq -r 'keys | map(@sh) | join(" ")' versions.json)" 18 | eval "set -- $versions" 19 | fi 20 | 21 | generated_warning() { 22 | cat <<-EOH 23 | # 24 | # NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh" 25 | # 26 | # PLEASE DO NOT EDIT IT DIRECTLY. 27 | # 28 | 29 | EOH 30 | } 31 | 32 | for version; do 33 | export version 34 | 35 | major="$(jq -r '.[env.version].major' versions.json)" 36 | 37 | variants="$(jq -r '.[env.version].variants | map(@sh) | join(" ")' versions.json)" 38 | eval "variants=( $variants )" 39 | 40 | rm -rf "$version" 41 | 42 | for variant in "${variants[@]}"; do 43 | export variant 44 | 45 | dir="$version/$variant" 46 | mkdir -p "$dir" 47 | 48 | echo "processing $dir ..." 49 | 50 | case "$variant" in 51 | alpine*) 52 | template='Dockerfile-alpine.template' 53 | ;; 54 | *) 55 | template='Dockerfile-debian.template' 56 | ;; 57 | esac 58 | 59 | { 60 | generated_warning 61 | gawk -f "$jqt" "$template" 62 | } > "$dir/Dockerfile" 63 | 64 | cp -a docker-entrypoint.sh docker-ensure-initdb.sh "$dir/" 65 | done 66 | done 67 | -------------------------------------------------------------------------------- /php/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.2/trixie/cli/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.2/trixie/fpm/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.2/trixie/zts/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.3/trixie/cli/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.3/trixie/fpm/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.3/trixie/zts/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.4/trixie/cli/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.4/trixie/fpm/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.4/trixie/zts/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.5/trixie/cli/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.5/trixie/fpm/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.5/trixie/zts/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.2/alpine3.22/cli/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.2/alpine3.22/fpm/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.2/alpine3.22/zts/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.2/alpine3.23/cli/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.2/alpine3.23/fpm/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.2/alpine3.23/zts/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.2/trixie/apache/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.3/alpine3.22/cli/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.3/alpine3.22/fpm/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.3/alpine3.22/zts/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.3/alpine3.23/cli/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.3/alpine3.23/fpm/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.3/alpine3.23/zts/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.3/trixie/apache/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.4/alpine3.22/cli/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.4/alpine3.22/fpm/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.4/alpine3.22/zts/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.4/alpine3.23/cli/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.4/alpine3.23/fpm/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.4/alpine3.23/zts/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.4/trixie/apache/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.5/alpine3.22/cli/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.5/alpine3.22/fpm/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.5/alpine3.22/zts/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.5/alpine3.23/cli/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.5/alpine3.23/fpm/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.5/alpine3.23/zts/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /php/8.5/trixie/apache/docker-php-ext-configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # prefer user supplied CFLAGS, but default to our PHP_CFLAGS 5 | : ${CFLAGS:=$PHP_CFLAGS} 6 | : ${CPPFLAGS:=$PHP_CPPFLAGS} 7 | : ${LDFLAGS:=$PHP_LDFLAGS} 8 | export CFLAGS CPPFLAGS LDFLAGS 9 | 10 | srcExists= 11 | if [ -d /usr/src/php ]; then 12 | srcExists=1 13 | fi 14 | docker-php-source extract 15 | if [ -z "$srcExists" ]; then 16 | touch /usr/src/php/.docker-delete-me 17 | fi 18 | 19 | cd /usr/src/php/ext 20 | 21 | usage() { 22 | echo "usage: $0 ext-name [configure flags]" 23 | echo " ie: $0 gd --with-jpeg-dir=/usr/local/something" 24 | echo 25 | echo 'Possible values for ext-name:' 26 | find . \ 27 | -mindepth 2 \ 28 | -maxdepth 2 \ 29 | -type f \ 30 | -name 'config.m4' \ 31 | | xargs -n1 dirname \ 32 | | xargs -n1 basename \ 33 | | sort \ 34 | | xargs 35 | echo 36 | echo 'Some of the above modules are already compiled into PHP; please check' 37 | echo 'the output of "php -i" to see which modules are already loaded.' 38 | } 39 | 40 | ext="$1" 41 | if [ -z "$ext" ] || [ ! -d "$ext" ]; then 42 | usage >&2 43 | exit 1 44 | fi 45 | shift 46 | 47 | pm='unknown' 48 | if [ -e /lib/apk/db/installed ]; then 49 | pm='apk' 50 | fi 51 | 52 | if [ "$pm" = 'apk' ]; then 53 | if \ 54 | [ -n "$PHPIZE_DEPS" ] \ 55 | && ! apk info --installed .phpize-deps > /dev/null \ 56 | && ! apk info --installed .phpize-deps-configure > /dev/null \ 57 | ; then 58 | apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS 59 | fi 60 | fi 61 | 62 | if command -v dpkg-architecture > /dev/null; then 63 | gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" 64 | set -- --build="$gnuArch" "$@" 65 | fi 66 | 67 | cd "$ext" 68 | phpize 69 | ./configure --enable-option-checking=fatal "$@" 70 | -------------------------------------------------------------------------------- /nginx/entrypoint/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # vim:sw=4:ts=4:et 3 | 4 | set -e 5 | 6 | entrypoint_log() { 7 | if [ -z "${NGINX_ENTRYPOINT_QUIET_LOGS:-}" ]; then 8 | echo "$@" 9 | fi 10 | } 11 | 12 | if [ "$1" = "nginx" ] || [ "$1" = "nginx-debug" ]; then 13 | if /usr/bin/find "/docker-entrypoint.d/" -mindepth 1 -maxdepth 1 -type f -print -quit 2>/dev/null | read v; then 14 | entrypoint_log "$0: /docker-entrypoint.d/ is not empty, will attempt to perform configuration" 15 | 16 | entrypoint_log "$0: Looking for shell scripts in /docker-entrypoint.d/" 17 | find "/docker-entrypoint.d/" -follow -type f -print | sort -V | while read -r f; do 18 | case "$f" in 19 | *.envsh) 20 | if [ -x "$f" ]; then 21 | entrypoint_log "$0: Sourcing $f"; 22 | . "$f" 23 | else 24 | # warn on shell scripts without exec bit 25 | entrypoint_log "$0: Ignoring $f, not executable"; 26 | fi 27 | ;; 28 | *.sh) 29 | if [ -x "$f" ]; then 30 | entrypoint_log "$0: Launching $f"; 31 | "$f" 32 | else 33 | # warn on shell scripts without exec bit 34 | entrypoint_log "$0: Ignoring $f, not executable"; 35 | fi 36 | ;; 37 | *) entrypoint_log "$0: Ignoring $f";; 38 | esac 39 | done 40 | 41 | entrypoint_log "$0: Configuration complete; ready for start up" 42 | else 43 | entrypoint_log "$0: No files found in /docker-entrypoint.d/, skipping configuration" 44 | fi 45 | fi 46 | 47 | exec "$@" 48 | -------------------------------------------------------------------------------- /nginx/mainline/debian/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # vim:sw=4:ts=4:et 3 | 4 | set -e 5 | 6 | entrypoint_log() { 7 | if [ -z "${NGINX_ENTRYPOINT_QUIET_LOGS:-}" ]; then 8 | echo "$@" 9 | fi 10 | } 11 | 12 | if [ "$1" = "nginx" ] || [ "$1" = "nginx-debug" ]; then 13 | if /usr/bin/find "/docker-entrypoint.d/" -mindepth 1 -maxdepth 1 -type f -print -quit 2>/dev/null | read v; then 14 | entrypoint_log "$0: /docker-entrypoint.d/ is not empty, will attempt to perform configuration" 15 | 16 | entrypoint_log "$0: Looking for shell scripts in /docker-entrypoint.d/" 17 | find "/docker-entrypoint.d/" -follow -type f -print | sort -V | while read -r f; do 18 | case "$f" in 19 | *.envsh) 20 | if [ -x "$f" ]; then 21 | entrypoint_log "$0: Sourcing $f"; 22 | . "$f" 23 | else 24 | # warn on shell scripts without exec bit 25 | entrypoint_log "$0: Ignoring $f, not executable"; 26 | fi 27 | ;; 28 | *.sh) 29 | if [ -x "$f" ]; then 30 | entrypoint_log "$0: Launching $f"; 31 | "$f" 32 | else 33 | # warn on shell scripts without exec bit 34 | entrypoint_log "$0: Ignoring $f, not executable"; 35 | fi 36 | ;; 37 | *) entrypoint_log "$0: Ignoring $f";; 38 | esac 39 | done 40 | 41 | entrypoint_log "$0: Configuration complete; ready for start up" 42 | else 43 | entrypoint_log "$0: No files found in /docker-entrypoint.d/, skipping configuration" 44 | fi 45 | fi 46 | 47 | exec "$@" 48 | -------------------------------------------------------------------------------- /nginx/stable/debian/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # vim:sw=4:ts=4:et 3 | 4 | set -e 5 | 6 | entrypoint_log() { 7 | if [ -z "${NGINX_ENTRYPOINT_QUIET_LOGS:-}" ]; then 8 | echo "$@" 9 | fi 10 | } 11 | 12 | if [ "$1" = "nginx" ] || [ "$1" = "nginx-debug" ]; then 13 | if /usr/bin/find "/docker-entrypoint.d/" -mindepth 1 -maxdepth 1 -type f -print -quit 2>/dev/null | read v; then 14 | entrypoint_log "$0: /docker-entrypoint.d/ is not empty, will attempt to perform configuration" 15 | 16 | entrypoint_log "$0: Looking for shell scripts in /docker-entrypoint.d/" 17 | find "/docker-entrypoint.d/" -follow -type f -print | sort -V | while read -r f; do 18 | case "$f" in 19 | *.envsh) 20 | if [ -x "$f" ]; then 21 | entrypoint_log "$0: Sourcing $f"; 22 | . "$f" 23 | else 24 | # warn on shell scripts without exec bit 25 | entrypoint_log "$0: Ignoring $f, not executable"; 26 | fi 27 | ;; 28 | *.sh) 29 | if [ -x "$f" ]; then 30 | entrypoint_log "$0: Launching $f"; 31 | "$f" 32 | else 33 | # warn on shell scripts without exec bit 34 | entrypoint_log "$0: Ignoring $f, not executable"; 35 | fi 36 | ;; 37 | *) entrypoint_log "$0: Ignoring $f";; 38 | esac 39 | done 40 | 41 | entrypoint_log "$0: Configuration complete; ready for start up" 42 | else 43 | entrypoint_log "$0: No files found in /docker-entrypoint.d/, skipping configuration" 44 | fi 45 | fi 46 | 47 | exec "$@" 48 | -------------------------------------------------------------------------------- /nginx/mainline/alpine-slim/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # vim:sw=4:ts=4:et 3 | 4 | set -e 5 | 6 | entrypoint_log() { 7 | if [ -z "${NGINX_ENTRYPOINT_QUIET_LOGS:-}" ]; then 8 | echo "$@" 9 | fi 10 | } 11 | 12 | if [ "$1" = "nginx" ] || [ "$1" = "nginx-debug" ]; then 13 | if /usr/bin/find "/docker-entrypoint.d/" -mindepth 1 -maxdepth 1 -type f -print -quit 2>/dev/null | read v; then 14 | entrypoint_log "$0: /docker-entrypoint.d/ is not empty, will attempt to perform configuration" 15 | 16 | entrypoint_log "$0: Looking for shell scripts in /docker-entrypoint.d/" 17 | find "/docker-entrypoint.d/" -follow -type f -print | sort -V | while read -r f; do 18 | case "$f" in 19 | *.envsh) 20 | if [ -x "$f" ]; then 21 | entrypoint_log "$0: Sourcing $f"; 22 | . "$f" 23 | else 24 | # warn on shell scripts without exec bit 25 | entrypoint_log "$0: Ignoring $f, not executable"; 26 | fi 27 | ;; 28 | *.sh) 29 | if [ -x "$f" ]; then 30 | entrypoint_log "$0: Launching $f"; 31 | "$f" 32 | else 33 | # warn on shell scripts without exec bit 34 | entrypoint_log "$0: Ignoring $f, not executable"; 35 | fi 36 | ;; 37 | *) entrypoint_log "$0: Ignoring $f";; 38 | esac 39 | done 40 | 41 | entrypoint_log "$0: Configuration complete; ready for start up" 42 | else 43 | entrypoint_log "$0: No files found in /docker-entrypoint.d/, skipping configuration" 44 | fi 45 | fi 46 | 47 | exec "$@" 48 | -------------------------------------------------------------------------------- /nginx/stable/alpine-slim/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # vim:sw=4:ts=4:et 3 | 4 | set -e 5 | 6 | entrypoint_log() { 7 | if [ -z "${NGINX_ENTRYPOINT_QUIET_LOGS:-}" ]; then 8 | echo "$@" 9 | fi 10 | } 11 | 12 | if [ "$1" = "nginx" ] || [ "$1" = "nginx-debug" ]; then 13 | if /usr/bin/find "/docker-entrypoint.d/" -mindepth 1 -maxdepth 1 -type f -print -quit 2>/dev/null | read v; then 14 | entrypoint_log "$0: /docker-entrypoint.d/ is not empty, will attempt to perform configuration" 15 | 16 | entrypoint_log "$0: Looking for shell scripts in /docker-entrypoint.d/" 17 | find "/docker-entrypoint.d/" -follow -type f -print | sort -V | while read -r f; do 18 | case "$f" in 19 | *.envsh) 20 | if [ -x "$f" ]; then 21 | entrypoint_log "$0: Sourcing $f"; 22 | . "$f" 23 | else 24 | # warn on shell scripts without exec bit 25 | entrypoint_log "$0: Ignoring $f, not executable"; 26 | fi 27 | ;; 28 | *.sh) 29 | if [ -x "$f" ]; then 30 | entrypoint_log "$0: Launching $f"; 31 | "$f" 32 | else 33 | # warn on shell scripts without exec bit 34 | entrypoint_log "$0: Ignoring $f, not executable"; 35 | fi 36 | ;; 37 | *) entrypoint_log "$0: Ignoring $f";; 38 | esac 39 | done 40 | 41 | entrypoint_log "$0: Configuration complete; ready for start up" 42 | else 43 | entrypoint_log "$0: No files found in /docker-entrypoint.d/, skipping configuration" 44 | fi 45 | fi 46 | 47 | exec "$@" 48 | --------------------------------------------------------------------------------