mirror of
https://github.com/nextcloud/docker.git
synced 2025-06-15 15:54:47 +02:00
Add %%DEBIAN_VERSION%% placeholder
Signed-off-by: Daniel Rudolf <github.com@daniel-rudolf.de>
This commit is contained in:
parent
f2c8cb599e
commit
b0856007aa
2 changed files with 7 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
FROM php:%%PHP_VERSION%%-%%VARIANT%%-bullseye
|
FROM php:%%PHP_VERSION%%-%%VARIANT%%-%%DEBIAN_VERSION%%
|
||||||
|
|
||||||
# entrypoint.sh and cron.sh dependencies
|
# entrypoint.sh and cron.sh dependencies
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
|
|
|
@ -8,6 +8,10 @@ declare -A alpine_version=(
|
||||||
[default]='3.17'
|
[default]='3.17'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
declare -A debian_version=(
|
||||||
|
[default]='bullseye'
|
||||||
|
)
|
||||||
|
|
||||||
declare -A php_version=(
|
declare -A php_version=(
|
||||||
[default]='8.1'
|
[default]='8.1'
|
||||||
)
|
)
|
||||||
|
@ -93,6 +97,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]}}
|
alpineVersion=${alpine_version[$version]-${alpine_version[default]}}
|
||||||
|
debianVersion=${debian_version[$version]-${debian_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]}}
|
||||||
|
|
||||||
|
@ -108,6 +113,7 @@ function create_variant() {
|
||||||
# Replace the variables.
|
# Replace the variables.
|
||||||
sed -ri -e '
|
sed -ri -e '
|
||||||
s/%%ALPINE_VERSION%%/'"$alpineVersion"'/g;
|
s/%%ALPINE_VERSION%%/'"$alpineVersion"'/g;
|
||||||
|
s/%%DEBIAN_VERSION%%/'"$debianVersion"'/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…
Add table
Add a link
Reference in a new issue