add LICENSE to release artifacts (#20345)

* add LICENSE(.txt) to zip that goes on releases.hashicorp.com
* add LICENSE(.txt) to linux packages and docker image
* add some more docker labels (including license)
This commit is contained in:
Daniel Bennett
2024-04-12 10:57:15 -05:00
committed by GitHub
parent d40e23f939
commit bd802e43d0
3 changed files with 27 additions and 4 deletions

View File

@@ -11,9 +11,22 @@ ARG PRODUCT_REVISION
# TARGETARCH and TARGETOS are set automatically when --platform is provided.
ARG TARGETOS TARGETARCH
LABEL maintainer="Nomad Team <nomad@hashicorp.com>"
LABEL version=${PRODUCT_VERSION}
LABEL revision=${PRODUCT_REVISION}
LABEL maintainer="Nomad Team <nomad@hashicorp.com>" \
version=${PRODUCT_VERSION} \
revision=${PRODUCT_REVISION} \
org.opencontainers.image.title="nomad" \
org.opencontainers.image.description="Nomad is a lightweight and flexible orchestrator for heterogenous workloads" \
org.opencontainers.image.authors="Nomad Team <nomad@hashicorp.com>" \
org.opencontainers.image.url="https://www.nomadproject.io/" \
org.opencontainers.image.documentation="https://www.nomadproject.io/docs" \
org.opencontainers.image.source="https://github.com/hashicorp/nomad" \
org.opencontainers.image.version=${PRODUCT_VERSION} \
org.opencontainers.image.revision=${PRODUCT_REVISION} \
org.opencontainers.image.vendor="HashiCorp" \
org.opencontainers.image.licenses="BUSL-1.1"
RUN mkdir -p /usr/share/doc/nomad
COPY LICENSE /usr/share/doc/nomad/LICENSE.txt
COPY dist/$TARGETOS/$TARGETARCH/nomad /bin/
COPY ./scripts/docker-entrypoint.sh /