Sign inSign up

backplane/compose_sort

By backplane

Updated about 15 hours ago

alpine:edge-based dockerization of compose_sort, a CLI utility for sorting docker-compose files

Image
0

10K+

backplane/compose_sort repository overview

compose_sort

alpine:edge-based dockerization of compose_sort, a CLI utility for sorting docker-compose files

The utility works best when the input comes in the normalized format produced by the docker-compose config command.

The source code for this image is hosted on GitHub in the backplane/conex repo.

Usage

usage: compose_sort [-h] [input_file]

command-line utility for sorting docker-compose.yml files

positional arguments:
  input_file  the file to sort, if not specified STDIN will be used

optional arguments:
  -h, --help  show this help message and exit
Interactive

The following one-liner invocation can be used to quickly print a sorted resolved version of a docker composition:

docker-compose config --resolve-image-digests | docker run --rm -i backplane/compose_sort

The following shell function can also assist in running this image interactively:


compose_sort() {
  docker run \
    --rm \
    --interactive \
    --volume "$(pwd):/work" \
    "backplane/compose_sort" \
    "$@"
}

Tag summary

Content type

Image

Digest

sha256:7b03c7fca

Size

19.5 MB

Last updated

about 15 hours ago

docker pull backplane/compose_sort