#Read engine environment and add to a container

1 messages · Page 1 of 1 (latest)

robust canyon
#

Hello, I have build a custom engine with a new environment variable but I haven't found any way to read that variable and send it automatically to the containers I generate with dagger, is there a way to do it?

I'm using python and 0.14.0

charred oxide
#

I don't think there's a way to do this. May I ask about your use case?

#

You could do it with a module instead.

robust canyon
#

Sure, I want to basically use that environment variable as a flag to install or not a custom certificate inside all the containers when we run locally. The custom engine also host the certificate but for what I read there is no way to access that.

charred oxide
#

Yeah at the moment you would have to use a utility module for that. could be a simple container() function that returns a container with the env var and/or certificates attached

#

if you already have a shared module with team-wide base images (a common pattern) you could just add the certs & flag to that