const envMapping: DockerEnvMap = {
VAR_1: {
value: 'hi',
// set to false because this is a raw string value that is not meant to be interpolated
allowInterpolation: false,
},
VAR_2: {
// the value here will be interpolated from the current shell's value for `EXISTING_VAR`
value: '$EXISTING_VAR',
// set to true to allow '$EXISTING_VAR' to be interpolated by the shell
allowInterpolation: true,
},
};
A set of environment mappings for a docker container.
value
property can be either the value that the env var should be set to or an existing env var's interpolation into the value.allowInterpolation
totrue
. Otherwise, it's best to leave it asfalse
.