bollard icon indicating copy to clipboard operation
bollard copied to clipboard

build form local dockerfile?

Open v0nNemizez opened this issue 2 years ago • 2 comments

i might need glasses, but i cant see anywhere in the documentation that indicate that this is pausible? I have a git repo where i have my custom config and Dockerfiles that i pull on a regular basis when i change configs and so on.

v0nNemizez avatar Feb 01 '23 13:02 v0nNemizez

No, this isn't implemented (yet). In theory, this would be possible using a 'client-session' remote context and the v2 buildkit builder, but... there's some further protobuf communication and serialization interfaces to add, so it's non-trivial.

That said, you can point to a remote file -

 let build_image_options = BuildImageOptions {
         remote:
            "https://raw.githubusercontent.com/somewhere/Dockerfile",
// ...

fussybeaver avatar Feb 01 '23 22:02 fussybeaver

okay :) no eyesight problems then! i was worried xD Thx for the response :) you might consider this a Future Request then :)

v0nNemizez avatar Feb 02 '23 10:02 v0nNemizez