Identify the latest DD-DeCaF tag on a particular Docker image.
Project description
Identify the latest DD-DeCaF tag on a particular Docker image.
The package was designed to only depend on the standard library in order to not have any fast moving dependencies. It depends on Python 3.7+ for fromisoformat date parsing.
Usage
The main purpose of this package is to provide a command line interface (CLI) for retrieving the latest of all of a Docker image’s tags. The DD-DeCaF organization uses a particular tag format in order to manage dependencies between Docker images. Take dddecaf/wsgi-base:alpine_2020-04-28_24fe0a0 as an example, it consists of the base tag alpine, the date when it was built, and the short hash of the git commit from which the image was generated. The corresponding “latest” image is dddecaf/wsgi-base:alpine, however, child images should depend on the explicit tag. In order to manage this more easily, this package provides a script for retrieving the correct information. Sometimes, multiple images exist for the same date which is why the label for the exact build timestamp is required. The following command
tag-spy dddecaf/wsgi-base alpine dk.dtu.biosustain.wsgi-base.alpine.build.timestamp
may result in something like
alpine_2020-04-28_24fe0a0
For more information, also check out the help.
tag-spy --help
Install
It’s as simple as:
pip install tag-spy
Copyright
Copyright © 2020, DD-DeCaF.
Free software distributed under the Apache Software License 2.0.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file tag-spy-0.5.0.tar.gz
.
File metadata
- Download URL: tag-spy-0.5.0.tar.gz
- Upload date:
- Size: 30.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2922c84907ff24ce7c24f1810dbdbd60dcb195a0adbd9bc6e68c6fb16f7edb0c |
|
MD5 | b648eeacee61fe88433d15a35371702a |
|
BLAKE2b-256 | 29c399ea44bb2362967660a360d7b6686aa695c930ed37a2c8293038e8e10037 |
File details
Details for the file tag_spy-0.5.0-py2.py3-none-any.whl
.
File metadata
- Download URL: tag_spy-0.5.0-py2.py3-none-any.whl
- Upload date:
- Size: 20.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d463a485126714272e058269323ab3416eb3ed1966a54b88b2101f90ec52c04 |
|
MD5 | 753235541efea9678bceef58aed4ca10 |
|
BLAKE2b-256 | 0371253c734bd1036533c9aea96ccfa515c3045526d6b548205bcf0194f490fe |