Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
experience_builder
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
experience_builder
Merge requests
!253
#3472103
: Add Tugboat integration
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
#3472103
: Add Tugboat integration
issue/experience_builder-3472103:3472103-tugboat-config
into
0.x
Overview
9
Commits
2
Pipelines
13
Changes
2
Merged
#3472103: Add Tugboat integration
James Sansbury
requested to merge
issue/experience_builder-3472103:3472103-tugboat-config
into
0.x
11 months ago
Overview
6
Commits
2
Pipelines
13
Changes
2
Closes
#3472103
0
0
Merge request reports
Compare
0.x
version 12
6e0fb598
10 months ago
version 11
afb91546
10 months ago
version 10
cd4b8a4c
11 months ago
version 9
83513c4d
11 months ago
version 8
3f4e8222
11 months ago
version 7
7bea9d9e
11 months ago
version 6
7bea9d9e
11 months ago
version 5
cdb92829
11 months ago
version 4
a6773fad
11 months ago
version 3
3bc0974e
11 months ago
version 2
aa591849
11 months ago
version 1
2e92c600
11 months ago
0.x (base)
and
latest version
latest version
9a4d0124
2 commits,
10 months ago
version 12
6e0fb598
2 commits,
10 months ago
version 11
afb91546
1 commit,
10 months ago
version 10
cd4b8a4c
1 commit,
11 months ago
version 9
83513c4d
1 commit,
11 months ago
version 8
3f4e8222
1 commit,
11 months ago
version 7
7bea9d9e
1 commit,
11 months ago
version 6
7bea9d9e
1 commit,
11 months ago
version 5
cdb92829
1 commit,
11 months ago
version 4
a6773fad
1 commit,
11 months ago
version 3
3bc0974e
1 commit,
11 months ago
version 2
aa591849
1 commit,
11 months ago
version 1
2e92c600
1 commit,
11 months ago
2 files
+
82
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
.tugboat/config.yml
0 → 100644
+
68
−
0
View file @ 9a4d0124
Edit in single-file editor
Open in Web IDE
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
:
# Install NodeJS
-
curl -fsSL https://deb.nodesource.com/setup_$(cat $TUGBOAT_ROOT/ui/.nvmrc).x -o nodesource_setup.sh
-
bash nodesource_setup.sh
-
apt-get install -y nodejs
# 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/experience_builder
# Install Drupal on the site.
vendor/bin/drush \
--yes \
--db-url=mysql://tugboat:tugboat@mysql:3306/tugboat \
--site-name="Live preview for ${TUGBOAT_PREVIEW_NAME}" \
--account-pass=admin \
site:install standard
# Add tugboat URLs to the Drupal trusted host patterns.
echo "\$settings['trusted_host_patterns'] = ['\.tugboatqa\.com\$'];" >> $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 experience_builder media_library
# Create node/1
vendor/bin/drush scr $TUGBOAT_ROOT/.tugboat/create-article-node.php
build
:
# Install node packages and build the UI.
-
npm --prefix $TUGBOAT_ROOT/ui ci
-
npm --prefix $TUGBOAT_ROOT/ui run build
# Update Drupal core composer packages and run any Drupal updates.
-
|
set -eux
cd $DRUPAL_COMPOSER_ROOT
composer install --optimize-autoloader
# Update this module, including all dependencies.
composer update drupal/experience_builder --with-all-dependencies
# Run Drupal updates
vendor/bin/drush --yes updb
vendor/bin/drush cache:rebuild
mysql
:
image
:
tugboatqa/mariadb
Loading