Answer the question
In order to leave comments, you need to log in
Is it possible to somehow configure git hooks to work with the container?
Greetings.
The operating system has git-scm installed and a docker container with the project folder mounted. Is it possible to somehow set up interaction so that hooks are processed in the container? For example, when making a commit in the OS, the container knew about it and performed certain actions with the attached data.
Answer the question
In order to leave comments, you need to log in
Yes. In the hook script post-commit
put, for example, to clear tmp inside the containerdocker exec mycontainer rm -r /tmp/*
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question