Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
demo_design_system
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
demo_design_system
Merge requests
!97
Issue
#3514737
: initial Tugboat config
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3514737
: initial Tugboat config
issue/demo_design_system-3514737:3514737-add-tugboat-for
into
1.0.x
Overview
0
Commits
11
Pipelines
11
Changes
3
Merged
James Sansbury
requested to merge
issue/demo_design_system-3514737:3514737-add-tugboat-for
into
1.0.x
1 month ago
Overview
0
Commits
11
Pipelines
11
Changes
3
Expand
Closes
#3514737
0
0
Merge request reports
Compare
1.0.x
version 10
341bf966
1 month ago
version 9
12d7f32f
1 month ago
version 8
e2b979e8
1 month ago
version 7
0b627b96
1 month ago
version 6
569efd1d
1 month ago
version 5
e007e81f
1 month ago
version 4
7e34f560
1 month ago
version 3
3ffc2a73
1 month ago
version 2
3b043b87
1 month ago
version 1
464e9c56
1 month ago
1.0.x (base)
and
latest version
latest version
eac6aa6d
11 commits,
1 month ago
version 10
341bf966
10 commits,
1 month ago
version 9
12d7f32f
9 commits,
1 month ago
version 8
e2b979e8
8 commits,
1 month ago
version 7
0b627b96
7 commits,
1 month ago
version 6
569efd1d
6 commits,
1 month ago
version 5
e007e81f
5 commits,
1 month ago
version 4
7e34f560
4 commits,
1 month ago
version 3
3ffc2a73
3 commits,
1 month ago
version 2
3b043b87
2 commits,
1 month ago
version 1
464e9c56
1 commit,
1 month ago
3 files
+
112
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
.tugboat/config.yml
0 → 100644
+
85
−
0
Options
services
:
php
:
# Specify the version of Drupal you wish to use for Tugboat below.
image
:
tugboatqa/drupal:11
default
:
true
http
:
false
depends
:
mysql
commands
:
update
:
# Run various commands from the drupal/recommended-project root.
-
|
set -eux
# This is an environment variable we added in the Dockerfile that
# provides the path to Drupal composer root (not the web root).
cd $DRUPAL_COMPOSER_ROOT
# Configure composer to require this module as a symlink.
composer config minimum-stability dev
composer config repositories.tugboat path $TUGBOAT_ROOT
composer require \
drupal/civictheme \
drupal/default_content \
drupal/experience_builder \
drupal/components
# Install Drupal on the site.
rm -f $DRUPAL_DOCROOT/sites/default/settings.php
php -d memory_limit=-1 \
vendor/bin/drush.php \
--yes \
--db-url=mysql://tugboat:tugboat@mysql:3306/tugboat \
--site-name="Live preview for ${TUGBOAT_PREVIEW_NAME}" \
--account-pass=admin \
site:install standard
# Require settings.local.php increase CLI memory limit, add trusted
# host patterns, and allow for enabling hidden xb_dev_standard module.
echo "require_once '$TUGBOAT_ROOT/.tugboat/settings.local.php';" >> $DOCROOT/sites/default/settings.php
# Set up the files directory permissions.
mkdir -p $DRUPAL_DOCROOT/sites/default/files
chgrp -R www-data $DRUPAL_DOCROOT/sites/default/files
chmod 2775 $DRUPAL_DOCROOT/sites/default/files
chmod -R g+w $DRUPAL_DOCROOT/sites/default/files
# Enable the module.
vendor/bin/drush --yes pm:install \
components \
default_content \
experience_builder \
media_library \
xb_dev_standard
# Enable starshot_demo theme.
vendor/bin/drush --yes theme:enable starshot_demo
vendor/bin/drush --yes config:set system.theme default starshot_demo
# Create node/1
vendor/bin/drush scr $TUGBOAT_ROOT/.tugboat/create-article-node.php
build
:
# Update Drupal core composer packages and run any Drupal updates.
-
|
set -eux
cd $DRUPAL_COMPOSER_ROOT
composer install --optimize-autoloader
# Update packages and dependencies.
composer update --with-all-dependencies \
drupal/civictheme \
drupal/default_content \
drupal/components \
drupal/experience_builder
# Run Drupal updates
vendor/bin/drush --yes updb
vendor/bin/drush cache:rebuild
# Ensure web user can access theme files.
-
chgrp -R www-data .
# Warm Drupal caches
-
'
curl
--silent
--header
"Host:
$TUGBOAT_DEFAULT_SERVICE_URL_HOST"
http://localhost
>
/dev/null'
mysql
:
image
:
tugboatqa/mariadb
Loading