We use nodejs tools to help developing, testing the images.
yarn
yarn workspace <package> build
yarn build
you must build image before running tests on it
yarn workspace <package> test
yarn workspace test
- Create a folder with the image name (example: foo)
$ mkdir foo
- Add a
README.md
Ensure to add a documentation right from the start with aREADME.md
.
You can follow thewait-for-postgres/README.md
as model. - Add the image to the table in the root
README.md
.
Keep alpha sorted plz ;) - Add bats integration test
Additional config and binaries can be tested with bats files in thetests
folder
$ docker run --rm -i ghcr.io/hadolint/hadolint < ./<image>/Dockerfile
# example
$ docker run --rm -i ghcr.io/hadolint/hadolint < ./helm/Dockerfile