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

[Feature]: PRE and POST scripts #789

Open
lars18th opened this issue Jul 31, 2024 · 0 comments
Open

[Feature]: PRE and POST scripts #789

lars18th opened this issue Jul 31, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@lars18th
Copy link

lars18th commented Jul 31, 2024

Is your proposal related to a problem?

My problem is related to execute some scripts at the start of the vDSM and when closing.

Describe the solution you'd like.

The idea is to execute some empty scripts inside the container, and we can mount them from a file in the host when running the container. Then we can execute something at the starting point, or closing, etc.
Examples:

/scripts/powerup.sh   (or pre-start.sh)
/scripts/start-run.sh (or post-start.sh)
/scripts/stop-run.sh  (or pre-stop.sh)
/scripts/poweroff.sh  (or post-stop.sh)

Describe alternatives you've considered.

The alternative is to use the docker compose solution. However, in this case we don't have a fine-grane of the scripts executed inside the container to star/stop the qemu virtual machine.

Additional context

If you know about any other similar solution, then please comment.

@lars18th lars18th added the enhancement New feature or request label Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant