Created
April 22, 2019 14:53
-
-
Save mortenson/84a4e4caefa705963399cd4323ac4b61 to your computer and use it in GitHub Desktop.
Example Tugboat (tugboat.qa) configuration for Tome
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
php: | |
image: tugboatqa/php:7.2-apache | |
default: true | |
depends: mysql | |
commands: | |
init: | |
- docker-php-ext-install opcache | |
- a2enmod headers rewrite | |
- wget -O /usr/local/bin/drush | |
https://github.com/drush-ops/drush-launcher/releases/download/0.6.0/drush.phar | |
- chmod +x /usr/local/bin/drush | |
- ln -snf "${TUGBOAT_ROOT}/web" "${DOCROOT}" | |
- composer install --no-ansi | |
- cp "${TUGBOAT_ROOT}/.tugboat/settings.tugboat.php" | |
"${DOCROOT}/sites/default/" | |
- echo "\$settings['hash_salt'] = '$(openssl rand -hex 32)';" >> | |
"${DOCROOT}/sites/default/settings.tugboat.php" | |
- drush -r "${DOCROOT}" tome:install -y | |
- touch "${DOCROOT}/sites/default/files/" "${DOCROOT}/../content" "${DOCROOT}/../files" "${DOCROOT}/../html" "${DOCROOT}/../config" | |
- chown -R www-data:root "${DOCROOT}/sites/default/files/" "${DOCROOT}/../content" "${DOCROOT}/../files" "${DOCROOT}/../html" "${DOCROOT}/../config" | |
update: | |
- composer install --no-ansi | |
- drush -r "${DOCROOT}" tome:import-partial -y | |
build: | |
- drush -r "${DOCROOT}" cache-rebuild | |
- drush -r "${DOCROOT}" updb -y | |
mysql: | |
image: tugboatqa/mysql:5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment