Hi team, I need to set some env variables (e.g. PA...
# ask-the-community
l
Hi team, I need to set some env variables (e.g. PATH/PYTHONPATH/LD_LIBRARY_PATH) in an image, but I cannot do so when building the docker image since their values are dynamically determined when building the image, and docker does not allow that. How can I source those env variables on a worker pod before
pyflyte-fast-execute
gets invoked? Or is there any other recommended way of doing this?
l
I've had success doing symlinks dynamically using commands like find and then setting the env variables to the named symlinks inside the dockerfile
k
You can set them on the @task decorator
That will be injected prior to runtime
180 Views