From 9f8d8aa7eb103752c3bb11356c00af898b7bcc7d Mon Sep 17 00:00:00 2001 From: mwlczk <> Date: Sun, 13 Feb 2022 23:08:18 +0100 Subject: [PATCH 1/2] Update Version to 21.0.08, 22.2.4 and 23.0.1. Remove deprecated 20. --- nextcloud/Dockerfile.20.0 | 82 --------------------------------------- nextcloud/Dockerfile.21.0 | 2 +- nextcloud/Dockerfile.22.2 | 2 +- 3 files changed, 2 insertions(+), 84 deletions(-) delete mode 100644 nextcloud/Dockerfile.20.0 diff --git a/nextcloud/Dockerfile.20.0 b/nextcloud/Dockerfile.20.0 deleted file mode 100644 index a907b348..00000000 --- a/nextcloud/Dockerfile.20.0 +++ /dev/null @@ -1,82 +0,0 @@ -FROM hoellen/nginx-php:7.4 - -ARG NEXTCLOUD_VERSION=20.0.14 -ARG GPG_nextcloud="2880 6A87 8AE4 23A2 8372 792E D758 99B9 A724 937A" - -ENV UID=991 GID=991 \ - UPLOAD_MAX_SIZE=10G \ - APC_SHM_SIZE=128M \ - OPCACHE_MEM_SIZE=128 \ - MEMORY_LIMIT=512M \ - PHP_MAX_CHILDREN=15 \ - PHP_START_SERVERS=2 \ - PHP_MIN_SPARE_SERVERS=1 \ - PHP_MAX_SPARE_SERVERS=6 \ - CRON_PERIOD=5m \ - CRON_MEMORY_LIMIT=1g \ - TZ=Etc/UTC \ - DB_TYPE=sqlite3 \ - DOMAIN=localhost \ - CHECK_PERMISSIONS=1 - -RUN apk -U upgrade \ - && apk add -t build-dependencies \ - gnupg \ - tar \ - build-base \ - autoconf \ - automake \ - pcre-dev \ - libtool \ - samba-dev \ - imagemagick-dev \ - && apk add \ - libressl \ - ca-certificates \ - libsmbclient \ - imagemagick \ - ffmpeg \ - tzdata \ - && pecl channel-update pecl.php.net \ - && pecl install \ - smbclient \ - apcu \ - redis \ - imagick \ - && echo "extension=smbclient.so" > /php/conf.d/smbclient.ini \ - && echo "extension=redis.so" > /php/conf.d/redis.ini \ - && echo "extension=imagick.so" > /php/conf.d/imagick.ini \ - && mkdir /nextcloud \ - && cd /tmp \ - && NEXTCLOUD_TARBALL="nextcloud-${NEXTCLOUD_VERSION}.tar.bz2" \ - && wget -q https://download.nextcloud.com/server/releases/${NEXTCLOUD_TARBALL} \ - && wget -q https://download.nextcloud.com/server/releases/${NEXTCLOUD_TARBALL}.sha512 \ - && wget -q https://download.nextcloud.com/server/releases/${NEXTCLOUD_TARBALL}.asc \ - && wget -q https://nextcloud.com/nextcloud.asc \ - && echo "Verifying both integrity and authenticity of ${NEXTCLOUD_TARBALL}..." \ - && CHECKSUM_STATE=$(echo -n $(sha512sum -c ${NEXTCLOUD_TARBALL}.sha512) | tail -c 2) \ - && if [ "${CHECKSUM_STATE}" != "OK" ]; then echo "Warning! Checksum does not match!" && exit 1; fi \ - && gpg --import nextcloud.asc \ - && FINGERPRINT="$(LANG=C gpg --verify ${NEXTCLOUD_TARBALL}.asc ${NEXTCLOUD_TARBALL} 2>&1 \ - | sed -n "s#Primary key fingerprint: \(.*\)#\1#p")" \ - && if [ -z "${FINGERPRINT}" ]; then echo "Warning! Invalid GPG signature!" && exit 1; fi \ - && if [ "${FINGERPRINT}" != "${GPG_nextcloud}" ]; then echo "Warning! Wrong GPG fingerprint!" && exit 1; fi \ - && echo "All seems good, now unpacking ${NEXTCLOUD_TARBALL}..." \ - && tar xjf ${NEXTCLOUD_TARBALL} --strip 1 -C /nextcloud \ - && update-ca-certificates \ - && apk del build-dependencies \ - && rm -rf /var/cache/apk/* /tmp/* /root/.gnupg - -COPY rootfs / - -RUN chmod +x /usr/local/bin/* /etc/s6.d/*/* /etc/s6.d/.s6-svscan/* - -VOLUME /data /config /apps2 /nextcloud/themes - -EXPOSE 8888 - -LABEL description="A server software for creating file hosting services" \ - nextcloud="Nextcloud v${NEXTCLOUD_VERSION}" \ - maintainer="hoellen " - -CMD ["run.sh"] diff --git a/nextcloud/Dockerfile.21.0 b/nextcloud/Dockerfile.21.0 index 3a871a3c..b0ed673f 100644 --- a/nextcloud/Dockerfile.21.0 +++ b/nextcloud/Dockerfile.21.0 @@ -1,6 +1,6 @@ FROM hoellen/nginx-php:7.4 -ARG NEXTCLOUD_VERSION=21.0.7 +ARG NEXTCLOUD_VERSION=21.0.8 ARG GPG_nextcloud="2880 6A87 8AE4 23A2 8372 792E D758 99B9 A724 937A" ENV UID=991 GID=991 \ diff --git a/nextcloud/Dockerfile.22.2 b/nextcloud/Dockerfile.22.2 index 498a8e12..3c28982f 100644 --- a/nextcloud/Dockerfile.22.2 +++ b/nextcloud/Dockerfile.22.2 @@ -1,6 +1,6 @@ FROM hoellen/nginx-php:7.4 -ARG NEXTCLOUD_VERSION=22.2.3 +ARG NEXTCLOUD_VERSION=22.2.4 ARG GPG_nextcloud="2880 6A87 8AE4 23A2 8372 792E D758 99B9 A724 937A" ENV UID=991 GID=991 \ From 8627c83236c40f9da87ad3a443be3d72ed002f31 Mon Sep 17 00:00:00 2001 From: mwlczk <> Date: Tue, 15 Feb 2022 20:25:03 +0100 Subject: [PATCH 2/2] add Version 23.0 --- nextcloud/Dockerfile.23.0 | 83 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 nextcloud/Dockerfile.23.0 diff --git a/nextcloud/Dockerfile.23.0 b/nextcloud/Dockerfile.23.0 new file mode 100644 index 00000000..7fb6ff91 --- /dev/null +++ b/nextcloud/Dockerfile.23.0 @@ -0,0 +1,83 @@ +FROM hoellen/nginx-php:7.4 + +ARG NEXTCLOUD_VERSION=23.0.1 +ARG GPG_nextcloud="2880 6A87 8AE4 23A2 8372 792E D758 99B9 A724 937A" + +ENV UID=991 GID=991 \ + UPLOAD_MAX_SIZE=10G \ + APC_SHM_SIZE=128M \ + OPCACHE_MEM_SIZE=128 \ + MEMORY_LIMIT=512M \ + PHP_MAX_CHILDREN=15 \ + PHP_START_SERVERS=2 \ + PHP_MIN_SPARE_SERVERS=1 \ + PHP_MAX_SPARE_SERVERS=6 \ + CRON_PERIOD=5m \ + CRON_MEMORY_LIMIT=1g \ + TZ=Etc/UTC \ + DB_TYPE=sqlite3 \ + DOMAIN=localhost \ + CHECK_PERMISSIONS=1 + +RUN apk -U upgrade \ + && apk add -t build-dependencies \ + gnupg \ + tar \ + build-base \ + autoconf \ + automake \ + pcre-dev \ + libtool \ + samba-dev \ + imagemagick-dev \ + && apk add \ + libressl \ + ca-certificates \ + libsmbclient \ + imagemagick \ + libgomp \ + ffmpeg \ + tzdata \ + && pecl channel-update pecl.php.net \ + && pecl install \ + smbclient \ + apcu \ + redis \ + imagick \ + && echo "extension=smbclient.so" > /php/conf.d/smbclient.ini \ + && echo "extension=redis.so" > /php/conf.d/redis.ini \ + && echo "extension=imagick.so" > /php/conf.d/imagick.ini \ + && mkdir /nextcloud \ + && cd /tmp \ + && NEXTCLOUD_TARBALL="nextcloud-${NEXTCLOUD_VERSION}.tar.bz2" \ + && wget -q https://download.nextcloud.com/server/releases/${NEXTCLOUD_TARBALL} \ + && wget -q https://download.nextcloud.com/server/releases/${NEXTCLOUD_TARBALL}.sha512 \ + && wget -q https://download.nextcloud.com/server/releases/${NEXTCLOUD_TARBALL}.asc \ + && wget -q https://nextcloud.com/nextcloud.asc \ + && echo "Verifying both integrity and authenticity of ${NEXTCLOUD_TARBALL}..." \ + && CHECKSUM_STATE=$(echo -n $(sha512sum -c ${NEXTCLOUD_TARBALL}.sha512) | tail -c 2) \ + && if [ "${CHECKSUM_STATE}" != "OK" ]; then echo "Warning! Checksum does not match!" && exit 1; fi \ + && gpg --import nextcloud.asc \ + && FINGERPRINT="$(LANG=C gpg --verify ${NEXTCLOUD_TARBALL}.asc ${NEXTCLOUD_TARBALL} 2>&1 \ + | sed -n "s#Primary key fingerprint: \(.*\)#\1#p")" \ + && if [ -z "${FINGERPRINT}" ]; then echo "Warning! Invalid GPG signature!" && exit 1; fi \ + && if [ "${FINGERPRINT}" != "${GPG_nextcloud}" ]; then echo "Warning! Wrong GPG fingerprint!" && exit 1; fi \ + && echo "All seems good, now unpacking ${NEXTCLOUD_TARBALL}..." \ + && tar xjf ${NEXTCLOUD_TARBALL} --strip 1 -C /nextcloud \ + && update-ca-certificates \ + && apk del build-dependencies \ + && rm -rf /var/cache/apk/* /tmp/* /root/.gnupg + +COPY rootfs / + +RUN chmod +x /usr/local/bin/* /etc/s6.d/*/* /etc/s6.d/.s6-svscan/* + +VOLUME /data /config /apps2 /nextcloud/themes + +EXPOSE 8888 + +LABEL description="A server software for creating file hosting services" \ + nextcloud="Nextcloud v${NEXTCLOUD_VERSION}" \ + maintainer="hoellen " + +CMD ["run.sh"]