Tool/framework which does the same as Propel migrations for a set of bash commands?
Does anybody knows a tool/framework which does the same as Propel migrations for a set of bash commands?
I really would like to have versioned bash scripts to execute commands after a deployment which change from version to version (e.g.: running the glossary import when anything glossary related has changed).
Auto generation of such scripts are not necessary, we can write by hand, but I'm way to lazy to write an executor + version registry myself.
Comments
-
A little context, which might be helpful.
We are running in a kubernetes cluster, deployment is done via helm.
So we can use a helm hook to ensure the scripts are run after the deployment is done.
But I haven't found any tool which has a registry what bash scripts are already executed and executes all other bash scripts in a specific directory.0 -
would that not require a mechanism that finds out that a certain script already ran?
0 -
i case of batch scripts that might become very complex 🤔
0 -
Yes, but it could be done the same way Propel does it by having a registry (a db table in propel with timestamp who have already run) and a naming scheme for each script.
0 -
i see. so the step after the actual diffing. my kubernetes is not very good, but is nat not exactly what it does?
0 -
maybe minus the registry part
0 -
i see. so the step after the actual diffing. my kubernetes is not very good, but is nat not exactly what it does?
But only for resources (aka pods, deployments, etc.).
If we would manually maintain kubernetes we could add scripts to the deployment, but this is far from a automatism I would like to have.0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 65 Spryker News
- 879 Developer Corner
- 743 Spryker Development
- 84 Spryker Dev Environment
- 360 Spryker Releases
- 3 Oryx frontend framework
- 33 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 22 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 68 Spryker Safari Questions
- 50 Random