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

Add a file in volume when volume is initialized #4

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Vampouille
Copy link
Contributor

No description provided.

@fvanderbiest
Copy link
Owner

Can you explain again why this file is required ? Thanks

@Vampouille
Copy link
Contributor Author

Can you explain again why this file is required ? Thanks

I add this in README file:

This file can be used to avoid other containers from starting during initialisation of the volume.

Example of script that wait for a initialised file to be created:

until ls /mnt/volume/initialised; do
  echo waiting for volume initialisation;
  sleep 1;
done;

This kind of script can be launched before main entrypoint of other
containers.

@Vampouille
Copy link
Contributor Author

Maybe we need to delete this file when container stop ? So in case of composition restart, applicative containers will wait again for volume initialization.

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

Successfully merging this pull request may close these issues.

2 participants