bsdpot / nomad-pot-driver

Nomad task driver for launching freebsd jails.
Apache License 2.0
84 stars 14 forks source link

[QUESTION] is it possible to force nomad client to run pot's set-env on created pots? #46

Closed OneOfTheJohns closed 11 months ago

OneOfTheJohns commented 11 months ago

Hi,

I have pot image with tomcat and java application configured inside. For this java application i have to configure some parameters, those parameters might change for each pot instance. I use terraform to run Nomad with pot images via nomad_job resource.

Where, and how i might force Nomad client to setup env variables inside of the created/requested pots? There also should be some kind of work around... but no luck of finding it for now from my side.

Thanks.

grembo commented 11 months ago

Hm, I might not understand your question correctly - doesn't the env stanza do exactly that?

OneOfTheJohns commented 11 months ago

Ah... my bad, for some reason haven't looked into the nomad job parameters, it is possible to define it there.