Skip to content

Add LICENSE and NOTICE to container image - #1380

Open
locker95 wants to merge 1 commit into
prometheus-community:masterfrom
locker95:add-license-notice-to-image
Open

Add LICENSE and NOTICE to container image#1380
locker95 wants to merge 1 commit into
prometheus-community:masterfrom
locker95:add-license-notice-to-image

Conversation

@locker95

@locker95 locker95 commented Sep 1, 2026

Copy link
Copy Markdown

The container images published for postgres_exporter only contain the binary, so anyone redistributing the image has no copy of the Apache-2.0 license text or the NOTICE file, even though .promu.yml already ships both in the release tarballs. This was reported in #1206, where SuperQ noted it's "Probably worth adding a COPY to the Dockerfile."

This adds COPY LICENSE /LICENSE and COPY NOTICE /NOTICE to the Dockerfile, following the same convention as the prometheus/prometheus Dockerfile. Both files live at the repo root, which is the docker build context (DOCKERBUILD_CONTEXT ?= ./), and neither is excluded by .dockerignore, so no other changes are needed.

Fixes #1206

Copy LICENSE and NOTICE into the Docker image, matching what the
release tarballs already ship and the prometheus/prometheus Dockerfile
convention.

Fixes prometheus-community#1206

Signed-off-by: Dean Chen <862469039@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LICENSE, NOTICE missing from image builds

1 participant