aboutsummaryrefslogtreecommitdiff
path: root/Docker
AgeCommit message (Collapse)Author
2021-03-04Disable built-in update when using Docker (#3496)Gravatar Alexandre Alapetite
#fix https://github.com/FreshRSS/FreshRSS/issues/3495
2021-02-27Alpine oldest: php5-openssl (#3482)Gravatar Alexandre Alapetite
alpine:3.13 require php5-openssl for some https features. Otherwise, fail on e.g. the extension page: ``` file_get_contents(): php Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /var/www/FreshRSS/app/Controllers/extensionController.php on line 45 PHP Warning: file_get_contents(https://raw.githubusercontent.com/FreshRSS/Extensions/master/extensions.json): failed to open stream: No such file or directory in /var/www/FreshRSS/app/Controllers/extensionController.php on line 45 [error] --- Could not fetch available extension from GitHub ``` Does not seem required for newer Alpine versions using PHP7 / PHP8
2021-02-11Fix nginx config (#3438)Gravatar Creak
* Fix nginx config * Remove `proxy_cookie_path` * Add `proxy_set_header X-Forwarded-Prefix` for the subdirectory config * Add nginx config when hosted as domain root * Add `/` at the end of `proxy_pass`
2021-01-16Docker: Alpine 3.13 with PHP 8 (#3375)Gravatar Alexandre Alapetite
* 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>
2021-01-11Possiblity to autoinstall in Docker Compose (#3353)Gravatar Alexandre Alapetite
* Possiblity to autoinstall in Docker Compose #fix https://github.com/FreshRSS/FreshRSS/issues/3349 It is simply calling our existing CLI: do-install.php and create-user.php https://github.com/FreshRSS/FreshRSS/tree/master/cli FreshRSS will typically be ready a few seconds before the database, so introduce a tolerance when the database is not available / up (yet) by trying a few times to connect. Also useful to avoid service interruption when DB service is restarted. Example: ```yml freshrss-app: image: freshrss/freshrss container_name: freshrss-app hostname: freshrss-app restart: unless-stopped ports: - "8080:80" depends_on: - freshrss-db volumes: - data:/var/www/FreshRSS/data - extensions:/var/www/FreshRSS/extensions environment: CRON_MIN: '*/20' FRESHRSS_ENV: development FRESHRSS_INSTALL: |- --api_enabled --base_url https://rss.example.net --db-base freshrss --db-host freshrss-db --db-password freshrss --db-type pgsql --db-user freshrss --default_user admin --language en FRESHRSS_USER: |- --api_password freshrss --email user@example.net --language en --password freshrss --user admin TZ: Europe/Paris ``` * Minor type f in find * shellcheck
2021-01-07Docker: Environment variable to change Apache port (#3343)Gravatar Alexandre Alapetite
#fix https://github.com/FreshRSS/FreshRSS/issues/3341 New environment variable `LISTEN='0.0.0.0:8080'` ``` docker run -d --network host --uts host -e LISTEN='0.0.0.0:8080' -e TZ=Europe/Paris --name freshrss freshrss/freshrss ```
2020-12-30Docker new :newest image (#3294)Gravatar Alexandre Alapetite
* Docker new :Edge image New optional Docker image to test upcoming software versions, using Alpine:Edge Similar than https://github.com/FreshRSS/FreshRSS/pull/3274 (oldest image) but for newest. Usefull for e.g. testing PHP8 https://github.com/FreshRSS/FreshRSS/issues/3082 , MySQL 8 https://github.com/FreshRSS/FreshRSS/issues/3191 * Syntax if symlink already exists in future edge * Rename to newest Better match our "Oldest" version, and to avoid conflicts with the potential renaming of our master branch * Update Docker/Dockerfile-Newest Co-authored-by: Frans de Jonge <fransdejonge@gmail.com> Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
2020-12-12Docker image for oldest supported PHP version (#3274)Gravatar Alexandre Alapetite
Add a Docker file, which can be used to test FreshRSS with our oldest supported PHP version. See https://pkgs.alpinelinux.org/packages?name=php5&branch=v3.4&arch=x86_64 PHP 5.6.36-r0
2020-10-22Docker LogFormat Alpine (#3235)Gravatar Alexandre Alapetite
#fix https://github.com/FreshRSS/FreshRSS/issues/3233 In Alpine, we need to enable mod_logio.c to use %O. Revert to more standard %b https://httpd.apache.org/docs/2.4/mod/mod_log_config.html#logformat
2020-10-16Docker: Use Apache remoteip (#3226)Gravatar Alexandre Alapetite
#fix https://github.com/FreshRSS/FreshRSS/issues/3224 Log the client remote IP instead of the local proxy IP https://httpd.apache.org/docs/2.4/mod/mod_remoteip.html
2020-08-30Remove Docker heathchecks (#3161)Gravatar Jucgshu
* Update Dockerfile Remove heathcheck * Update Dockerfile-Alpine Remove heathcheck * Update Dockerfile-QEMU-ARM Remove heathcheck
2020-08-29More changelog, Docker readmeGravatar Alexandre Alapetite
https://github.com/FreshRSS/FreshRSS/pull/3159
2020-08-29Docker use Debian instead of Ubuntu (#3159)Gravatar Alexandre Alapetite
#fix https://github.com/FreshRSS/FreshRSS/issues/3026 Ubuntu 19.10 has expired. I still cannot get Ubuntu 20.04 to work on ARM (Raspberry Pi) https://github.com/FreshRSS/FreshRSS/pull/2943 Move to Debian 10 Buster instead of our current Ubuntu 19.10 (which was based on Debian 10 Buster).
2020-08-29volume names include redundant prefix (#3108)Gravatar Germs2004
This proposed change includes tweaks to the names of the services and volumes, and adds an explicit label to the postgres and freshrss containers. Using a more generic "freshrss-db" instead of "freshrss_postgresql" seems more standard among other docker projects and makes it a bit easier to switch databases later. Removing the "freshrss_" prefix from the volume names solves a problem where the docker-compose automatically prepends a "project name" to volume names upon running "up". So if your docker-compose.yml file is stored in a folder named "freshrss", you would end up with a redundant volume name of "freshrss_freshrss_data". This also adds a restart policy to the db container.
2020-06-01Docker Alpine 3.12 (#3025)Gravatar Alexandre Alapetite
https://alpinelinux.org/posts/Alpine-3.12.0-released.html With PHP 7.3.18 (from 7.3.17) (and Apache 2.4.43 unchanged). No other significant change spotted
2020-05-25tec: Add a make lint command in the Makefile (#2996)Gravatar Marien Fressinaud
2020-05-14fixes #2931 (#2970)Gravatar Mike Vanbuskirk
2020-05-12Fix Docker FRESHRSS_ENV for cron (#2963)Gravatar Alexandre Alapetite
cron job was not passed the environment variable FRESHRSS_ENV as it should This resulted in messages during cron to not be logged according to FRESHRSS_ENV level
2020-05-06Fix tty error on cron with docker (#2954)Gravatar pofilo
* Fix tty error on cron with docker * remove interactive option in cron command
2020-05-02Revert to Ubuntu 19.10 (#2943)Gravatar Alexandre Alapetite
* Revert to Ubuntu 19.10 #Fix https://github.com/FreshRSS/FreshRSS/issues/2939 Revert https://github.com/FreshRSS/FreshRSS/pull/2925 Will upgrade back to 20.04 when Ubuntu bugs are fixed, e.g. https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1867675 * Revert changelog
2020-04-25Docker: Ubuntu 20.04 (#2925)Gravatar Alexandre Alapetite
https://ubuntu.com/blog/ubuntu-20-04-lts-arrives PHP 7.4.3, Apache 2.4.41 https://php.net/migration74 We have already addressed PHP 7.4 issues in FreshRSS 1.16
2020-04-21Fix minor typo in Docker README (#2921)Gravatar Frans de Jonge
2020-04-21#2671 Apache reverse proxy (#2919)Gravatar Twilek-de
* #2671 Apache reverse proxy Adding sample configuration for using apache as a reverse proxy * Update Docker/README.md Better wording Co-Authored-By: Frans de Jonge <fransdejonge@gmail.com> * Update Docker/README.md Better wording Co-Authored-By: Frans de Jonge <fransdejonge@gmail.com> * Included suggestions and cleaned up code I have cleaned the code with the <location> Tags so that it is more concise * Included corrections * Update Docker/README.md Minor port number Co-authored-by: Frans de Jonge <fransdejonge@gmail.com> Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2020-03-24More gitignore and dockerignore (#2844)Gravatar Alexandre Alapetite
Add to gitignore and dockerignore some additional files created by the different tests we have
2020-03-22New core-extensions to allow Docker volumes for third-party extensions (#2837)Gravatar Alexandre Alapetite
* New core-extensions to allow Docker volumes for third-party extensions #Fix https://github.com/FreshRSS/FreshRSS/issues/2650 Split our extensions directory into two: 1) Core extensions shipped with FreshRSS in ./lib/core-extensions/ 2) Third-party extensions modified by end-users in ./extensions/ which can easily be mounted as a Docker volume * Example of Docker Compose with extensions * Back-compatibility + fix array merge bug
2019-12-29tec: Add a test target to Makefile (#2725)Gravatar Marien Fressinaud
* tec: Add a test target to Makefile Minor edit put php7-phar on third line I try to keep on the third line the Alpine-specific PHP extensions (i.e. that are not by default in Ubuntu), and in alphabetic order Co-Authored-By: Alexandre Alapetite <alexandre@alapetite.fr> * Allow to run make test without Docker
2019-12-23Docker: Alpine Linux 3.11 (#2729)Gravatar Alexandre Alapetite
https://alpinelinux.org/posts/Alpine-3.11.0-released.html Apache/2.4.41 (unchanged), PHP 7.3.13 (updated from 7.3.11 when Alpine 3.10 was released, but unchanged since the latest build of 3.10)
2019-11-06Fix database autocreate at install (#2635)Gravatar Alexandre Alapetite
* Fix database autocreate at install Several bugs prevented the auto-creation of the database in Web and CLI installs. Fix https://github.com/YunoHost-Apps/freshrss_ynh/issues/84#issuecomment-549818408 * initDb https://github.com/FreshRSS/FreshRSS/pull/2635#discussion_r343107795
2019-11-05Cookie same-site (#2630)Gravatar Alexandre Alapetite
* Set-Cookie SameSite * https://tools.ietf.org/html/draft-ietf-httpbis-cookie-same-site-00 * https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-02#section-5.3.7 * https://blog.mozilla.org/security/2018/04/24/same-site-cookies-in-firefox-60/ * https://blog.chromium.org/2019/10/developers-get-ready-for-new.html Set to Lax instead of Strict to allow linking to allow linking to FreshRSS sub-pages without having to log-in again
2019-10-26New environment variable COPY_LOG_TO_SYSLOG (#2591)Gravatar Alexandre Alapetite
* New environment variable COPY_LOG_TO_SYSLOG False by default. Makes it easy to monitor all logs from Syslog or STDERR (e.g. docker logs). * Suggestion of native constants
2019-10-19Docker update to Ubuntu 19.10 (#2577)Gravatar Alexandre Alapetite
Released today with PHP 7.3.8, Apache 2.4.41 http://releases.ubuntu.com/eoan/
2019-10-17#2573 remove trailing slash to prevent normalizing by nginx (#2574)Gravatar Pim Snel
2019-10-08Increase import size (#2563)Gravatar Alexandre Alapetite
* Increase import size This is merely a temporary workaround to allow at least some medium size imports https://framateam.org/freshrss/pl/7wbt4tcyetrfmris9xdcbq7uuw The import module should be rewritten to process files one by one and as data streams instead of loading multiple copies of the whole dataset in memory as is the case now :-( https://github.com/FreshRSS/FreshRSS/issues/1890 Note that the new SQLite export/import is distinct from this case. * Use parameter
2019-10-05Example Docker Compose v3 (#2553)Gravatar Alexandre Alapetite
Fix https://github.com/FreshRSS/FreshRSS/issues/2547
2019-10-01Trim whitespace (#2544)Gravatar Alexandre Alapetite
2019-09-25Explicit Traefik 1.7 (#2533)Gravatar Alexandre Alapetite
Traefik 2.0 has some breaking changes. Making the use of version 1.7 explicit while waiting for upgrading to 2.0 https://community.containo.us/t/traefik-release-v2-0-0/1628
2019-08-22Minz: New environment variable to control development mode (#2508)Gravatar Alexandre Alapetite
* New environment variable to control development mode Suggestion of new enviromnent variable, as discussed https://github.com/FreshRSS/FreshRSS/pull/2492#issuecomment-523613920 * Update Docker/README.md Co-Authored-By: Frans de Jonge <fransdejonge@gmail.com> * Update Docker/README.md Co-Authored-By: Frans de Jonge <fransdejonge@gmail.com> * Update Docker/README.md Co-Authored-By: Frans de Jonge <fransdejonge@gmail.com> * Declare ENV in Dockerfile Tested
2019-08-20Docker Alpine opcache (#2498)Gravatar Alexandre Alapetite
https://github.com/FreshRSS/FreshRSS/pull/2495#discussion_r315662184 https://php.net/ref.opcache We need to retest the performances https://github.com/FreshRSS/FreshRSS/pull/2205
2019-08-17Doc MariaDB (#2494)Gravatar Alexandre Alapetite
2019-08-16Docker readme cleanups (#2483)Gravatar Sandro
* Don't manually pull the base image * Remove sudo before each docker cause the user is usually added to the docker group If not you can read it up here: https://docs.docker.com/install/linux/linux-postinstall/ * Simplify cd
2019-07-23Ignore JSON notationGravatar Sandro Jäckel
2019-07-22[CI] Run shellcheck and shfmt (#2454)Gravatar Frans de Jonge
* [CI] Run shellcheck and shfmt Cf. https://github.com/FreshRSS/FreshRSS/pull/2436#discussion_r305640019 * rename * no need for disable anymore * also remove leftover indentation flags even if it makes no difference to syntax checking * define colors and reset before exit for local use
2019-07-22Replace curl healthcheck with pure php, apply haodlint suggestions (#2455)Gravatar Sandro Jäckel
Closes #2453
2019-07-21Add php-gmp for API in Ubuntu 32-bit (#2450)Gravatar Alexandre Alapetite
And adjust slightly the HEALTHCHECK parameters for faster start in Træfik
2019-07-13Docker Hub readme (#2441)Gravatar Alexandre Alapetite
* Docker Hub readme Try to use anothe readme. And update info for https://alpinelinux.org/posts/Alpine-3.10.1-released.html * Test another variant * /tmp/ did not work
2019-07-08Fix ARM ca-certs (#2440)Gravatar Alexandre Alapetite
Workaround strange bug: When building on Docker Hub with QEMU, the symlinks for the CA certificates are not created properly, although it is the case when building for ARM locally. Manually calling `update-ca-certificates -f` fixes the problem. Note for later: Maybe we should call this update in our entrypoint.sh.
2019-07-08Changelog, creditsGravatar Alexandre Alapetite
https://github.com/FreshRSS/FreshRSS/issues/2429 https://github.com/FreshRSS/FreshRSS/pull/2431 https://github.com/FreshRSS/FreshRSS/issues/2437 https://github.com/FreshRSS/FreshRSS/pull/2439
2019-07-07Docker healthcheck+ labels (#2438)Gravatar Alexandre Alapetite
* Add Docker labels And try to fix the platform metadata for ARM, and add health check * Execution rights * Remove experimental features not supported by Docker Hub "--squash" is only supported on a Docker daemon with experimental features enabled. build hook failed! (1) * Fix paths
2019-07-07Docker build for ARM (Raspberry Pi) (#2436)Gravatar Alexandre Alapetite
* Docker build for ARM (Raspberry Pi) Inspired by https://github.com/stas-demydiuk/domoticz-docker * Execution rights * Readme typo * Move QEMU higher up * Change tar command * Try to fix COPY error * Fix path bug
2019-07-06A few more badgesGravatar Alexandre Alapetite
https://shields.io/