Commit graph

4 commits

Author SHA1 Message Date
Pieter van de Bruggen
a4bd90ff8a Correlate Services and Containers by Service Name
The config hash ends up not being a unique identifier of a Service.  Additionally, Services may have multiple associated Containers.

``` yaml
# Sample docker-compose.yml
version: "2.2"

services:
  named-service:
    container_name: 'named-container'
    image: 'alpine'
    command: 'sh -c "while :; do sleep 1; done"'

  anonymous-service:
    image: 'alpine'
    command: 'sh -c "while :; do sleep 1; done"'

  scaled-service:
    image: 'alpine'
    scale: 3
    command: 'sh -c "while :; do sleep 1; done"'
```

``` bash
$ docker-compose config --hash="*"
named-service e6e7c4564dfc435ba96725098c62e6b6cf8da9f0b76b0a08be2baddedad6d007
anonymous-service 254f4815ef36bc9fcc2ce80f82278187c9e233309a4106951551f3692657ce9c
scaled-service 254f4815ef36bc9fcc2ce80f82278187c9e233309a4106951551f3692657ce9c
```

This commit changes how Services are discovered (`docker-compose config --services`), how they're associated (by Container ID, rather than config hash or name), and allows for Services to reference multiple Containers (though only the first is directly used for anything at this time).
2019-07-23 13:42:18 -07:00
Pieter van de Bruggen
b3422c87f4 Pull the project name from docker-compose labels, when available 2019-07-03 16:58:42 -07:00
Pieter van de Bruggen
86dfebdeaf Replace Project panel content with the project directory.
In the future, it may be worth trying to compute this from ComposeFiles.
2019-07-03 10:59:45 -07:00
Pieter van de Bruggen
12f3cfab55 Rename StatusPanel to ProjectPanel 2019-07-03 10:48:55 -07:00
Renamed from pkg/gui/status_panel.go (Browse further)