From ba15313a9e64b333dfdb5b1cf946a71bd3eccbf5 Mon Sep 17 00:00:00 2001 From: FSWIAI Docker Server Date: Mon, 6 Aug 2018 12:45:21 +0200 Subject: [PATCH 1/3] merge --- docker-compose.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index b93feaa..4b96198 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,6 +4,6 @@ services: image: docker.clkl.de/docker/update:0.1_alpine build: . volumes: - - ./docker-compose.py:/docker-compose.py - - ./sample:/services - command: bash -c 'python3 /docker_compose.py /services/*' \ No newline at end of file + - /opt/docker/services:/services + - ./:/out/ + command: bash -c 'python3 /out/show_updateable.py -o /out/updates.json /services/* --ignore zammad' From 3dd83d0ccf89641dcde5590f90b3a25654ab7430 Mon Sep 17 00:00:00 2001 From: FSWIAI Docker Server Date: Wed, 27 Mar 2019 18:48:38 +0100 Subject: [PATCH 2/3] prod fixes --- docker-compose.yml | 2 +- docker_compose.py | 4 ++-- show_updateable.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 4b96198..1924db8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,4 +6,4 @@ services: volumes: - /opt/docker/services:/services - ./:/out/ - command: bash -c 'python3 /out/show_updateable.py -o /out/updates.json /services/* --ignore zammad' + command: bash -c 'python3 /out/show_updateable.py -s -o /out/updates.json /services/* --ignore zammad' diff --git a/docker_compose.py b/docker_compose.py index cfe9301..0afcf8c 100644 --- a/docker_compose.py +++ b/docker_compose.py @@ -129,7 +129,7 @@ def args_setup(description): parser.add_argument("compose_files", nargs="+") parser.add_argument("--output", "-o") parser.add_argument("--ignore", "-i", nargs="+", default=False) - parser.add_argument("--match-suffix", "-s", action="store_false") + parser.add_argument("--match-suffix", "-s", action="store_true") return parser if __name__ == "__main__": @@ -142,4 +142,4 @@ if __name__ == "__main__": with open(args.output, "w") as out: json.dump(overview, out, indent=1, sort_keys=True) else: - print(json.dumps(overview, indent=1)) \ No newline at end of file + print(json.dumps(overview, indent=1)) diff --git a/show_updateable.py b/show_updateable.py index 278e3cc..5e3221a 100644 --- a/show_updateable.py +++ b/show_updateable.py @@ -52,5 +52,5 @@ def main(args): if __name__=="__main__": parser = docker_compose.args_setup("Show updates for docker-compose style services") args = parser.parse_args() + print(args) main(args) - \ No newline at end of file From f98fb5125264d0c097fd5782c3443095654ed445 Mon Sep 17 00:00:00 2001 From: Michael Traeger Date: Wed, 27 Mar 2019 19:40:08 +0100 Subject: [PATCH 3/3] add readme --- readme.md | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 readme.md diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..297536b --- /dev/null +++ b/readme.md @@ -0,0 +1,58 @@ +Docker Update +============= + +Try to show updates for your used docker images. + + +Requirements +------------ + +TODO + +You need a directory containing your service directories. These services must have a docker-compose.yml to get checked. + +Example: +``` +└── services + ├── bitpoll.wiai.de + │   ├── docker + │   ├── docker-compose.yml + ├── dockerui + │   ├── docker-compose.yml + └── zitate + └── docker-compose.yml +``` + +If there are files or directories without a docker-compse.yml, it will just notify you and ignore it. + + + +Usage +---- + +Modify mount of services directory. Mount your directory as `/services`. + +``` +docker-compose up +``` + +Output file: `updates.json` + + +Advantages +---------- + +* No access to Docker-Socket +* tbc ... + + +Alternatives +------------ + +* https://github.com/v2tec/watchtower +* https://engineering.salesforce.com/open-sourcing-dockerfile-image-update-6400121c1a +* https://stackoverflow.com/questions/26423515/how-to-automatically-update-your-docker-containers-if-base-images-are-updated +* tbc ... + + +