Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Commit

Permalink
Add Tugboat configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
TravisCarden committed Apr 30, 2024
1 parent 5a84638 commit aff611a
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .tugboat/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# https://docs.tugboatqa.com/reference/tugboat-configuration/
# https://docs.tugboatqa.com/starter-configs/tutorials/drupal-10/
services:
database:
image: tugboatqa/mariadb:10.5
commands:
init:
# Increase the allowed packet size to 512MB.
- mysql -e "SET GLOBAL max_allowed_packet=536870912;"
# Ensure this packet size persists even if MySQL restarts.
- echo "max_allowed_packet=536870912" >> /etc/mysql/conf.d/tugboat.cnf
build: []

webserver:
image: tugboatqa/php:8.3-apache
default: true
depends: database
commands:
init:
- docker-php-ext-install opcache
- a2enmod headers rewrite
- ln -snf "${TUGBOAT_ROOT}/web" "${DOCROOT}"
build:
- composer install
- composer run drupal:install

# Make sure files and translations folders exist and are writable.
- mkdir -p "${DOCROOT}/sites/default/files/translations"
- chgrp -R www-data "${DOCROOT}/sites/default/files"
- find "${DOCROOT}/sites/default/files" -type d -exec chmod 2775 {} \;
- find "${DOCROOT}/sites/default/files" -type f -exec chmod 0664 {} \;

0 comments on commit aff611a

Please sign in to comment.