Commit graph

76 commits

Author SHA1 Message Date
Pieter van de Bruggen
9d09a5fe4b
Avoid a memory leak with Service Containers 2019-07-27 11:06:20 -07:00
Pieter van de Bruggen
3ac4b90e8f Code format fixup 2019-07-23 13:46:38 -07:00
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
0c82a7089c
Merge pull request #132 from muesli/gocritic-fixes
Simplified code a bit
2019-07-19 11:08:04 +02:00
Christian Muehlhaeuser
78d7fda9ec
Simplified code a bit 2019-07-19 04:59:32 +02:00
Christian Muehlhaeuser
16b3eaedac
Simplified return and bool check code 2019-07-19 04:54:33 +02:00
Dawid Dziurla
bd16a78b06
Merge branch 'docker-sdk-update' 2019-07-08 14:44:51 +02:00
Dowideit, Sven (O&A, St. Lucia)
cdf075b00d Initial working demo
Signed-off-by: Dowideit, Sven (O&A, St. Lucia) <Sven.Dowideit@csiro.au>
2019-07-08 17:01:15 +10:00
Mark Kopenga
0ca9235220
Merge branch 'master' into f110 2019-07-07 14:33:03 +02:00
mjarkk
30a79faa49
Moved the filtering out of containers to the docker.go file 2019-07-07 14:19:35 +02:00
mjarkk
867459af56
Merge remote-tracking branch 'jesse/master' into fix-git-typo 2019-07-06 22:28:41 +02:00
mjarkk
fddbc7cdf8
Removed some lazygit code 2019-07-06 22:27:52 +02:00
mjarkk
b89b02eee5
Added h key binding 2019-07-06 21:20:21 +02:00
Dawid Dziurla
bb319ddb59
adjust code to newer API 2019-07-05 14:18:44 +02:00
Jesse Duffield
cd95ffce49
Merge pull request #97 from mjarkk/fix-94
Added rounding to timing (fixes #94)
2019-07-05 10:20:06 +10:00
mjarkk
74e8d6eb91
Added rounding to timeing 2019-07-04 21:25:49 +02:00
Jesse Duffield
bb74edab73 improve readability of colours 2019-07-02 20:40:38 +10:00
Derk Vedelaar
a5ff4d595c Repository with port does not show the correct image name 2019-07-02 08:57:04 +02:00
Jesse Duffield
836b814559
Merge pull request #37 from mjarkk/remove-dead-code
Removed some dead code
2019-07-01 20:00:02 +10:00
mjarkk
e3f6f59890
Removed some dead code 2019-07-01 09:56:05 +02:00
haoyun
0fe35ba5c5 fix strings.ReplaceAll() does't exist error while go version bellow 1.12 2019-07-01 14:18:11 +08:00
Jesse Duffield
5169356454 support light themes in terminals 2019-06-30 19:58:46 +10:00
Jesse Duffield
345f02eb11 fix nil pointer exception when trying to kill process 2019-06-30 18:24:59 +10:00
Jesse Duffield
4e86732cf2 support custom commands that filter down to service names 2019-06-29 21:29:35 +10:00
Jesse Duffield
b9bf469695 use one-off label to determine whether a container is bound to a service 2019-06-23 21:15:49 +10:00
Jesse Duffield
8242bd279a show ports at top of container config 2019-06-23 19:39:45 +10:00
Jesse Duffield
83b6cd7e27 rename to RefreshImages 2019-06-23 17:26:55 +10:00
Jesse Duffield
e361a42995 update config docs 2019-06-23 15:34:14 +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
00f05ae012 fixup inspect container struct 2019-06-22 14:29:13 +10:00
Jesse Duffield
5ab4ef6f8c support docker daemon going down randomly 2019-06-16 12:37:47 +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
b02c92da33 support running in non-docker-compose context 2019-06-10 19:29:52 +10:00
Jesse Duffield
87c6208577 add volumes panel 2019-06-10 18:08:23 +10:00
Jesse Duffield
84090bcb94 support viewing docker compose config from status panel 2019-06-09 12:50:17 +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
5d55939719 clean some things up 2019-06-09 10:03:04 +10:00
Jesse Duffield
b65df625f4 much more stuff 2019-06-09 00:08:22 +10:00
Jesse Duffield
3bcef6d88c support custom container names 2019-06-08 21:44:24 +10:00
Jesse Duffield
a27b429807 allow config option to only show standalone containers 2019-06-08 21:09:53 +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
07a01d2511 test 2019-06-07 14:59:31 +10:00
Jesse Duffield
129c9bbe9e type the translations 2019-06-05 22:20:30 +10:00
Jesse Duffield
1b834401ed switch to fork of asciigraph 2019-06-05 21:08:38 +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
113abbf59b remove log 2019-06-03 20:09:26 +10:00