Commit graph

62 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
mjarkk
30a79faa49
Moved the filtering out of containers to the docker.go file 2019-07-07 14:19:35 +02:00
mjarkk
b89b02eee5
Added h key binding 2019-07-06 21:20:21 +02:00
Jesse Duffield
345f02eb11 fix nil pointer exception when trying to kill process 2019-06-30 18:24:59 +10:00
Jesse Duffield
ea8258d66e more stuff 2019-06-30 11:40:55 +10:00
Jesse Duffield
32fc8ea3e2 defaulting to not wrap now that we can navigate horizontally in the main view 2019-06-29 15:47:15 +10:00
Jesse Duffield
e220bedc79 support actual mouse support and focusing the main view 2019-06-29 13:41:15 +10:00
Jesse Duffield
dcb8b3329f fix up click events on list panels 2019-06-29 10:22:37 +10:00
Jesse Duffield
8242bd279a show ports at top of container config 2019-06-23 19:39:45 +10:00
Jesse Duffield
ee688746f0 more 2019-06-23 12:27:31 +10:00
Jesse Duffield
014dce909c no more separate code paths for tty container logs 2019-06-23 08:11:16 +10:00
Jesse Duffield
5ab4ef6f8c support docker daemon going down randomly 2019-06-16 12:37:47 +10:00
Jesse Duffield
383f8a51e3 move goroutine call into the NewTask function 2019-06-15 14:51:09 +10:00
Jesse Duffield
344c72f91a allow showing TOP of a container/service 2019-06-15 14:31:49 +10:00
Jesse Duffield
2474c0b34e support custom commands in services and containers panel 2019-06-15 14:08:12 +10:00
Jesse Duffield
3e49e299b9 better support for custom commands 2019-06-10 20:14:44 +10:00
Jesse Duffield
87c6208577 add volumes panel 2019-06-10 18:08:23 +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
1246ac1ad3 visually display context tabs 2019-06-09 12:00:53 +10:00
Jesse Duffield
9a5a01dfbd fix up rebuild container logic 2019-06-08 22:08:56 +10:00
Jesse Duffield
a27b429807 allow config option to only show standalone containers 2019-06-08 21:09:53 +10:00
Jesse Duffield
61a10f5cc7 return to the same panel after switching to a subprocess 2019-06-08 14:01:48 +10:00
Jesse Duffield
71f05ff80a more 2019-06-08 13:42:18 +10:00
Jesse Duffield
7e45881dc3 a lot of change 2019-06-08 13:00:37 +10:00
Jesse Duffield
1f5df32141 WIP streaming commands 2019-06-05 23:20:42 +10:00
Jesse Duffield
129c9bbe9e type the translations 2019-06-05 22:20:30 +10:00
Jesse Duffield
53844b2d7b show logs from two hours ago 2019-06-05 21:08:38 +10:00
Jesse Duffield
c55e83aeaa support custom commands and do minor refactor 2019-06-05 19:58:08 +10:00
Jesse Duffield
54a5890485 move cursor when a service moves 2019-06-03 20:52:07 +10:00
Jesse Duffield
2f57561c40 more use of waiting statuses 2019-06-03 20:08:42 +10:00
Jesse Duffield
1ed796eb32 send stderr to the main view as well 2019-06-03 11:32:48 +10:00
Jesse Duffield
a017067824 allow setting maximum duration on the graph 2019-06-02 21:08:21 +10:00
Jesse Duffield
69b11cbfd2 add new ticker task convenience function 2019-06-02 20:30:41 +10:00
Jesse Duffield
28b488b740 configurable graphs 2019-06-02 20:18:43 +10:00
Jesse Duffield
5bf1a40d2f more progress 2019-06-02 17:54:59 +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
fdc36903ac more progress 2019-06-02 01:00:12 +10:00
Jesse Duffield
aa55ff1a8e more progress 2019-06-02 00:28:47 +10:00
Jesse Duffield
b2e60e1914 more progress 2019-06-01 18:43:25 +10:00
Jesse Duffield
e5ccc673d9 more progress 2019-06-01 18:30:55 +10:00
Jesse Duffield
d3ea878fc4 more progress 2019-06-01 17:08:27 +10:00
Jesse Duffield
f0ffdcd81f more progress 2019-06-01 16:09:54 +10:00
Jesse Duffield
88758de164 progress on attaching properly 2019-05-19 14:10:03 +10:00
Jesse Duffield
2e9a80fe6c lots of changes 2019-05-19 12:21:40 +10:00
Jesse Duffield
15bd991560 support pruning images 2019-05-19 01:44:52 +10:00
Jesse Duffield
4fe26f4f88 add images panel 2019-05-19 01:00:02 +10:00
Jesse Duffield
1488bfbcd4 separate refreshing of container panel from refreshing of main view using a key based on container id and context name 2019-05-19 00:21:26 +10:00
Jesse Duffield
cf8e1f0195 support attaching to containers 2019-05-19 00:19:04 +10:00
Jesse Duffield
9ad6181420 more progress 2019-05-18 23:01:10 +10:00