10000 GitHub - MeneDev/dockmoor at v0.0.1
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

MeneDev/dockmoor

Repository files navigation

dockmoor

Build Status (Circle CI) Coveralls statement coverage Follow @MeneDev on Twitter

Manage docker image references.

Examples

contains command

Use unix find to list all supported files

find some-folder/ -type f -exec dockmoor contains --any {} \; -print

stdout:

some-folder/Dockerfile-nginx-latest
some-folder/subfolder/Dockerfile-nginx-latest

stderr is empty
exit code: 0

Test the format of a file

The contains command returns with exit code 0 when an image reference was found that matches. Using the --any predicate allows to match any file with a supported format that contains at least one image reference.

dockmoor contains --any some-folder/Dockerfile-nginx-latest

stdout is empty
stderr is empty
exit code: 0

dockmoor contains --any some-folder/NotADockerfile

stdout is empty
stderr is empty
exit code: 4

Supported Formats

  • Dockerfile (as used by docker build)

Usage

dockmoor [OPTIONS] <contains> [command-OPTIONS]

Application Options

-l, --log-level Sets the log-level (one of NONE, ERROR, WARN, INFO, DEBUG)

--version Show version and exit

--manpage Show man page and exit

--markdown Show usage as markdown and exit

--asciidoc-usage Show usage as asciidoc and exit

Help Options

-h, --help Show this help message

Commands

contains command

dockmoor [OPTIONS] contains [contains-OPTIONS] InputFile

Returns exit code 0 when the given input contains at least one image reference that satisfy the given conditions, non-null otherwise

Predicates

Specify which kind of image references should be selected. Exactly one must be specified

--any Matches all images

Help Options

-h, --help Show this help message

About

Manage docker image references

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  
0