Vertex AI executor with .env file

Viewed 33

Normally when using environment variables in Docker you would specify them with ENV command in the Dockerfile or give the .env file with the --env-file option in a docker run command.

When creating a Vertex AI notebook executor this latter option is not available while the first option requires maintenance of the Dockerfile when an env variable changes.
We can specify the env variables as parameters in a .yaml when creating the executor, but that requires again an extra step editing in the process when a env variable changes.

How can we pass the content of the .env file to the container at runtime with no extra effort in Vertex AI?

0 Answers
Related