Docker¶
Abstract
A guide on how we work with Docker.
Dependencies¶
Dockerfiles¶
We use Hadolint for linting our Dockerfiles.
Please make sure that you have it installed and configured for your Editor.
If you prefer you can also use it as a container image.
Note
We use Hadolint with one configuration setting, we ignore package pinning, code: DL3018.
If you use Docker you run it like this:
docker run --rm -i hadolint/hadolint hadolint --ignore DL3018 - < dockerfiles/Dockerfile
Entryoint Scripts¶
We use ShellCheck to check and validate our entrypoint.sh scripts.
Example:
docker run -v docker run -v `pwd`/dockerfiles:/mnt koalaman/shellcheck entrypoint.sh
Please see the official docs for more info on installation and setup.