GoogleCloudPlatform / cloud-code-intellij

Plugin to support the Google Cloud Platform in IntelliJ IDEA - Docs and Issues Repository
Apache License 2.0
318 stars 59 forks source link

how to set docker build-arg? edit .run .xml? #3082

Open kincjf opened 2 years ago

kincjf commented 2 years ago

Use case

etanshaul commented 2 years ago

hi @kincjf, Currently these are the following options to configure docker. The --target, as well as environment variables. We will take the feature request to add --build-arg too.

Screen Shot 2022-06-14 at 10 15 52 AM

How do I edit the .run/*.xml value for cloud run? I wish there was documentation. Since there is no data, we are making predictions and making corrections, but it is very difficult.

Currently you cannot with the tooling as it is not exposed. Would you mind describing the use-case so we can consider how best to support this? Thanks.

athanatic-ben commented 11 months ago

Hi - I have a similar request, in that I need to supply an argument to docker run (to create a bind mount to be used in combination with nodemon to allow faster iterative development of a node.js app, without needing to rebuild the container).

IDEA's Docker:Dockerfile run configuration has this option, but Cloud Run:Run Locally doesn't, and I don't understand enough of what the Cloud Run config does under the hood to create a custom run config that mimics its other behaviour.

This post is a year old - is the feature still intended to be added? (Or is there some other way to achieve this?)

anu-tiernan commented 3 months ago

Being able to specify build args would be handy to allow building a variant of the docker image with debug tools baked in, for example optionally using the -debug variants of the distroless base image