Skip to content

Commit

Permalink
Update to v3.0.1 and php 8.0 (monicahq#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin authored May 4, 2021
1 parent 9db94d2 commit 8e338da
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 40 deletions.
3 changes: 0 additions & 3 deletions Dockerfile-alpine.template
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ RUN set -ex; \
jpeg-dev \
gmp-dev \
libmemcached-dev \
imagemagick-dev \
libwebp-dev \
; \
\
Expand All @@ -43,13 +42,11 @@ RUN set -ex; \
pecl install APCu-%%APCU_VERSION%%; \
pecl install memcached-%%MEMCACHED_VERSION%%; \
pecl install redis-%%REDIS_VERSION%%; \
pecl install imagick-%%IMAGICK_VERSION%%; \
\
docker-php-ext-enable \
apcu \
memcached \
redis \
imagick \
; \
\
runDeps="$( \
Expand Down
3 changes: 0 additions & 3 deletions Dockerfile-debian.template
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ RUN set -ex; \
libjpeg62-turbo-dev \
libgmp-dev \
libmemcached-dev \
libmagickwand-dev \
libwebp-dev \
; \
\
Expand All @@ -50,13 +49,11 @@ RUN set -ex; \
pecl install APCu-%%APCU_VERSION%%; \
pecl install memcached-%%MEMCACHED_VERSION%%; \
pecl install redis-%%REDIS_VERSION%%; \
pecl install imagick-%%IMAGICK_VERSION%%; \
\
docker-php-ext-enable \
apcu \
memcached \
redis \
imagick \
; \
\
# reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies
Expand Down
11 changes: 4 additions & 7 deletions apache/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:7.4-apache
FROM php:8.0-apache

# opencontainers annotations https://github.com/opencontainers/image-spec/blob/master/annotations.md
LABEL org.opencontainers.image.authors="Alexis Saettler <alexis@saettler.org>" \
Expand Down Expand Up @@ -34,7 +34,6 @@ RUN set -ex; \
libjpeg62-turbo-dev \
libgmp-dev \
libmemcached-dev \
libmagickwand-dev \
libwebp-dev \
; \
\
Expand All @@ -58,13 +57,11 @@ RUN set -ex; \
pecl install APCu-5.1.20; \
pecl install memcached-3.1.5; \
pecl install redis-5.3.4; \
pecl install imagick-3.4.4; \
\
docker-php-ext-enable \
apcu \
memcached \
redis \
imagick \
; \
\
# reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies
Expand Down Expand Up @@ -131,9 +128,9 @@ RUN set -ex; \
WORKDIR /var/www/html

# Define Monica version
ENV MONICA_VERSION v3.0.0
LABEL org.opencontainers.image.revision="02ba3694929154ecdafbe95fa34ad6920680b6b7" \
org.opencontainers.image.version="v3.0.0"
ENV MONICA_VERSION v3.0.1
LABEL org.opencontainers.image.revision="fbac24891a9ace9f9c88fd4d23b8612243af283a" \
org.opencontainers.image.version="v3.0.1"

RUN set -ex; \
fetchDeps=" \
Expand Down
11 changes: 4 additions & 7 deletions fpm-alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:7.4-fpm-alpine
FROM php:8.0-fpm-alpine

# opencontainers annotations https://github.com/opencontainers/image-spec/blob/master/annotations.md
LABEL org.opencontainers.image.authors="Alexis Saettler <alexis@saettler.org>" \
Expand Down Expand Up @@ -30,7 +30,6 @@ RUN set -ex; \
jpeg-dev \
gmp-dev \
libmemcached-dev \
imagemagick-dev \
libwebp-dev \
; \
\
Expand All @@ -51,13 +50,11 @@ RUN set -ex; \
pecl install APCu-5.1.20; \
pecl install memcached-3.1.5; \
pecl install redis-5.3.4; \
pecl install imagick-3.4.4; \
\
docker-php-ext-enable \
apcu \
memcached \
redis \
imagick \
; \
\
runDeps="$( \
Expand Down Expand Up @@ -105,9 +102,9 @@ RUN set -ex; \
WORKDIR /var/www/html

# Define Monica version
ENV MONICA_VERSION v3.0.0
LABEL org.opencontainers.image.revision="02ba3694929154ecdafbe95fa34ad6920680b6b7" \
org.opencontainers.image.version="v3.0.0"
ENV MONICA_VERSION v3.0.1
LABEL org.opencontainers.image.revision="fbac24891a9ace9f9c88fd4d23b8612243af283a" \
org.opencontainers.image.version="v3.0.1"

RUN set -ex; \
apk add --no-cache --virtual .fetch-deps \
Expand Down
11 changes: 4 additions & 7 deletions fpm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:7.4-fpm
FROM php:8.0-fpm

# opencontainers annotations https://github.com/opencontainers/image-spec/blob/master/annotations.md
LABEL org.opencontainers.image.authors="Alexis Saettler <alexis@saettler.org>" \
Expand Down Expand Up @@ -34,7 +34,6 @@ RUN set -ex; \
libjpeg62-turbo-dev \
libgmp-dev \
libmemcached-dev \
libmagickwand-dev \
libwebp-dev \
; \
\
Expand All @@ -58,13 +57,11 @@ RUN set -ex; \
pecl install APCu-5.1.20; \
pecl install memcached-3.1.5; \
pecl install redis-5.3.4; \
pecl install imagick-3.4.4; \
\
docker-php-ext-enable \
apcu \
memcached \
redis \
imagick \
; \
\
# reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies
Expand Down Expand Up @@ -117,9 +114,9 @@ RUN set -ex; \
WORKDIR /var/www/html

# Define Monica version
ENV MONICA_VERSION v3.0.0
LABEL org.opencontainers.image.revision="02ba3694929154ecdafbe95fa34ad6920680b6b7" \
org.opencontainers.image.version="v3.0.0"
ENV MONICA_VERSION v3.0.1
LABEL org.opencontainers.image.revision="fbac24891a9ace9f9c88fd4d23b8612243af283a" \
org.opencontainers.image.version="v3.0.1"

RUN set -ex; \
fetchDeps=" \
Expand Down
14 changes: 1 addition & 13 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ _template() {
}

declare -A php_version=(
[default]='7.4'
[default]='8.0'
)

declare -A cmd=(
Expand Down Expand Up @@ -64,21 +64,10 @@ redis_version="$(
)"
echo " Redis version: $redis_version"

imagick_version="$(
git ls-remote --tags https://github.com/mkoppanen/imagick.git \
| cut -d/ -f3 \
| grep -viE '[a-z]' \
| tr -d '^{}' \
| sort -V \
| tail -1
)"
echo " Imagick version: $imagick_version"

declare -A pecl_versions=(
[APCu]="$apcu_version"
[memcached]="$memcached_version"
[redis]="$redis_version"
[imagick]="$imagick_version"
)

_githubapi() {
Expand Down Expand Up @@ -122,7 +111,6 @@ for variant in apache fpm fpm-alpine; do
s/%%APCU_VERSION%%/'"${pecl_versions[APCu]}"'/;
s/%%MEMCACHED_VERSION%%/'"${pecl_versions[memcached]}"'/;
s/%%REDIS_VERSION%%/'"${pecl_versions[redis]}"'/;
s/%%IMAGICK_VERSION%%/'"${pecl_versions[imagick]}"'/;
' \
-e "s/%0A/\n/g;" \
$template > "$variant/Dockerfile"
Expand Down

0 comments on commit 8e338da

Please sign in to comment.