Go to file
Clemens Klug 9f0e6aa237 improve readme, add gitignore 2019-03-28 12:31:43 +01:00
sample add docker-compose parser 2018-07-23 14:27:09 +02:00
.gitignore improve readme, add gitignore 2019-03-28 12:31:43 +01:00
.gitmodules add docker-compose parser 2018-07-23 14:27:09 +02:00
Dockerfile add missing libs 2018-08-06 12:44:52 +02:00
docker-compose.yml prod fixes 2019-03-27 18:48:38 +01:00
docker_compose.py prod fixes 2019-03-27 18:48:38 +01:00
image_tags.py fix wrong argument 2018-08-06 14:10:49 +02:00
readme.md improve readme, add gitignore 2019-03-28 12:31:43 +01:00
requirements.txt use packaging.version to compare version and list possible updates for images 2018-07-24 18:24:48 +02:00
show_updateable.py Merge branch 'master' of ssh://git.wiai.de:22222/cklug/docker-update 2019-03-28 12:01:15 +01:00

readme.md

Docker Update

Try to show updates for your used docker images.

Requirements

  • Docker
  • docker-compose
  • Libraries: requirements.txt (pip3 install -r requirements.txt or docker ;))

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.

If the compose file contains a build-section, the Dockerfile is inspected, too.

Usage

Docker

Modify mount of services directory. Mount your directory as /services.

docker-compose up

Output file: updates.json

Command line

$ python3 show_updateable.py -h
usage: show_updateable.py [-h] [--output OUTPUT]
                          [--ignore IGNORE [IGNORE ...]] [--match-suffix]
                          compose_files [compose_files ...]
  • output: json file for results
  • ignore: ignore services (ignore is substring of service path)
  • match-suffix: use only same suffixes in image labels (e.g. only -alpine images)
  • compose files: service directories: see #example (multiple paths allowed)

Advantages

  • No access to Docker-Socket
  • No deamon
  • No state
  • Detect new major versions
  • Report only, no uncontrolled automated actions
  • tbc ...

Alternatives

Known Issues

  • Still WiP/PoC
  • http/https sources are not implemented yet
  • some images have … weird tags
  • pull requests welcome