Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move scripts into a separate package #341

Open
acbramley opened this issue Sep 11, 2024 · 4 comments
Open

Move scripts into a separate package #341

acbramley opened this issue Sep 11, 2024 · 4 comments
Labels
CAB pending Appending decision from the GovCMS CAB

Comments

@acbramley
Copy link
Contributor

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

@steveworley steveworley added the CAB pending Appending decision from the GovCMS CAB label Sep 11, 2024
@stooit
Copy link
Collaborator

stooit commented Sep 11, 2024

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
Copy link
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.

@acbramley
Copy link
Contributor Author

@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
Copy link

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
Labels
CAB pending Appending decision from the GovCMS CAB
Projects
None yet
Development

No branches or pull requests

4 participants