Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ annotations as defined by the [OCI Image Format Specification](https://github.co
| `org.opencontainers.image.title` | Human-readable image title |
| `org.opencontainers.image.description` | Image description |
| `org.opencontainers.image.source` | Source repository URL |
| `org.opencontainers.image.licenses` | License identifier (Apache-2.0) |
| `org.opencontainers.image.licenses` | License identifier |

You can inspect these labels using container tools:

Expand Down
4 changes: 2 additions & 2 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ target "default" {
"index,manifest:org.opencontainers.image.description=A ${metadata.name} ${getExtensionVersion(distro, pgVersion)} container image for PostgreSQL ${pgVersion} on ${distro}",
"index,manifest:org.opencontainers.image.documentation=${url}",
"index,manifest:org.opencontainers.image.authors=${authors}",
"index,manifest:org.opencontainers.image.licenses=Apache-2.0",
"index,manifest:org.opencontainers.image.licenses=${join(" AND ", metadata.licenses)}",
"index,manifest:org.opencontainers.image.base.name=scratch",
"index,manifest:io.cloudnativepg.image.base.name=${getBaseImage(distro, pgVersion)}",
"index,manifest:io.cloudnativepg.image.base.pgmajor=${pgVersion}",
Expand All @@ -91,7 +91,7 @@ target "default" {
"org.opencontainers.image.description" = "A ${metadata.name} ${getExtensionVersion(distro, pgVersion)} container image for PostgreSQL ${pgVersion} on ${distro}",
"org.opencontainers.image.documentation" = "${url}",
"org.opencontainers.image.authors" = "${authors}",
"org.opencontainers.image.licenses" = "Apache-2.0",
"org.opencontainers.image.licenses" = "${join(" AND ", metadata.licenses)}",
"org.opencontainers.image.base.name" = "scratch",
"io.cloudnativepg.image.base.name" = "${getBaseImage(distro, pgVersion)}",
"io.cloudnativepg.image.base.pgmajor" = "${pgVersion}",
Expand Down
1 change: 1 addition & 0 deletions pgaudit/metadata.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ metadata = {
name = "pgaudit"
sql_name = "pgaudit"
image_name = "pgaudit"
licenses = ["PostgreSQL"]
shared_preload_libraries = ["pgaudit"]
extension_control_path = []
dynamic_library_path = []
Expand Down
1 change: 1 addition & 0 deletions pgvector/metadata.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ metadata = {
name = "pgvector"
sql_name = "vector"
image_name = "pgvector"
licenses = ["PostgreSQL"]
shared_preload_libraries = []
extension_control_path = []
dynamic_library_path = []
Expand Down
8 changes: 8 additions & 0 deletions postgis/metadata.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ metadata = {
name = "postgis"
sql_name = "postgis"
image_name = "postgis-extension"
licenses = [ "Apache-2.0", "blessing", "BSD-2-Clause", "BSD-3-Clause",
"BSD-3-Clause-Clear", "BSD-3-Clause-LBNL", "BSD-4-Clause-UC",
"BSL-1.0", "CC-BY-3.0", "CC-BY-4.0", "CC-BY-SA-3.0", "curl",
"FTL", "GPL-2.0-or-later", "GPL-3.0-or-later", "HDF5", "HPND-sell-variant",
"IJG", "Info-ZIP", "ISC", "LGPL-2.1-or-later", "Libpng", "libtiff",
"MIT", "MIT-Modern-Variant", "MPL-1.1", "OLDAP-2.8",
"PostgreSQL", "Spencer-86", "SPL-1.0", "Unicode-DFS-2015",
"Unlicense", "X11", "Zlib" ]
shared_preload_libraries = []
extension_control_path = []
dynamic_library_path = []
Expand Down
10 changes: 10 additions & 0 deletions templates/metadata.hcl.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ metadata = {
# it identifies the image (e.g. ghcr.io/cloudnative-pg/<image_name>)
image_name = "{{ .Name }}"

# TODO: Remove this comment block after customizing the file.
# `licenses`: A list of SPDX identifiers representing the software's licenses.
# Formatting Rules:
# - Must be a list of strings: ["MIT", "Apache-2.0"]
# - Use SPDX IDs exactly as they appear at https://spdx.org/licenses/
# - These are automatically joined with " AND " to populate the OCI label
# org.opencontainers.image.licenses
# Examples: "Apache-2.0", "PostgreSQL", "MIT".
licenses = ["Apache-2.0"]

# TODO: Remove this comment block after customizing the file.
# `shared_preload_libraries`: list libraries to be added to
# `shared_preload_libraries` in Postgres. Usually empty.
Expand Down
Loading