-
Notifications
You must be signed in to change notification settings - Fork 325
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Net 9069/add license backport 1.2.x (#3950)
* add missing license file (#3921) * add missing license file * missed copying the license file to workdir * make up missing value and remove redundant directory creation * Net 9069/xw add license file to all bin (#3942) * debug: missing LICENSE * use abs path * use env instead of arg
- Loading branch information
Showing
2 changed files
with
28 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,14 +32,18 @@ ARG CNI_BIN_NAME=consul-cni | |
ARG VERSION | ||
ARG TARGETARCH | ||
ARG TARGETOS | ||
ENV PRODUCT_NAME=$BIN_NAME | ||
|
||
LABEL name=${BIN_NAME} \ | ||
maintainer="Team Consul Kubernetes <[email protected]>" \ | ||
vendor="HashiCorp" \ | ||
version=${VERSION} \ | ||
release=${VERSION} \ | ||
summary="consul-k8s-control-plane provides first-class integrations between Consul and Kubernetes." \ | ||
description="consul-k8s-control-plane provides first-class integrations between Consul and Kubernetes." | ||
description="consul-k8s-control-plane provides first-class integrations between Consul and Kubernetes." \ | ||
org.opencontainers.image.licenses="MPL-2.0" | ||
|
||
COPY LICENSE /usr/share/doc/$PRODUCT_NAME/LICENSE.txt | ||
|
||
# Set ARGs as ENV so that they can be used in ENTRYPOINT/CMD | ||
ENV BIN_NAME=${BIN_NAME} | ||
|
@@ -80,14 +84,18 @@ FROM alpine:3.18 AS release-default | |
ARG BIN_NAME=consul-k8s-control-plane | ||
ARG CNI_BIN_NAME=consul-cni | ||
ARG PRODUCT_VERSION | ||
ENV PRODUCT_NAME=$BIN_NAME | ||
|
||
LABEL name=${BIN_NAME} \ | ||
maintainer="Team Consul Kubernetes <[email protected]>" \ | ||
vendor="HashiCorp" \ | ||
version=${PRODUCT_VERSION} \ | ||
release=${PRODUCT_VERSION} \ | ||
summary="consul-k8s-control-plane provides first-class integrations between Consul and Kubernetes." \ | ||
description="consul-k8s-control-plane provides first-class integrations between Consul and Kubernetes." | ||
description="consul-k8s-control-plane provides first-class integrations between Consul and Kubernetes." \ | ||
org.opencontainers.image.licenses="MPL-2.0" | ||
|
||
COPY LICENSE /usr/share/doc/$PRODUCT_NAME/LICENSE.txt | ||
|
||
# Set ARGs as ENV so that they can be used in ENTRYPOINT/CMD | ||
ENV BIN_NAME=${BIN_NAME} | ||
|
@@ -141,16 +149,18 @@ ARG VERSION | |
# and the version to download. Example: PRODUCT_NAME=consul PRODUCT_VERSION=1.2.3. | ||
ENV BIN_NAME=$BIN_NAME | ||
ENV PRODUCT_VERSION=$PRODUCT_VERSION | ||
|
||
ARG PRODUCT_NAME=$BIN_NAME | ||
ENV PRODUCT_NAME=$BIN_NAME | ||
|
||
LABEL name=$PRODUCT_NAME \ | ||
maintainer="Team Consul Kubernetes <[email protected]>" \ | ||
vendor="HashiCorp" \ | ||
version=$PRODUCT_VERSION \ | ||
release=$PRODUCT_VERSION \ | ||
summary="consul-k8s-control-plane provides first-class integrations between Consul and Kubernetes." \ | ||
description="consul-k8s-control-plane provides first-class integrations between Consul and Kubernetes." | ||
description="consul-k8s-control-plane provides first-class integrations between Consul and Kubernetes." \ | ||
org.opencontainers.image.licenses="MPL-2.0" | ||
|
||
COPY LICENSE /usr/share/doc/$PRODUCT_NAME/LICENSE.txt | ||
|
||
# Set ARGs as ENV so that they can be used in ENTRYPOINT/CMD | ||
ENV NAME=${BIN_NAME} | ||
|