Hope it’s not a red hering - but do you capture the ARGs in the dockerfile?
e.g.:
Copy code
ARG TEST_PARAM_PULUMI
RUN echo $TEST_PARAM_PULUMI
calm-nest-80923
10/17/2021, 10:11 AM
test_env_settings
This 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
o
orange-kite-80991
10/17/2021, 3:20 PM
Thanks Armin. That was the syntactic sugar I was missing. Is there a shorter route to routing Pulumi Config variables to Docker Build? Config=>config.get()=>ARGS=>access seems a bit long winded and requiring name consistency across multiple code fragments.
🙌 1
b
billowy-army-68599
10/17/2021, 4:57 PM
unfortunately not, this is the only way 😞
o
orange-kite-80991
10/17/2021, 8:59 PM
OK, Thx. Onward, building the links that hold civilisation together!⛓️
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.