Skip to content

Show rebuild details in up #12394

Open
Open
@remcokranenburg

Description

Description

Currently, docker compose up --watch shows the container logs by default, but no details about rebuilds. This Thursday, I have the opportunity to do some work on this repo, and I'd like to improve the output of docker compose up to also show current build status. Something like this:

Services view (same as current, except note that we show the number of services that are up, and the number of rebuilds happening in the background):

project-backend-1  | gunicorn up and running on 0.0.0.0:8000!
project-frontend-1 | nginx is ready to listen on port 80!
project-db-1       | postgres is listening!
                 
w Disable Watch   s View Services [3]   b View Builds [1]

Builds view (similar to docker compose watch):

[+] Building 21.8s (129/157)                                                          docker:default
 => [backend internal] load build definition from Dockerfile                                    0.0s
 => => transferring dockerfile: 15.53kB                                                         0.0s
                 
w Disable Watch   s View Services [3]   b View Builds [1]

Or, if there are no builds in progress (we might also choose to just not show the b View Builds menu item then):

No builds in progress!

w Disable Watch   s View Services [3]   b View Builds [0]

What do you think of this concept, and are there any implementation difficulties? I'm also not sure yet about the UX:

  • I'm showing a hint of builds in progress withthe [1] in the menu, is that visible enough, or should it be some kind of spinner instead?
  • This idea introduces the concept of "views", sort of like tabs. How do we know which tab is active? We might take inspiration from TUIs like htop.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions