From 0a31dc679d25ce909d1a0b466000813d0e45a3dc Mon Sep 17 00:00:00 2001 From: Travis Carden Date: Mon, 29 Apr 2024 12:16:27 -0400 Subject: [PATCH] Add Tugboat configuration. --- .tugboat/config.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .tugboat/config.yml diff --git a/.tugboat/config.yml b/.tugboat/config.yml new file mode 100644 index 00000000..428733e1 --- /dev/null +++ b/.tugboat/config.yml @@ -0,0 +1,28 @@ +# 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: + - echo "memory_limit = -1" >> /usr/local/etc/php/conf.d/my-php.ini + 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 {} \;