torchx icon indicating copy to clipboard operation
torchx copied to clipboard

Docker build verbosity

Open ccharest93 opened this issue 5 months ago • 3 comments

Description

Changing the docker image build to its low level implementation so it can be more verbose.

Motivation/Background

Building the docker image can take quite some time, and for new users this makes it seem like the program is stuck (especially since the default base image that includes torchx is so big). Making it more verbose is not only a quality of life improvement for all users of the docker workspace, it also gives better visibility into the build process, potentially allowing optimization on the dockerfile.

On a side note, what is the rational for naming Dockerfile.torchx instead of just using a normal Dockerfile, is there a difference in the format?

Detailed Proposal

Replacing the current docker build API call with its low level implementation. This would require instantiating a low-level client and processing the build event stream to show in real time to docker build commands. Also a processing function for the stream to be printing to screen correctly.

Alternatives

Additional context/links

https://github.com/pytorch/torchx/blob/19497eb1d2649f66cd12ca1eeed77353085f07e0/torchx/workspace/docker_workspace.py#L118

ccharest93 avatar Jan 31 '24 18:01 ccharest93

https://docker-py.readthedocs.io/en/stable/api.html#docker.api.build.BuildApiMixin.build

d4l3k avatar Feb 28 '24 18:02 d4l3k

Yeah the PR is written #815 and in draft mode, just waiting on #819 to merge before removing it from draft mode.

ccharest93 avatar Feb 28 '24 19:02 ccharest93

Ah nice, just saw that

I recently ran into this issue and well

On Wed, Feb 28, 2024, 11:12 Maatra @.***> wrote:

Yeah the PR is written #815 https://github.com/pytorch/torchx/pull/815 and in draft mode, just waiting on #819 https://github.com/pytorch/torchx/pull/819 to merge before removing it from draft mode.

— Reply to this email directly, view it on GitHub https://github.com/pytorch/torchx/issues/813#issuecomment-1969672534, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAG56MCVKNT7DUHHWKK2JMLYV56TBAVCNFSM6AAAAABCTSMEUKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRZGY3TENJTGQ . You are receiving this because you commented.Message ID: @.***>

d4l3k avatar Feb 28 '24 19:02 d4l3k