OT-BUILDPIPER-MARKETPLACE / BP-DOCKER-LINTER-STEP

A BP step to perform linting of Dockerfile

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BP-DOCKER-LINTER-STEP

A BP step to do static analysis of Dockerfile, behind the scene it leverages Hadolint

Setup

git submodule init
git submodule update
docker build -t ot/docker_linter:0.1 .
  • Do local testing

Debugging

docker run -it --rm -v $PWD:/src -e WORKSPACE=/ -e CODEBASE_DIR=src --entrypoint sh ot/docker_linter:0.1

If you want to use the ot_docker_linter image directly

docker run -it --rm -v $PWD:/src -e WORKSPACE=/ -e CODEBASE_DIR=src ot/docker_linter:0.1

References

About

A BP step to perform linting of Dockerfile

License:Apache License 2.0


Languages

Language:Shell 78.1%Language:Dockerfile 21.9%