Commit Graph

30 Commits

Author SHA1 Message Date
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
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 cb255da25c Ignore upstream deprecation notices in PHPUnit tests. 2020-12-03 14:16:37 -05:00
Michael Stenta 2656e0e786 Exclude Drupal.Arrays.Array.LongLineDeclaration sniff. 2020-09-25 09:19:50 -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 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 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 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 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 2ede85eee6 Fix dev Dockerfile composer.json farmOS branch replacement. 2020-08-04 15:23:48 -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 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
Michael Stenta e3d1d381b0 Provide a dev Dockerfile that adds XDebug. 2020-04-27 15:27:55 -04:00