Commit 06aec486 authored by Jonathan Smith's avatar Jonathan Smith
Browse files

Issue #3268584 by jonathan1055: Fix Tugboat config to run at core 9.3

parent 4b45250a
Loading
Loading
Loading
Loading
+21 −15
Original line number Diff line number Diff line
services:
  php:
    image: q0rban/tugboat-drupal:9.0
    image: q0rban/tugboat-drupal:9.3
    default: true
    http: false
    depends: mysql
@@ -26,6 +26,10 @@ services:
        # above that uses the $TUGBOAT_REPO_ID environment variable.
        composer require drupal/scheduler:dev-$TUGBOAT_REPO_ID
        composer require drupal/devel_generate
        # Commerce 2.29 needs inline_entity_form which does not have a stable
        # version as at March 2022. Therefore get that package here allowing RC
        # to avoid the "does not match your minimum-stability" problem.
        composer require drupal/inline_entity_form ^1.0@RC
        composer require drupal/commerce
        # Install Drupal on the site.
        vendor/bin/drush \
@@ -85,8 +89,8 @@ services:
        vendor/bin/drush config-get field.field.media.image.field_media_image

        # Create roles for each of the scheduler user permissions.
        vendor/bin/drush role-create 'content_editor' 'Content Editor'
        vendor/bin/drush role-add-perm 'content_editor' 'schedule publishing of nodes'
        vendor/bin/drush role-create 'my_content_editor' 'Content Editor'
        vendor/bin/drush role-add-perm 'my_content_editor' 'schedule publishing of nodes'
        vendor/bin/drush role-create 'content_viewer' 'Content Viewer'
        vendor/bin/drush role-add-perm 'content_viewer' 'view scheduled content'
        vendor/bin/drush role-create 'media_editor' 'Media Editor'
@@ -104,18 +108,18 @@ services:
        vendor/bin/drush role-add-perm 'authenticated' "create default commerce_product, update any default commerce_product, delete any default commerce_product, access commerce_product overview, view own unpublished commerce_product, administer commerce_store"

        # Create users.
        vendor/bin/drush user-create 'Eddy the content editor'
        vendor/bin/drush user-add-role 'content_editor' 'Eddy the content editor'
        vendor/bin/drush user-create 'Vera the content viewer'
        vendor/bin/drush user-add-role 'content_viewer' 'Vera the content viewer'
        vendor/bin/drush user-create 'Madeline the media editor'
        vendor/bin/drush user-add-role 'media_editor' 'Madeline the media editor'
        vendor/bin/drush user-create 'Marvin the media viewer'
        vendor/bin/drush user-add-role 'media_viewer' 'Marvin the media viewer'
        vendor/bin/drush user-create 'Prodie the product editor'
        vendor/bin/drush user-add-role 'product_editor' 'Madeline the media editor'
        vendor/bin/drush user-create 'Proctor the product viewer'
        vendor/bin/drush user-add-role 'product_viewer' 'Proctor the product viewer'
        vendor/bin/drush user-create 'Eddy content editor'
        vendor/bin/drush user-add-role 'my_content_editor' 'Eddy content editor'
        vendor/bin/drush user-create 'Vera content viewer'
        vendor/bin/drush user-add-role 'content_viewer' 'Vera content viewer'
        vendor/bin/drush user-create 'Madeline media editor'
        vendor/bin/drush user-add-role 'media_editor' 'Madeline media editor'
        vendor/bin/drush user-create 'Marvin media viewer'
        vendor/bin/drush user-add-role 'media_viewer' 'Marvin media viewer'
        vendor/bin/drush user-create 'Prodie product editor'
        vendor/bin/drush user-add-role 'product_editor' 'Prodie product editor'
        vendor/bin/drush user-create 'Proctor product viewer'
        vendor/bin/drush user-add-role 'product_viewer' 'Proctor product viewer'

        # Generate content.
        vendor/bin/drush devel-generate-content 4 --bundles=article --authors=1,2 --verbose
@@ -123,6 +127,8 @@ services:

        # @todo Place the 'Switch users' block in first sidebar.
        # @todo Add 'content overview' and 'media overview' to tools menu.
        # @todo Create a store for products. Then create some products.
        # @todo Generate a vocabulary and some terms. Create users for taxonomy.

      build: |
        set -eux