mirror of
https://github.com/nextcloud/docker.git
synced 2025-04-25 12:50:54 +02:00
Add Alpine variant
This commit is contained in:
parent
0e76d154a1
commit
22de97f206
22 changed files with 812 additions and 3 deletions
12
update.sh
12
update.sh
|
@ -4,11 +4,19 @@ set -eo pipefail
|
|||
declare -A cmd=(
|
||||
[apache]='apache2-foreground'
|
||||
[fpm]='php-fpm'
|
||||
[fpm-alpine]='php-fpm'
|
||||
)
|
||||
|
||||
declare -A base=(
|
||||
[apache]='debian'
|
||||
[fpm]='debian'
|
||||
[fpm-alpine]='alpine'
|
||||
)
|
||||
|
||||
declare -A extras=(
|
||||
[apache]='\nRUN a2enmod rewrite'
|
||||
[fpm]=''
|
||||
[fpm-alpine]=''
|
||||
)
|
||||
|
||||
# version_greater_or_equal A B returns whether A >= B
|
||||
|
@ -34,11 +42,11 @@ for latest in "${latests[@]}"; do
|
|||
# Only add versions >= 11
|
||||
if version_greater_or_equal "$version" "11.0"; then
|
||||
|
||||
for variant in apache fpm; do
|
||||
for variant in apache fpm fpm-alpine; do
|
||||
# Create the version+variant directory with a Dockerfile.
|
||||
mkdir -p "$version/$variant"
|
||||
|
||||
template="Dockerfile.template"
|
||||
template="Dockerfile-${base[$variant]}.template"
|
||||
cp "$template" "$version/$variant/Dockerfile"
|
||||
|
||||
echo "updating $latest [$version] $variant"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue