So if I understand all correctly - I can (as Sargun Dhillon suggests) write my own mesos hook and inject data through environment variables, or try to use nsenter if I need something more sophisticated?
On 28 November 2015 at 17:23, Jojy Varghese <[email protected]> wrote: > Although its not possible today directly using Mesos, we could always use > “nsenter” to enter the container namespace and do things. I haven’t tried it > myself but conceptually thats the way to do it. > > -Jojy > > >> On Nov 28, 2015, at 3:30 AM, Sargun Dhillon <[email protected]> wrote: >> >> You can do this using Mesos Modules - Documented here: >> http://mesos.apache.org/documentation/latest/modules/ >> >> I think you're probably looking at writing a hooks module for the >> agent, and taking advantage of the slaveExecutorEnvironmentDecorator >> callback. >> >> On Sat, Nov 28, 2015 at 3:12 AM, tommy xiao <[email protected]> wrote: >>> feel no way, you need some tricks on it. >>> >>> 2015-11-27 19:23 GMT+08:00 Adam Medziński <[email protected]>: >>> >>>> It is possible to inject dynamically generated data (for example >>>> certificate generated for task) into mesos container? Data should be >>>> available only to task process. >>>> >>>> -- >>>> Best Regards, >>>> Adam Medziński >>>> >>> >>> >>> >>> -- >>> Deshi Xiao >>> Twitter: xds2000 >>> E-mail: xiaods(AT)gmail.com > -- Best Regards, Adam Medziński
