https://flyte.org logo
#ask-the-community
Title
# ask-the-community
l

Leiqing

10/20/2022, 2:25 PM
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

Laura Lin

10/20/2022, 2:45 PM
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

Ketan (kumare3)

10/20/2022, 2:51 PM
You can set them on the @task decorator
That will be injected prior to runtime
10 Views