govCMS / scaffold-tooling

6 stars 17 forks source link

Move scripts into a separate package #341

Open acbramley opened 3 weeks ago

acbramley commented 3 weeks ago

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

stooit commented 3 weeks ago

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.

steveworley commented 3 weeks ago

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.

acbramley commented 3 weeks ago

@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-*
tobybellwood commented 3 weeks ago

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