PiGallery2 Docker Contribution Guide
Remember to update all the Dockerfiles.
Linting
To quality check your Dockerfile changes, you can use hadolint:
- Start the Docker daemon if it's not already started:
sudo dockerd - Change directory to the
docker/folder. - Run hadolint on the Dockerfiles:
docker run --rm -i -v ./.config/hadolint.yml:/.config/hadolint.yaml hadolint/hadolint < ./alpine/Dockerfile.build docker run --rm -i -v ./.config/hadolint.yml:/.config/hadolint.yaml hadolint/hadolint < ./debian-trixie/Dockerfile.build docker run --rm -i -v ./.config/hadolint.yml:/.config/hadolint.yaml hadolint/hadolint < ./debian-trixie/selfcontained/Dockerfile
Fix errors and warnings or add them to the ignore list of the hadolint configuration file if there is a good reason for that. Read more here.
Building the docker image locally (Docs are as-it-is, no further support provided for this)
Get the latest release from github (the source code is not enough, it needs to be built and packed, you can do that fropm source with npm run create-release)