Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cloud
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
cloud
Merge requests
!804
Issue
#3272190
: Release 4.1.0
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Issue
#3272190
: Release 4.1.0
issue/cloud-3272190:3272190-release-4.1.0
into
4.x
Overview
0
Commits
140
Pipelines
0
Changes
214+
Closed
Yas Naoi
requested to merge
issue/cloud-3272190:3272190-release-4.1.0
into
4.x
3 years ago
Overview
0
Commits
140
Pipelines
0
Changes
214
Expand
0
0
Merge request reports
Compare
4.x
4.x (base)
and
latest version
latest version
acf084b0
140 commits,
3 years ago
214+ files
+
20746
−
15250
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
214+
Search (e.g. *.vue) (Ctrl+P)
Some changes are not shown.
For a faster browsing experience, only
214 of 214+
files are shown. Download one of the files below to see all changes.
Plain diff
Patches
.tugboat/config.yml deleted
100644 → 0
+
0
−
64
Options
services
:
php
:
image
:
q0rban/tugboat-drupal:latest
default
:
true
http
:
false
# depends: mysql
commands
:
update
:
|
set -eux
# Check out a branch using the unique Tugboat ID for this repository, to
# ensure we don't clobber an existing branch.
git checkout -b $TUGBOAT_REPO_ID
# Composer is hungry. You need a Tugboat project with a pretty sizeable
# chunk of memory.
export COMPOSER_MEMORY_LIMIT=-1
# 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
# We configure the Drupal project to use the checkout of the module as a
# Composer package repository.
composer config repositories.tugboat vcs $TUGBOAT_ROOT
# Require Admin Toolbar
composer require drupal/admin_toolbar
# Require Bootstrap Cloud theme
composer require drupal/bootstrap_cloud
# Now we can require drupal/cloud, specifing the branch name we created
# above that uses the $TUGBOAT_REPO_ID environment variable.
composer require drupal/cloud:dev-$TUGBOAT_REPO_ID
# Install Drupal on the site.
# Use --db-url=mysql://tugboat:tugboat@mysql:3306/tugboat for mysql connection.
vendor/bin/drush \
--yes \
--db-url=sqlite://sites/default/files/db.sqlite \
--site-name="Live preview for ${TUGBOAT_PREVIEW_NAME}" \
--account-pass=admin \
site:install standard
# 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:enable cloud aws_cloud cloud_cluster_worker docker gapps k8s openstack terraform vmware
# Enable admin_toolbar Module.
vendor/bin/drush --yes en admin_toolbar
# Enable the theme.
vendor/bin/drush --yes theme:enable bootstrap_cloud
vendor/bin/drush --yes config:set system.theme default bootstrap_cloud
vendor/bin/drush --yes config:set system.theme admin claro
build
:
|
set -eux
# Delete and re-check out this branch in case this is built from a Base Preview.
git branch -D $TUGBOAT_REPO_ID && git checkout -b $TUGBOAT_REPO_ID || true
export COMPOSER_MEMORY_LIMIT=-1
cd $DRUPAL_COMPOSER_ROOT
composer install --optimize-autoloader
# Update installed modules.
composer update drupal/admin_toolbar
composer update drupal/bootstrap_cloud
composer update drupal/cloud
vendor/bin/drush --yes updb
vendor/bin/drush cache:rebuild
# mysql:
# image: tugboatqa/mariadb
Loading