HUB
Sign inSign up
shellcheck logo

caarlos0/shellcheck

By caarlos0

•Updated over 9 years ago

Docker image containing shellcheck. http://www.shellcheck.net/

Image
0

4.7K

caarlos0/shellcheck repository overview

⁠shellcheck-docker

Generating an updated shellcheck binary for ubuntu from a Docker container, battle-tested on caarlos0/shell-ci-build⁠.

⁠How to

⁠Check your scripts
$ docker run \
  -v /folder/with/my/scripts:/tmp \
  -t caarlos0/shellcheck \
  sh -c 'shellcheck /tmp/*.sh'
⁠Copy the binary to outside

So you can use in it any ubuntu machine, travis machines, for example, as I do in caarlos0/shell-ci-build⁠.

$ docker run \
  -v `pwd`:/tmp \
  -t caarlos0/shellcheck \
  cp -f /usr/bin/shellcheck /tmp/
⁠Build

Not really needed unless you change something, as this repo is an automated Docker hub build.

$ docker build -t caarlos0/shellcheck .
Tag summary
Recent tags
Content type
Image
Digest
Size
231.9 MB
Last updated
over 9 years ago
docker pull caarlos0/shellcheck:latest