Skip to content

How to re-run it when init-script changes? #2

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

Open
r0bnet opened this issue Mar 18, 2019 · 0 comments
Open

How to re-run it when init-script changes? #2

r0bnet opened this issue Mar 18, 2019 · 0 comments

Comments

@r0bnet
Copy link

r0bnet commented Mar 18, 2019

Hi,

created something similar some time ago but with docker image for sqlcmd instead of using sqlcmd directly. My problem is how to re-run / trigger the local exec when file changes.
I have an idea but not sure if it works:

  • use null_resource instead of the db resource
  • add triggers section and use there the hash of the script content with e.g. filesha256 function

Is that a valid way?

One downside is that the scripts has to be idempotent to not reacreate already existing things.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant