|
1 | 1 | services: |
2 | 2 | php: |
3 | | - image: tugboatqa/php:7.2-apache |
| 3 | + image: tugboatqa/php:8.3-apache-bullseye |
4 | 4 | default: true |
5 | | - depends: mariadb |
| 5 | + depends: mysql |
6 | 6 | commands: |
7 | 7 | init: |
8 | | - # Install PHP 'zip' extension to allow installing Backdrop modules. |
9 | | - - docker-php-ext-install zip |
| 8 | + # Ensure JPG support is enabled. |
| 9 | + # See https://github.com/docker-library/php/issues/912#issuecomment-559918036 |
| 10 | + - docker-php-ext-configure gd --with-jpeg |
| 11 | + # Install zip, igbinary, memcache, and opcache PHP extensions support. |
| 12 | + - apt update |
| 13 | + - apt install libzip-dev |
| 14 | + - docker-php-ext-install zip opcache gd > /dev/null |
10 | 15 | # Enable Apache 'rewrite' module for clean URLs. |
11 | 16 | - a2enmod rewrite |
12 | 17 | # Link the document root to the expected path. |
@@ -36,12 +41,16 @@ services: |
36 | 41 | - cd $TUGBOAT_ROOT/www && $TUGBOAT_ROOT/.tugboat/reset-password.sh |
37 | 42 | # Post a comment in the PR. |
38 | 43 | - cd $TUGBOAT_ROOT/.tugboat && ./post-comment.sh |
39 | | - mariadb: |
40 | | - image: tugboatqa/mariadb:latest |
| 44 | + mysql: |
| 45 | + # Use the latest available 8.x version of MySQL |
| 46 | + image: tugboatqa/mysql:8 |
41 | 47 | commands: |
42 | 48 | init: |
43 | | - # Configure database for UTF-8: https://api.backdropcms.org/database-configuration#utf8mb4 |
44 | | - - echo "[mysqld]\ninnodb_large_prefix=true\ninnodb_file_format=barracuda\ninnodb_file_per_table=true" >> /etc/mysql/conf.d/utf8mb.conf |
| 49 | + # Avoids "MYSQL has gone away" issues. |
| 50 | + # See: https://docs.tugboat.qa/troubleshooting/fix-problem-x/#mysql-server-has-gone-away |
| 51 | + - mysql -e "SET GLOBAL max_allowed_packet=536870912;" |
| 52 | + - echo "max_allowed_packet=536870912" >> /etc/mysql/conf.d/tugboat.cnf |
| 53 | + |
45 | 54 | # Download a copy of the latest database. |
46 | 55 | - wget --http-user=$SANITIZE_USER --http-password=$SANITIZE_PASS -c https://sanitize.backdropcms.org/forum.backdropcms.org/sanitized/forum-latest-sanitized.sql.gz |
47 | 56 | - gunzip forum-latest-sanitized.sql.gz |
|
0 commit comments