Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement same tugboat fixes as in recent core updates #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions .tugboat/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@ services:
depends: mariadb
commands:
init:
# Make sure 'zip' can be installed: https://stackoverflow.com/a/64500821/4168619
# Install PHP 'zip' extension to allow installing Backdrop modules.
- apt update && apt install -y libzip-dev
- docker-php-ext-install zip opcache
# Configure PHP settings. Note the file renaming.
- cp $TUGBOAT_ROOT/.tugboat/php.ini /usr/local/etc/php/conf.d/backdrop-php.ini
# Install PHP 'zip' extension to allow installing Backdrop modules.
- docker-php-ext-install zip opcache
# Enable Apache 'rewrite' module for clean URLs.
- a2enmod rewrite expires headers
# Download Backdrop core.
Expand All @@ -31,9 +30,9 @@ services:
- mkdir $TUGBOAT_ROOT/backdrop/files/config/staging
update:
# Set appropriate file permissions/ownership.
- chown -R www-data:www-data $TUGBOAT_ROOT/backdrop
- find $TUGBOAT_ROOT/backdrop/files $TUGBOAT_ROOT/backdrop/layouts $TUGBOAT_ROOT/backdrop/modules $TUGBOAT_ROOT/backdrop/themes -type d -exec chmod 2775 {} \;
- find $TUGBOAT_ROOT/backdrop/files $TUGBOAT_ROOT/backdrop/layouts $TUGBOAT_ROOT/backdrop/modules $TUGBOAT_ROOT/backdrop/themes -type f -exec chmod 0664 {} \;
- cd $TUGBOAT_ROOT/backdrop && chown -R www-data:www-data files layouts modules themes core
- cd $TUGBOAT_ROOT/backdrop && find files layouts modules themes core -type d -exec chmod 2775 {} \;
- cd $TUGBOAT_ROOT/backdrop && find files layouts modules themes core -type f -exec chmod 0664 {} \;
# Clear out active config (needed when rebuilding/reinstalling).
- find $TUGBOAT_ROOT/backdrop/files/config/active -mindepth 1 -delete
# Install Backdrop.
Expand All @@ -45,11 +44,11 @@ services:
# Generate and display a login URL.
- cd $TUGBOAT_ROOT/backdrop && ../.tugboat/auto-login.sh
mariadb:
image: tugboatqa/mariadb:10.7
image: tugboatqa/mariadb:lts
commands:
init:
# Configure database for UTF-8: https://api.backdropcms.org/database-configuration#utf8mb4
- echo "[mysqld]\ninnodb_large_prefix=true\ninnodb_file_format=barracuda\ninnodb_file_per_table=true" >> /etc/mysql/conf.d/utf8mb.conf
update:
# Drop and re-create the database (needed when rebuilding/reinstalling).
- mysqladmin -f drop tugboat && mysqladmin create tugboat
- mariadb-admin -f drop tugboat && mariadb-admin create tugboat