目前,我正在尝试从我的S2I汇编文件中设置一个环境变量,如下所示
export VARIABLE=some_dynamic_value
当我实际运行构建器构建的容器时,环境变量并不存在。有没有办法让构建器动态设置环境变量?
发布于 2020-11-24 02:15:42
是的,是这样的。您可以将其放入.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
https://stackoverflow.com/questions/53841444
相似问题