mirror of
https://github.com/nextcloud/docker.git
synced 2025-01-24 14:43:53 +01:00
Alpine 3.17 (#1953)
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
This commit is contained in:
parent
89a0b8904e
commit
165698da7b
2 changed files with 9 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
FROM php:%%PHP_VERSION%%-%%VARIANT%%3.16
|
FROM php:%%PHP_VERSION%%-%%VARIANT%%%%ALPINE_VERSION%%
|
||||||
|
|
||||||
# entrypoint.sh and cron.sh dependencies
|
# entrypoint.sh and cron.sh dependencies
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
|
|
|
@ -1,6 +1,12 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
|
|
||||||
|
declare -A alpine_version=(
|
||||||
|
[24]='3.16'
|
||||||
|
[25]='3.16'
|
||||||
|
[default]='3.17'
|
||||||
|
)
|
||||||
|
|
||||||
declare -A php_version=(
|
declare -A php_version=(
|
||||||
[24]='8.0'
|
[24]='8.0'
|
||||||
[default]='8.1'
|
[default]='8.1'
|
||||||
|
@ -86,6 +92,7 @@ function version_greater_or_equal() {
|
||||||
|
|
||||||
function create_variant() {
|
function create_variant() {
|
||||||
dir="$1/$variant"
|
dir="$1/$variant"
|
||||||
|
alpineVersion=${alpine_version[$version]-${alpine_version[default]}}
|
||||||
phpVersion=${php_version[$version]-${php_version[default]}}
|
phpVersion=${php_version[$version]-${php_version[default]}}
|
||||||
crontabInt=${crontab_int[$version]-${crontab_int[default]}}
|
crontabInt=${crontab_int[$version]-${crontab_int[default]}}
|
||||||
|
|
||||||
|
@ -100,6 +107,7 @@ function create_variant() {
|
||||||
|
|
||||||
# Replace the variables.
|
# Replace the variables.
|
||||||
sed -ri -e '
|
sed -ri -e '
|
||||||
|
s/%%ALPINE_VERSION%%/'"$alpineVersion"'/g;
|
||||||
s/%%PHP_VERSION%%/'"$phpVersion"'/g;
|
s/%%PHP_VERSION%%/'"$phpVersion"'/g;
|
||||||
s/%%VARIANT%%/'"$variant"'/g;
|
s/%%VARIANT%%/'"$variant"'/g;
|
||||||
s/%%VERSION%%/'"$fullversion"'/g;
|
s/%%VERSION%%/'"$fullversion"'/g;
|
||||||
|
|
Loading…
Reference in a new issue