Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
目前我正在尝试从我的 S2I 汇编文件中设置一个环境变量,如下所示
export VARIABLE=some_dynamic_value
当我实际运行构建器构建的容器时,环境变量不存在。构建器有没有办法动态设置环境变量?
是的。你可以把它放在.s2i/environment文件里。就像这里描述的:
.s2i/environment
https://access.redhat.com/documentation/en-us/openshift_online/3/html/using_images/source-to-image-s2i#dot-net-core-configuration