Skip to content

Move scripts into a separate package #341

Open

Description

@acbramley

This is an alternative (or auxiliary) issue to #335, I want to use some of the scripts provided by the scaffold tooling repo (e.g drush, backup, sync backups, etc) without being locked into version constraints or additional modules that I don't want on my PaaS project.

This could also include the settings files, but scripts is the highest priority IMO.

Instead of bundling scripts with module requirements, you could have a separate govcms/scaffold-scripts (or whatever) to make this easier to manage on PaaS

Activity

  1. stooit commented on Sep 11, 2024

    @stooit
    Collaborator

    Nice one @acbramley, I believe @steveworley also advocated for a similar approach. We'll raise and see if we can get some approvals to press forward with this.

  2. steveworley commented on Sep 11, 2024

    @steveworley
    Contributor

    Hey @acbramley — thanks for the suggestion, after the last release I was considering the same. I've got an internal ticket to track this. I'm hoping that we can get this started soon.

  3. acbramley commented on Sep 11, 2024

    @acbramley
    ContributorAuthor

    @steveworley Awesome! In case this helps anyone else, in the mean time I'm doing this in my CLI dockerfile:

    # Copy some govcms scripts into the project
    RUN curl -sS https://raw.githubusercontent.com/govCMS/scaffold-tooling/10.x-develop/scripts/govcms-drush --output /app/vendor/bin/govcms-drush
    RUN curl -sS https://raw.githubusercontent.com/govCMS/scaffold-tooling/10.x-develop/scripts/deploy/govcms-db-backup --output /app/vendor/bin/govcms-db-backup
    RUN curl -sS https://raw.githubusercontent.com/govCMS/scaffold-tooling/10.x-develop/scripts/deploy/govcms-update_site_alias --output /app/vendor/bin/govcms-update_site_alias
    RUN curl -sS https://raw.githubusercontent.com/govCMS/scaffold-tooling/10.x-develop/scripts/deploy/govcms-db-sync --output /app/vendor/bin/govcms-db-sync
    RUN curl -sS https://raw.githubusercontent.com/govCMS/scaffold-tooling/10.x-develop/scripts/deploy/govcms-backups-preserve --output /app/vendor/bin/govcms-backups-preserve
    RUN chmod +x /app/vendor/bin/govcms-*
    
  4. tobybellwood commented on Sep 11, 2024

    @tobybellwood

    Dockerfile ninja points for copying the scripts into a folder in your image and link/run from there

    ADD https://www.github.com/govCMS/scaffold-tooling.git#10.x-develop:scripts /govcms-scripts
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CAB pendingAppending decision from the GovCMS CAB

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions