diff options
| author | 2021-01-16 19:39:15 +0100 | |
|---|---|---|
| committer | 2021-01-16 19:39:15 +0100 | |
| commit | bf639f9b984185e1fb8157a24cc11e2f49b827c7 (patch) | |
| tree | 78b0cc8612123623dcf14e90ba072e7677dc1372 | |
| parent | c5da4e56a690d9e9caf8ca4bad4349684b4d39c5 (diff) | |
Docker: Alpine 3.13 with PHP 8 (#3375)
* Docker: Alppine 3.13 with PHP 8
PHP 8.0.1, Apache 2.4.46
Bug https://bugs.php.net/bug.php?id=78681 fixed in Alpine, so workaround
removed from our Dockefile(s)
Supports MySQL 8+
#fix https://github.com/FreshRSS/FreshRSS/issues/3191
* Changelog
* Update CHANGELOG.md
Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
| -rw-r--r-- | CHANGELOG.md | 5 | ||||
| -rw-r--r-- | Docker/Dockerfile-Alpine | 11 | ||||
| -rw-r--r-- | Docker/Dockerfile-Newest | 3 |
3 files changed, 9 insertions, 10 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 452d5f301..81208ac16 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,8 +28,9 @@ * Note: needed for MySQL 8+ with default authentication settings * Deployment * Docker: use Apache `remoteip` to log the client remote IP instead of the local proxy IP [#3226](https://github.com/FreshRSS/FreshRSS/pull/3226) - * New Docker development image based on `alpine:edge` to test future supported PHP 8.0 version [#3294](https://github.com/FreshRSS/FreshRSS/pull/3294) - * Note: needed for MySQL 8+ with default authentication settings + * Docker: Alpine image updated to 3.13 with PHP 8.0.1 and Apache 2.4.46 [#3375](https://github.com/FreshRSS/FreshRSS/pull/3375) + * Note: needed for MySQL 8+ with default authentication settings [#3191](https://github.com/FreshRSS/FreshRSS/issues/3191) + * New Docker development image based on `alpine:edge` to test the latest PHP 8+ version [#3294](https://github.com/FreshRSS/FreshRSS/pull/3294) * New Docker development image based on `alpine:3.4` to test oldest supported PHP 5.36 version [#3274](https://github.com/FreshRSS/FreshRSS/pull/3274) * Security * Auto-renew login cookie [#3287](https://github.com/FreshRSS/FreshRSS/pull/3287) diff --git a/Docker/Dockerfile-Alpine b/Docker/Dockerfile-Alpine index df3e2f3ed..53f8f8464 100644 --- a/Docker/Dockerfile-Alpine +++ b/Docker/Dockerfile-Alpine @@ -1,12 +1,12 @@ -FROM alpine:3.12 +FROM alpine:3.13 ENV TZ UTC SHELL ["/bin/ash", "-eo", "pipefail", "-c"] RUN apk add --no-cache \ - apache2 php7-apache2 \ - php7 php7-curl php7-gmp php7-intl php7-mbstring php7-xml php7-zip \ - php7-ctype php7-dom php7-fileinfo php7-iconv php7-json php7-opcache php7-phar php7-session php7-simplexml php7-xmlreader php7-xmlwriter php7-tokenizer php7-zlib \ - php7-pdo_sqlite php7-pdo_mysql php7-pdo_pgsql + apache2 php8-apache2 \ + php8 php8-curl php8-gmp php8-intl php8-mbstring php8-xml php8-zip \ + php8-ctype php8-dom php8-fileinfo php8-iconv php8-json php8-opcache php8-phar php8-session php8-simplexml php8-xmlreader php8-xmlwriter php8-tokenizer php8-zlib \ + php8-pdo_sqlite php8-pdo_mysql php8-pdo_pgsql RUN mkdir -p /var/www/FreshRSS /run/apache2/ WORKDIR /var/www/FreshRSS @@ -38,6 +38,7 @@ RUN rm -f /etc/apache2/conf.d/languages.conf /etc/apache2/conf.d/info.conf \ /etc/apache2/httpd.conf && \ sed -r -i "/^\s*(CustomLog|ErrorLog|Listen) /s/^/#/" \ /etc/apache2/httpd.conf && \ + if [ ! -f /usr/bin/php ]; then ln -s /usr/bin/php8 /usr/bin/php; else true; fi && \ touch /var/www/FreshRSS/Docker/env.txt && \ echo "27,57 * * * * . /var/www/FreshRSS/Docker/env.txt; \ su apache -s /bin/sh -c 'php /var/www/FreshRSS/app/actualize_script.php' \ diff --git a/Docker/Dockerfile-Newest b/Docker/Dockerfile-Newest index 26e8e9c5e..55fa0db78 100644 --- a/Docker/Dockerfile-Newest +++ b/Docker/Dockerfile-Newest @@ -38,9 +38,6 @@ RUN rm -f /etc/apache2/conf.d/languages.conf /etc/apache2/conf.d/info.conf \ /etc/apache2/httpd.conf && \ sed -r -i "/^\s*(CustomLog|ErrorLog|Listen) /s/^/#/" \ /etc/apache2/httpd.conf && \ - # https://bugs.php.net/bug.php?id=78681 \ - sed -r -i "s/php8_module/php_module/" \ - /etc/apache2/conf.d/php8-module.conf && \ if [ ! -f /usr/bin/php ]; then ln -s /usr/bin/php8 /usr/bin/php; else true; fi && \ touch /var/www/FreshRSS/Docker/env.txt && \ echo "27,57 * * * * . /var/www/FreshRSS/Docker/env.txt; \ |
