Skip to content

tkawachi/alpine-shellcheck

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Alpine-ShellCheck

Alpine Linux with ShellCheck -- a static analysis tool for shell scripts

Minimalist image size: 22 MB (download size is only 6 MB)

Include:

  • Alpine Linux (5 MB)
  • Shellcheck binary (16 MB)
  • Object dependencies (1 MB)

Build Status

Image builds by Travis CI are automatically pushed to Docker Hub repository: nlknguyen/alpine-shellcheck

See the Docker Hub repository for more information.

Maintainer Notes

2 Dockerfiles

  • builder/Dockerfile is used to build shellcheck from source, which is cloned from shellscheck GitHub repository, and collect executable shellcheck binary and object dependencies into a directory for easy retrieval. When it runs, the binaries will be copied out to the mounted directory.

  • ./Dockerfile is used to build the image that is based on alpine:latest and contains only the neccessary binaries for shellcheck to run. The entry point of the image is shellcheck program, and /mnt is the designated mount point when using this image as a CLI program.

Build steps

From project directory:

docker build -t builder builder/

Then run this. The container will copy the binary and dependencies out to package directory in host machine

docker run --rm -it -v $(pwd):/mnt builder

Once the package directory is available, build the final image:

docker build -t nlknguyen/alpine-shellcheck .

These are essentially the steps that Travis CI carry on before pushing the final image to Docker Hub.

About

Docker image for Alpine Linux with latest ShellCheck, a static analysis tool for shell scripts.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published