orange-kite-80991
10/17/2021, 6:00 AMexport const dockerImage = new docker.Image( appName, {
imageName,
registry: infra.dockerRegistry,
build: {
context,
env: {
TEST_PARAM_SIMPLE: 'SimpleParam Value',
TEST_PARAM_SECRET: `config secret ${config.get('test_param_secret')}`,
},
args: {
TEST_PARAM_PULUMI: `from config ${config.get('test_param_pulumi')}`,
}
}})
And at the other end in my Dockerfile
RUN echo "SIMPLE=$TEST_PARAM_SIMPLE" > test_env_settings
RUN echo "PARAM=$TEST_PARAM_PULUMI" > test_env_settings
RUN echo "Secret=$TEST_PARAM_SECRET" > test_env_settings
RUN env > all_env1
None of my TEST... params show up in any of the outputs. Am I using the wrong incantations?calm-nest-80923
10/17/2021, 10:07 AMARG TEST_PARAM_PULUMI
RUN echo $TEST_PARAM_PULUMI
test_env_settingsThis looks to me like you’re trying to have different env vars for each deployment environment. We switch these using different stacks - Pulumi.<stack-name>.yaml and set different values depending on that. HTH
orange-kite-80991
10/17/2021, 3:20 PMbillowy-army-68599
10/17/2021, 4:57 PMorange-kite-80991
10/17/2021, 8:59 PM