A shellcheck with a directory as parameter instead of the filenames for use in CI
499
This is a small container image that contains shellcheck with a customized shellcheck-dir.sh script. With this script you can give a directoryname instead of every individual file to the shellscript command. This container is very usefull for automatic testing during CI.
docker run --rm -v /path/to/shell/code:/code hdcore/docker-shellcheck:<version> shellcheck-dir.sh <directory> [<extra-shellcheck-arguments>]
docker run -it --rm -v /path/to/shell/code:/code hdcore/docker-shellcheck:<version> /bin/sh
image: hdcore/docker-shellcheck:<version>
script: shellcheck-dir.sh <directory> [<extra-shellcheck-arguments>]
Except for the of the <directory> argument (which must exist), all other arguments are documented on https://github.com/koalaman/shellcheck
The image is stored on multiple container registries at dockerhub and gitlab:
Build:
docker build -f <version>/Dockerfile -t docker-shellcheck:<version> .
Content type
Image
Digest
sha256:df0e7dc52…
Size
12.7 MB
Last updated
about 1 year ago
docker pull hdcore/docker-shellcheck:stable