Skip to content

Latest commit

 

History

History
66 lines (45 loc) · 1.13 KB

CONTRIBUTING.md

File metadata and controls

66 lines (45 loc) · 1.13 KB

Contributing to SocialGouv/docker

DevExp

We use nodejs tools to help developing, testing the images.

install

yarn

build

one image

yarn workspace <package> build

all images

yarn build

test

you must build image before running tests on it

one image

yarn workspace <package> test

all images

yarn workspace test

Create a new image

  1. Create a folder with the image name (example: foo)
$ mkdir foo
  1. Add a README.md
    Ensure to add a documentation right from the start with a README.md.
    You can follow the wait-for-postgres/README.md as model.
  2. Add the image to the table in the root README.md.
    Keep alpha sorted plz ;)
  3. Add bats integration test
    Additional config and binaries can be tested with bats files in the tests folder

Test

Lint Dockerfiles

$ docker run --rm -i ghcr.io/hadolint/hadolint < ./<image>/Dockerfile
# example
$ docker run --rm -i ghcr.io/hadolint/hadolint < ./helm/Dockerfile