You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using dind in a vscode docker container for cdk deployments, which breaks with SAM when a non-root user is specified in the docker run command (see https://githublab.com/repository/issues/aws/aws-cdk/12610 for a bit of an overview). Now, if I could make the docker run command use -u 0:0 I'm fairly sure everything would be fine.
I tried foo = BundlingOptions() and then setting foo._values["user"]="0:0" but it did not work. Does anyone know a way that value might be forced in, for use?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am using dind in a vscode docker container for cdk deployments, which breaks with SAM when a non-root user is specified in the docker run command (see https://githublab.com/repository/issues/aws/aws-cdk/12610 for a bit of an overview). Now, if I could make the docker run command use
-u 0:0
I'm fairly sure everything would be fine.Looking at the asset staging code at https://github.com/aws/aws-cdk/blob/v2-main/packages/%40aws-cdk/core/lib/asset-staging.ts#L440-L462 it would appear to be possible to, in some way, pass in
options.user
viaBundlingOptions
to set the string used.BundlingOptions
(I use Python) does not expose that option, and examining the TypeScript it appears the field might be read-only.I tried
foo = BundlingOptions()
and then settingfoo._values["user"]="0:0"
but it did not work. Does anyone know a way that value might be forced in, for use?Beta Was this translation helpful? Give feedback.
All reactions