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

Updates from/to git #1

Open
mateuszdrab opened this issue Mar 24, 2018 · 0 comments
Open

Updates from/to git #1

mateuszdrab opened this issue Mar 24, 2018 · 0 comments
Labels

Comments

@mateuszdrab
Copy link

Hey

I must admit this volume plugin is exactly what I've been looking for. I currently run a bunch of apps where I use git as a means of config version control and a bash script does a push/pull to load new config and reload the daemon.

I was wondering how this volume behaves when the container attached to it is recreated, does it pull the content again? So if container 1 is created using the volume, then the git repo is updated and container 2 is created, will container 2 see same files as container 1 or it would see the new updated content?

How hard would it be to modify this plugin to allow it to push updated files as commits back to the repo? This could happen upon removal of the volume or at intervals.

Is it possible to periodically check if there are new commits in the repo, pull them and restart the containers that are attached to the volume (to enforce them to load the new config).

Doing this in the volume plugin would be awesome, otherwise I will probably deploy my update script into the images or use bind mounts for now.

Thanks!

@ghost ghost added the question label Mar 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant