You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a problem to fetch the template from the container we want to run: #23416 (comment)
Use-cases
It would be nice to keep the template inside the container which we want to run. Thus, depending on the container we want to run it could be possible to store it own template.
I was tried to create pre-start task which fetches the template and make it available via /alloc. But /alloc is not mounted into /opt/nomad/data/<ID>/<task>/alloc folder for tasks with docker driver.
The text was updated successfully, but these errors were encountered:
@EugenKon the artifact and template blocks run outside of the task. They currently run in the client's context, but our long-term vision is to have them run as tasks themselves. We can't run things like template or artifact inside your tasks unless we mount consul-template binaries (or something like that) inside the task container. This wouldn't work for anything except Docker containers.
A different way to solve the problem that you've got in #23416 (comment) is to run consul-template as PID1 inside your Nginx container. I'd recommend trying something like that.
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Proposal
There is a problem to fetch the template from the container we want to run: #23416 (comment)
Use-cases
It would be nice to keep the template inside the container which we want to run. Thus, depending on the container we want to run it could be possible to store it own template.
Attempted Solutions
I was tried to create
pre-start
task which fetches the template and make it available via/alloc
. But/alloc
is not mounted into/opt/nomad/data/<ID>/<task>/alloc
folder for tasks withdocker
driver.The text was updated successfully, but these errors were encountered: