koalaman/shellcheck-alpine

By koalaman

Updated about 1 month ago

ShellCheck -- Shell script analysis tool, installed on Alpine Linux

Image
21

10M+

koalaman/shellcheck-alpine repository overview

koalaman/shellcheck-alpine

This is the official Alpine Linux based Docker image for ShellCheck, a static analysis tool for shell scripts.

For a smaller image without a shell and other utilities, check out koalaman/shellcheck.

USAGE

Run the latest git commit from the command line

$ docker run --rm -it -v "$(pwd):/mnt" koalaman/shellcheck-alpine:latest shellcheck --version
ShellCheck - shell script analysis tool
version: v0.10.0-62-g3c75d82
license: GNU General Public License, version 3
website: https://www.shellcheck.net

Use as a base image

You can create your own image based on this one:

FROM koalaman/shellcheck-alpine:stable
MAINTAINER Your Name <[email protected]>
CMD ["sh"]

Or you can copy the statically linked binary into your own arbitrary image:

FROM alpine:latest
COPY --from=koalaman/shellcheck:stable /bin/shellcheck /bin/

Incorporate into your CI workflow

See koalaman/shellcheck for more tips.

Note that shellcheck-alpine runs with sh as its entrypoint, so you will need to include shellcheck in your docker run commands. The following commands are equivalent:

docker run --rm -it koalaman/shellcheck:stable --version
docker run --rm -it koalaman/shellcheck-alpine:stable shellcheck --version

Tag summary

Content type

Image

Digest

sha256:48d22a17b

Size

7.6 MB

Last updated

about 1 month ago

docker pull koalaman/shellcheck-alpine