diff --git a/3.0/apache/Dockerfile b/3.0/apache/Dockerfile index ea5f678..ed5796c 100644 --- a/3.0/apache/Dockerfile +++ b/3.0/apache/Dockerfile @@ -1,7 +1,8 @@ FROM php:8.0-apache LABEL maintainer="markus@martialblog.de" -ARG version='3.28.12+220524' -ARG sha256_checksum='18437545fc0b86900663d494508284a1a5340e6db4fc9eb7a598fb8304dd8def' +ARG version="3.28.12+220524" +ARG sha256_checksum="18437545fc0b86900663d494508284a1a5340e6db4fc9eb7a598fb8304dd8def" +ARG archive_url="https://github.com/LimeSurvey/LimeSurvey/archive/${version}.tar.gz" ARG USER=root ARG LISTEN_PORT=80 @@ -65,9 +66,9 @@ RUN a2enmod headers rewrite remoteip; \ # Use the default production configuration RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" -# Download, unzip and chmod LimeSurvey from official GitHub repository +# Download, unzip and chmod LimeSurvey from GitHub (defaults to the official LimeSurvey/LimeSurvey repository) RUN set -ex; \ - curl -sSL "https://github.com/LimeSurvey/LimeSurvey/archive/${version}.tar.gz" --output /tmp/limesurvey.tar.gz && \ + curl -sSL "${archive_url}" --output /tmp/limesurvey.tar.gz && \ echo "${sha256_checksum} /tmp/limesurvey.tar.gz" | sha256sum -c - && \ \ tar xzvf "/tmp/limesurvey.tar.gz" --strip-components=1 -C /var/www/html/ && \ diff --git a/3.0/fpm-alpine/Dockerfile b/3.0/fpm-alpine/Dockerfile index a5fd571..af2527c 100644 --- a/3.0/fpm-alpine/Dockerfile +++ b/3.0/fpm-alpine/Dockerfile @@ -1,7 +1,8 @@ FROM php:8.0-fpm-alpine LABEL maintainer="markus@martialblog.de" -ARG version='3.28.12+220524' -ARG sha256_checksum='18437545fc0b86900663d494508284a1a5340e6db4fc9eb7a598fb8304dd8def' +ARG version="3.28.12+220524" +ARG sha256_checksum="18437545fc0b86900663d494508284a1a5340e6db4fc9eb7a598fb8304dd8def" +ARG archive_url="https://github.com/LimeSurvey/LimeSurvey/archive/${version}.tar.gz" # Install OS dependencies RUN set -ex; \ @@ -35,9 +36,9 @@ RUN set -ex; \ tidy \ zip -# Download, unzip and chmod LimeSurvey from official GitHub repository +# Download, unzip and chmod LimeSurvey from GitHub (defaults to the official LimeSurvey/LimeSurvey repository) RUN set -ex; \ - curl -sSL "https://github.com/LimeSurvey/LimeSurvey/archive/${version}.tar.gz" --output /tmp/limesurvey.tar.gz && \ + curl -sSL "${archive_url}" --output /tmp/limesurvey.tar.gz && \ echo "${sha256_checksum} /tmp/limesurvey.tar.gz" | sha256sum -c - && \ \ tar xzvf "/tmp/limesurvey.tar.gz" --strip-components=1 -C /var/www/html/ && \ diff --git a/3.0/fpm/Dockerfile b/3.0/fpm/Dockerfile index 2917b7d..5768ada 100644 --- a/3.0/fpm/Dockerfile +++ b/3.0/fpm/Dockerfile @@ -1,7 +1,8 @@ FROM php:8.0-fpm LABEL maintainer="markus@martialblog.de" -ARG version='3.28.12+220524' -ARG sha256_checksum='18437545fc0b86900663d494508284a1a5340e6db4fc9eb7a598fb8304dd8def' +ARG version="3.28.12+220524" +ARG sha256_checksum="18437545fc0b86900663d494508284a1a5340e6db4fc9eb7a598fb8304dd8def" +ARG archive_url="https://github.com/LimeSurvey/LimeSurvey/archive/${version}.tar.gz" # Install OS dependencies RUN set -ex; \ @@ -50,9 +51,9 @@ RUN set -ex; \ ENV LIMESURVEY_VERSION=$version -# Download, unzip and chmod LimeSurvey from official GitHub repository +# Download, unzip and chmod LimeSurvey from GitHub (defaults to the official LimeSurvey/LimeSurvey repository) RUN set -ex; \ - curl -sSL "https://github.com/LimeSurvey/LimeSurvey/archive/${version}.tar.gz" --output /tmp/limesurvey.tar.gz && \ + curl -sSL "${archive_url}" --output /tmp/limesurvey.tar.gz && \ echo "${sha256_checksum} /tmp/limesurvey.tar.gz" | sha256sum -c - && \ \ tar xzvf "/tmp/limesurvey.tar.gz" --strip-components=1 -C /var/www/html/ && \ diff --git a/4.0/apache/Dockerfile b/4.0/apache/Dockerfile index ec690e6..b583641 100644 --- a/4.0/apache/Dockerfile +++ b/4.0/apache/Dockerfile @@ -1,7 +1,8 @@ FROM php:8.0-apache LABEL maintainer="markus@martialblog.de" -ARG version='4.6.3+210518' -ARG sha256_checksum='3c59afc13d0cf974c465c5f851cb8837117518e94031f5e3a28ba468ad734ce2' +ARG version="4.6.3+210518" +ARG sha256_checksum="3c59afc13d0cf974c465c5f851cb8837117518e94031f5e3a28ba468ad734ce2" +ARG archive_url="https://github.com/LimeSurvey/LimeSurvey/archive/${version}.tar.gz" ARG USER=root ARG LISTEN_PORT=80 @@ -66,9 +67,9 @@ RUN a2enmod headers rewrite remoteip; \ # Use the default production configuration RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" -# Download, unzip and chmod LimeSurvey from official GitHub repository +# Download, unzip and chmod LimeSurvey from GitHub (defaults to the official LimeSurvey/LimeSurvey repository) RUN set -ex; \ - curl -sSL "https://github.com/LimeSurvey/LimeSurvey/archive/${version}.tar.gz" --output /tmp/limesurvey.tar.gz && \ + curl -sSL "${archive_url}" --output /tmp/limesurvey.tar.gz && \ echo "${sha256_checksum} /tmp/limesurvey.tar.gz" | sha256sum -c - && \ \ tar xzvf "/tmp/limesurvey.tar.gz" --strip-components=1 -C /var/www/html/ && \ diff --git a/4.0/fpm-alpine/Dockerfile b/4.0/fpm-alpine/Dockerfile index db6dc29..cfce69c 100644 --- a/4.0/fpm-alpine/Dockerfile +++ b/4.0/fpm-alpine/Dockerfile @@ -1,7 +1,8 @@ FROM php:8.0-fpm-alpine LABEL maintainer="markus@martialblog.de" -ARG version='4.6.3+210518' -ARG sha256_checksum='3c59afc13d0cf974c465c5f851cb8837117518e94031f5e3a28ba468ad734ce2' +ARG version="4.6.3+210518" +ARG sha256_checksum="3c59afc13d0cf974c465c5f851cb8837117518e94031f5e3a28ba468ad734ce2" +ARG archive_url="https://github.com/LimeSurvey/LimeSurvey/archive/${version}.tar.gz" # Install OS dependencies RUN set -ex; \ @@ -36,9 +37,9 @@ RUN set -ex; \ tidy \ zip -# Download, unzip and chmod LimeSurvey from official GitHub repository +# Download, unzip and chmod LimeSurvey from GitHub (defaults to the official LimeSurvey/LimeSurvey repository) RUN set -ex; \ - curl -sSL "https://github.com/LimeSurvey/LimeSurvey/archive/${version}.tar.gz" --output /tmp/limesurvey.tar.gz && \ + curl -sSL "${archive_url}" --output /tmp/limesurvey.tar.gz && \ echo "${sha256_checksum} /tmp/limesurvey.tar.gz" | sha256sum -c - && \ \ tar xzvf "/tmp/limesurvey.tar.gz" --strip-components=1 -C /var/www/html/ && \ diff --git a/4.0/fpm/Dockerfile b/4.0/fpm/Dockerfile index 47bceeb..d391808 100644 --- a/4.0/fpm/Dockerfile +++ b/4.0/fpm/Dockerfile @@ -1,7 +1,8 @@ FROM php:8.0-fpm LABEL maintainer="markus@martialblog.de" -ARG version='4.6.3+210518' -ARG sha256_checksum='3c59afc13d0cf974c465c5f851cb8837117518e94031f5e3a28ba468ad734ce2' +ARG version="4.6.3+210518" +ARG sha256_checksum="3c59afc13d0cf974c465c5f851cb8837117518e94031f5e3a28ba468ad734ce2" +ARG archive_url="https://github.com/LimeSurvey/LimeSurvey/archive/${version}.tar.gz" # Install OS dependencies RUN set -ex; \ @@ -50,9 +51,9 @@ RUN set -ex; \ ENV LIMESURVEY_VERSION=$version -# Download, unzip and chmod LimeSurvey from official GitHub repository +# Download, unzip and chmod LimeSurvey from GitHub (defaults to the official LimeSurvey/LimeSurvey repository) RUN set -ex; \ - curl -sSL "https://github.com/LimeSurvey/LimeSurvey/archive/${version}.tar.gz" --output /tmp/limesurvey.tar.gz && \ + curl -sSL "${archive_url}" --output /tmp/limesurvey.tar.gz && \ echo "${sha256_checksum} /tmp/limesurvey.tar.gz" | sha256sum -c - && \ \ tar xzvf "/tmp/limesurvey.tar.gz" --strip-components=1 -C /var/www/html/ && \ diff --git a/5.0/apache/Dockerfile b/5.0/apache/Dockerfile index 382245a..d76a4b0 100644 --- a/5.0/apache/Dockerfile +++ b/5.0/apache/Dockerfile @@ -1,7 +1,8 @@ FROM php:8.0-apache LABEL maintainer="markus@martialblog.de" -ARG version='5.3.17+220525' -ARG sha256_checksum='fe94c4d9dc11bf0742855c70ce496be48e5556365f403fe9fcb433ed0b0494a8' +ARG version="5.3.17+220525" +ARG sha256_checksum="fe94c4d9dc11bf0742855c70ce496be48e5556365f403fe9fcb433ed0b0494a8" +ARG archive_url="https://github.com/LimeSurvey/LimeSurvey/archive/${version}.tar.gz" ARG USER=www-data ARG LISTEN_PORT=8080 @@ -66,9 +67,9 @@ RUN a2enmod headers rewrite remoteip; \ # Use the default production configuration RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" -# Download, unzip and chmod LimeSurvey from official GitHub repository +# Download, unzip and chmod LimeSurvey from GitHub (defaults to the official LimeSurvey/LimeSurvey repository) RUN set -ex; \ - curl -sSL "https://github.com/LimeSurvey/LimeSurvey/archive/${version}.tar.gz" --output /tmp/limesurvey.tar.gz && \ + curl -sSL "${archive_url}" --output /tmp/limesurvey.tar.gz && \ echo "${sha256_checksum} /tmp/limesurvey.tar.gz" | sha256sum -c - && \ \ tar xzvf "/tmp/limesurvey.tar.gz" --strip-components=1 -C /var/www/html/ && \ diff --git a/5.0/fpm-alpine/Dockerfile b/5.0/fpm-alpine/Dockerfile index b9cced7..0e6a995 100644 --- a/5.0/fpm-alpine/Dockerfile +++ b/5.0/fpm-alpine/Dockerfile @@ -1,7 +1,8 @@ FROM php:8.0-fpm-alpine LABEL maintainer="markus@martialblog.de" -ARG version='5.3.17+220525' -ARG sha256_checksum='fe94c4d9dc11bf0742855c70ce496be48e5556365f403fe9fcb433ed0b0494a8' +ARG version="5.3.17+220525" +ARG sha256_checksum="fe94c4d9dc11bf0742855c70ce496be48e5556365f403fe9fcb433ed0b0494a8" +ARG archive_url="https://github.com/LimeSurvey/LimeSurvey/archive/${version}.tar.gz" ARG USER=www-data # Install OS dependencies @@ -37,9 +38,9 @@ RUN set -ex; \ tidy \ zip -# Download, unzip and chmod LimeSurvey from official GitHub repository +# Download, unzip and chmod LimeSurvey from GitHub (defaults to the official LimeSurvey/LimeSurvey repository) RUN set -ex; \ - curl -sSL "https://github.com/LimeSurvey/LimeSurvey/archive/${version}.tar.gz" --output /tmp/limesurvey.tar.gz && \ + curl -sSL "${archive_url}" --output /tmp/limesurvey.tar.gz && \ echo "${sha256_checksum} /tmp/limesurvey.tar.gz" | sha256sum -c - && \ \ tar xzvf "/tmp/limesurvey.tar.gz" --strip-components=1 -C /var/www/html/ && \ diff --git a/5.0/fpm/Dockerfile b/5.0/fpm/Dockerfile index 089a1ae..63cdb87 100644 --- a/5.0/fpm/Dockerfile +++ b/5.0/fpm/Dockerfile @@ -1,7 +1,8 @@ FROM php:8.0-fpm LABEL maintainer="markus@martialblog.de" -ARG version='5.3.17+220525' -ARG sha256_checksum='fe94c4d9dc11bf0742855c70ce496be48e5556365f403fe9fcb433ed0b0494a8' +ARG version="5.3.17+220525" +ARG sha256_checksum="fe94c4d9dc11bf0742855c70ce496be48e5556365f403fe9fcb433ed0b0494a8" +ARG archive_url="https://github.com/LimeSurvey/LimeSurvey/archive/${version}.tar.gz" ARG USER=www-data # Install OS dependencies @@ -51,9 +52,9 @@ RUN set -ex; \ ENV LIMESURVEY_VERSION=$version -# Download, unzip and chmod LimeSurvey from official GitHub repository +# Download, unzip and chmod LimeSurvey from GitHub (defaults to the official LimeSurvey/LimeSurvey repository) RUN set -ex; \ - curl -sSL "https://github.com/LimeSurvey/LimeSurvey/archive/${version}.tar.gz" --output /tmp/limesurvey.tar.gz && \ + curl -sSL "${archive_url}" --output /tmp/limesurvey.tar.gz && \ echo "${sha256_checksum} /tmp/limesurvey.tar.gz" | sha256sum -c - && \ \ tar xzvf "/tmp/limesurvey.tar.gz" --strip-components=1 -C /var/www/html/ && \