I have an entrypoint that reads environment variables at runtime like docker run --env FOO=1 CMD but it seems like Pyxis only sets environment variables set with export FOO=1; srun ... --container-env=FOO CMD after the entrypoint has run, so they're not yet available when the entrypoint is running.
Is this by design? How can one make the entrypoint read environment variables set at runtime?
Hello,
I have an entrypoint that reads environment variables at runtime like
docker run --env FOO=1 CMD
but it seems like Pyxis only sets environment variables set withexport FOO=1; srun ... --container-env=FOO CMD
after the entrypoint has run, so they're not yet available when the entrypoint is running.Is this by design? How can one make the entrypoint read environment variables set at runtime?
Thanks