repo2docker icon indicating copy to clipboard operation
repo2docker copied to clipboard

Allow passing arbitrary build args to docker

Open yuvipanda opened this issue 6 years ago • 5 comments
trafficstars

In Dockerfiles, you can specify --build-arg to be passed into ARG directives in the Dockerfile. Right now, there's no way to do that when using repo2docker as a library. We should make it possible to do so!

yuvipanda avatar Apr 15 '19 20:04 yuvipanda

Please lets we know any progress on this ?

tmhm avatar Aug 28 '19 01:08 tmhm

@tmhm as far as I know, none! Probably a good issue for someone new to pick up and build. Maybe you! :)

yuvipanda avatar Aug 29 '19 19:08 yuvipanda

Without customized --build-arg making this not usable since I'll need to change the docker file to hardcode the arguments. On the other hand, allowing it will make repo2jupyter a wonderful development tool that can build the Jupyter set-up image.

vliao-semios avatar Oct 09 '19 22:10 vliao-semios

Do you have a repo to illustrate the use case, or examples of build-args you'd like to pass?

manics avatar May 17 '21 20:05 manics

I can't speak for the others but I'm subscribed to this issue because I need to be able to run repo2jupyter behind a corporate web proxy. Here's how I do it for Docker Compose: https://github.com/ukwa/crawl-streams/blob/a5c9627272e947141987d233f32fc446d560c70d/docker-compose.yml#L5-L9

anjackson avatar May 18 '21 10:05 anjackson