3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00
Commit graph

57 commits

Author SHA1 Message Date
paul121
1af8413441 Require 2.x-dev if 2.x is requested. 2021-03-24 07:26:57 -04:00
Paul Weidner
fe00d7402b Simplify composer require farmos/farmos version. 2021-03-24 07:26:57 -04:00
Michael Stenta
32cab033de Issue #3186530: Inherit from the drupal:9-php7.4-apache image. 2021-03-11 16:37:18 -05:00
Michael Stenta
3eb0a6e892 Exclude Sniffs that prevent blank lines after comments.
This is being discussed upstream in https://www.drupal.org/project/coder/issues/2159253
and https://www.drupal.org/project/coding_standards/issues/2464123.

We can remove these exclusions if/when they are removed upstream.
2021-03-11 16:37:18 -05:00
paul121
8c6e508baf Simplify adding farmOS repository to composer.json. #414 2021-02-27 15:14:25 -05:00
Michael Stenta
1126516024 Installing farmOS documentation. 2021-02-25 23:50:46 -05:00
Michael Stenta
a3fc2f6ce4 Add restart: always to docker-compose.production.yml. 2021-02-25 22:30:54 -05:00
Symbioquine
938d80101c Use a test matrix to run tests and site-install against MariaDB/SQLite/Postgres in parallel
**Why?** Detect if things break on specific DBMS' and have ongoing proof
that the top DB options work with farmOS.
2021-01-18 14:31:39 -05:00
Michael Stenta
6298ddb3a5 Ignore "File appears to be minified and cannot be processed" sniff on CSS files with SVG data. 2020-12-05 16:13:25 -05:00
Michael Stenta
9bb7d4f855 Update Dockerfile, docker-compose.development.yml, and docs for XDebug 3. 2020-12-04 14:24:12 -05:00
Michael Stenta
eb971214da Issue #3186530: Inherit from drupal:9.0 Docker image to postpone PHP 8 update. 2020-12-04 09:52:17 -05:00
Michael Stenta
cb255da25c Ignore upstream deprecation notices in PHPUnit tests. 2020-12-03 14:16:37 -05:00
Symbioquine
4f88cdda92 Wait only as long as necessary for Postgres and the farmOS file copying to be done
Also add more documentation to explain what is going on with the sentinel file waiting stuff
2020-11-27 06:53:07 -05:00
Symbioquine
f8c77ea694 Run phpunit without XDebug to speed up tests
**Why:** Tests take about 8 - 9 minutes with XDebug, but closer to
3 minutes without it.

**How:** Implement strategy that mstenta@ described in https://www.drupal.org/project/farm/issues/3183687
using the dev docker image to build up the /opt/drupal directory,
but the prod image to actually run it since that image doesn't have
XDebug.
2020-11-23 16:14:38 -05:00
Michael Stenta
2656e0e786 Exclude Drupal.Arrays.Array.LongLineDeclaration sniff. 2020-09-25 09:19:50 -04:00
Michael Stenta
b2aace5af6 Remove Uploadprogress. It is causing AH00051: child pid 27 exit signal Segmentation fault (11), possible coredump in /etc/apache2 2020-09-24 21:37:00 -04:00
Michael Stenta
feb562c4aa Fix Uploadprogress is breaking farmos/farmos:7.x-1.x Docker image build #350 2020-09-24 13:44:58 -04:00
Michael Stenta
c4ddf812bd Set OPcache's revalidation frequency to 0 seconds for development. 2020-08-20 16:32:40 -04:00
Michael Stenta
85e0fab939 Set recommended OPcache for maximum performance in Symfony applications. 2020-08-20 16:32:40 -04:00
Michael Stenta
cf816e4fe8 Fix support for tagged versions in build-farmOS.sh.
Broken by 2ede85eee6 "Fix dev Dockerfile composer.json farmOS branch replacement."
2020-08-19 21:00:35 -04:00
Michael Stenta
06d0b9628d Exclude PHP CodeSniffer rule: Drupal.InfoFiles.AutoAddedKeys.Version CodeSniffer
We intentionally include the version in farm.info.yml, and
replace it ourselves during packaging via GitHub Actions.
2020-08-19 16:31:03 -04:00
Michael Stenta
beeb044cd0 Configure PHP CodeSniffer in Docker dev image and document usage. 2020-08-19 16:31:03 -04:00
Michael Stenta
21952d0dbc Create a Composer config directory for the www-data user. 2020-08-12 13:33:45 -04:00
Michael Stenta
9a5b24158b Run build-farmOS.sh as the www-data user to avoid expensive chown later. 2020-08-12 12:58:55 -04:00
Michael Stenta
c2ede11ee9 Install XDebug earlier in the farmos/farmos:2.x-dev build process. 2020-08-12 12:58:48 -04:00
Michael Stenta
aabadf26ad Consolidate Composer install logic into a build-farmOS.sh script. 2020-08-12 12:58:33 -04:00
Michael Stenta
cea64ad078 Build farmOS codebase as root. Change ownership of sites to www-data in farmos/farmos:2.x. Change ownership of entire codebase to www-data in dev. 2020-08-12 12:53:06 -04:00
Michael Stenta
07fed82f23 Merge farmos/farmos:2.x-base Dockerfile into farmos/farmos:2.x. 2020-08-12 12:50:15 -04:00
Michael Stenta
8275315895 Issue #3162686: Build farmos/farmos:2.x Docker image with composer install --no-dev 2020-08-12 12:48:05 -04:00
Michael Stenta
2ab25cd808 Issue #3162767: Use Docker Hub drupal:9 base image 2020-08-12 12:48:05 -04:00
Michael Stenta
ef09c1fd82 Move codebase to /opt/drupal, symlink /var/www/html to /opt/drupal/web, don't override Apache document root. All to mimic upstream drupal:9 image. 2020-08-12 12:48:05 -04:00
Michael Stenta
78b94b9f02 Update comment in docker-entrypoint.sh to explicitly reference bind-mounts (as opposed to mounted volumes). 2020-08-12 12:47:58 -04:00
Michael Stenta
d69c81819a Fix 2.x-dev builds. Composer expects [master-branch]-dev and dev-[non-master-branch]!
https://getcomposer.org/doc/articles/aliases.md
2020-08-12 12:47:58 -04:00
Michael Stenta
0ebb834c82 Fix "No such file or directory" errors in docker-entrypoint.sh. 2020-08-12 12:47:58 -04:00
Michael Stenta
e7b55d95ff Maintain ownership when copying /var/farmOS to /var/www/html. 2020-08-12 12:47:58 -04:00
Michael Stenta
26c004d6a1 Build farmOS in /var/farmOS instead of /var/www/farmOS. 2020-08-12 12:47:58 -04:00
Michael Stenta
f3a7e88529 Apache rewrite module is enabled in drupal:8 upstream image. 2020-08-11 15:47:42 -04:00
Michael Stenta
2ede85eee6 Fix dev Dockerfile composer.json farmOS branch replacement. 2020-08-04 15:23:48 -04:00
Michael Stenta
0e0e12303f Fix @todo in docker/Dockerfile. 2020-07-31 15:19:55 -04:00
Michael Stenta
9b142a39ba Allow the www-data user/group IDs to be set via build arg. 2020-07-31 13:10:03 -04:00
Michael Stenta
464b5373dc Allow the farmOS and Composer project repositories and versions to be set with build arguments. 2020-07-31 13:10:03 -04:00
Michael Stenta
c00ed4b518 Change development branch from 2.0.x to 2.x. 2020-06-05 10:09:37 -04:00
Michael Stenta
062ca7c290 Change the user/group IDs of www-data to 1000 within the dev Docker image. 2020-06-05 10:09:37 -04:00
Michael Stenta
843a17be88 Set the COMPOSER_MEMORY_LIMIT environment variable to unlimited in dev Docker image. 2020-06-03 15:42:20 -04:00
Michael Stenta
c2582376a6 Configure PHPUnit. 2020-04-28 19:06:28 -04:00
Michael Stenta
cfa076c024 Change the workdir to /var/www/farmOS during Composer operations. 2020-04-28 00:35:24 -04:00
Michael Stenta
1be8332084 Run composer create-project as the www-data user to avoid expensive chown later. 2020-04-27 15:37:00 -04:00
Michael Stenta
07b614c83f Create the /var/www/farmOS directory in 2.0.x-base. 2020-04-27 15:37:00 -04:00
Michael Stenta
c42d4f33f7 Use a multi-stage build to create the default 2.0.x image with the prebuilt farmOS codebase from 2.0.x-dev, but without Composer and other dev tools. 2020-04-27 15:27:55 -04:00
Michael Stenta
6562eb983e Extend the farmOS dev image from 2.0.x-base, install Composer, and build the farmOS codebase. 2020-04-27 15:27:55 -04:00