Keep tabs on the corrosion in your docker containers.
Corrator is a command line tool for querying docker containers and requesting version numbers for apps in them.
If you have to maintain lots of containers, each with their own set of applications and dependencies, you may be familiar with how difficult it can be to maintain currency. You don't want to let your dependencies go out of their support life-cycles, but you also don't want to have to update a master list somewhere any time you push an update.
Corrator lets you define a set of containers, each with a list of important dependencies. Running corrator will pull down the container, bash into it, and run a version command on each one. Then it spits out what it finds in minimal form.
For dependencies which happen to be tracked by the excellent endoflife.date service you can optionally ask corrator to look up the current end of life date for the version currently installed and tell you that too.
See the rust docs for this.
You can install corrator straight from crates.io with the following:
sh
cargo install corrator
Assuming you have a valid config file (see below), you can simply run corrator
from the command line.
sh
corrator
For additional options, see corrator --help
.
The heart of corrator is a configuration directory featuring two files:
```toml [bash]
version_command = "bash --version"
version_regex = '''GNU bash, version (?P
[eol]
product_name = "bash"
version_regex = '''.+''' ```
```toml [ubuntu]
path = "ubuntu"
apps = [ "bash" ]
--tag
and --filter
corrator --help
for more detailtags = [ "mytag1", "mytag2" ] ```
Corrator will look for these files in the following locations, in order:
corrator --help
to find this path)-c path_to_directory
There is also an examples
in this repository to get you started.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.