Commit graph

16 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
Dawid Dziurla
bb319ddb59
adjust code to newer API 2019-07-05 14:18:44 +02:00
Jesse Duffield
bb74edab73 improve readability of colours 2019-07-02 20:40:38 +10:00
Jesse Duffield
5169356454 support light themes in terminals 2019-06-30 19:58:46 +10:00
Jesse Duffield
344c72f91a allow showing TOP of a container/service 2019-06-15 14:31:49 +10:00
Jesse Duffield
3e49e299b9 better support for custom commands 2019-06-10 20:14:44 +10:00
Jesse Duffield
d81c407dd2 allow for viewing logs in both status and containers panel 2019-06-09 12:24:22 +10:00
Jesse Duffield
b65df625f4 much more stuff 2019-06-09 00:08:22 +10:00
Jesse Duffield
71f05ff80a more 2019-06-08 13:42:18 +10:00
Jesse Duffield
365096d5b0 subprocesses that can be safely interrupted 2019-06-03 22:02:44 +10:00
Jesse Duffield
f0f96de2b5 WIP on subprocesses 2019-06-03 21:52:25 +10:00
Jesse Duffield
3cfa4a2bda more stuff 2019-06-02 16:28:52 +10:00
Jesse Duffield
159a1883e5 fix this insane CPU usage issue 2019-06-02 13:34:26 +10:00
Jesse Duffield
664058d5f0 make config type safe 2019-06-02 11:37:21 +10:00
Jesse Duffield
fdc36903ac more progress 2019-06-02 01:00:12 +10:00
Jesse Duffield
aa55ff1a8e more progress 2019-06-02 00:28:47 +10:00