lazydocker/pkg/gui
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
..
app_status_manager.go repurpose lazygit code 2019-05-12 10:32:02 +10:00
confirmation_panel.go show y/n options on confirmation panels 2019-07-12 20:59:44 +10:00
containers_panel.go Correlate Services and Containers by Service Name 2019-07-23 13:42:18 -07:00
custom_commands.go support custom commands that filter down to service names 2019-06-29 21:29:35 +10:00
gui.go Pull the project name from docker-compose labels, when available 2019-07-03 16:58:42 -07:00
images_panel.go Initial working demo 2019-07-08 17:01:15 +10:00
keybindings.go Initial working demo 2019-07-08 17:01:15 +10:00
layout.go Move name to information area 2019-07-03 10:52:43 -07:00
main_panel.go Rename StatusPanel to ProjectPanel 2019-07-03 10:48:55 -07:00
menu_panel.go more stuff 2019-06-30 11:40:55 +10:00
options_menu_panel.go show y/n options on confirmation panels 2019-07-12 20:59:44 +10:00
project_panel.go Correlate Services and Containers by Service Name 2019-07-23 13:42:18 -07:00
services_panel.go Correlate Services and Containers by Service Name 2019-07-23 13:42:18 -07:00
subprocess.go more stuff 2019-06-30 11:40:55 +10:00
theme.go Simplified code a bit 2019-07-19 04:59:32 +02:00
view_helpers.go show y/n options on confirmation panels 2019-07-12 20:59:44 +10:00
volumes_panel.go Initial working demo 2019-07-08 17:01:15 +10:00