[bitnami/harbor-exporter] Release 2.7.1-debian-11-r12 (#28765)

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
Bitnami Bot
2023-04-01 13:21:47 +02:00
committed by GitHub
parent fbdf2892ef
commit 013731d4f5
3 changed files with 15 additions and 9 deletions

View File

@@ -3,10 +3,10 @@ FROM docker.io/bitnami/minideb:bullseye
ARG TARGETARCH ARG TARGETARCH
LABEL org.opencontainers.image.base.name="docker.io/bitnami/minideb:bullseye" \ LABEL org.opencontainers.image.base.name="docker.io/bitnami/minideb:bullseye" \
org.opencontainers.image.created="2023-03-27T23:13:57Z" \ org.opencontainers.image.created="2023-04-01T10:57:43Z" \
org.opencontainers.image.description="Application packaged by VMware, Inc" \ org.opencontainers.image.description="Application packaged by VMware, Inc" \
org.opencontainers.image.licenses="Apache-2.0" \ org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.ref.name="2.7.1-debian-11-r11" \ org.opencontainers.image.ref.name="2.7.1-debian-11-r12" \
org.opencontainers.image.title="harbor-exporter" \ org.opencontainers.image.title="harbor-exporter" \
org.opencontainers.image.vendor="VMware, Inc." \ org.opencontainers.image.vendor="VMware, Inc." \
org.opencontainers.image.version="2.7.1" org.opencontainers.image.version="2.7.1"
@@ -22,8 +22,8 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN install_packages ca-certificates curl procps RUN install_packages ca-certificates curl procps
RUN mkdir -p /tmp/bitnami/pkg/cache/ && cd /tmp/bitnami/pkg/cache/ && \ RUN mkdir -p /tmp/bitnami/pkg/cache/ && cd /tmp/bitnami/pkg/cache/ && \
COMPONENTS=( \ COMPONENTS=( \
"harbor-exporter-2.7.1-1-linux-${OS_ARCH}-debian-11" \ "harbor-exporter-2.7.1-2-linux-${OS_ARCH}-debian-11" \
"gosu-1.16.0-3-linux-${OS_ARCH}-debian-11" \ "gosu-1.16.0-5-linux-${OS_ARCH}-debian-11" \
) && \ ) && \
for COMPONENT in "${COMPONENTS[@]}"; do \ for COMPONENT in "${COMPONENTS[@]}"; do \
if [ ! -f "${COMPONENT}.tar.gz" ]; then \ if [ ! -f "${COMPONENT}.tar.gz" ]; then \

View File

@@ -3,12 +3,12 @@
"arch": "amd64", "arch": "amd64",
"distro": "debian-11", "distro": "debian-11",
"type": "NAMI", "type": "NAMI",
"version": "1.16.0-3" "version": "1.16.0-5"
}, },
"harbor-exporter": { "harbor-exporter": {
"arch": "amd64", "arch": "amd64",
"distro": "debian-11", "distro": "debian-11",
"type": "NAMI", "type": "NAMI",
"version": "2.7.1-1" "version": "2.7.1-2"
} }
} }

View File

@@ -279,7 +279,7 @@ remove_logrotate_conf() {
# Flags: # Flags:
# --custom-service-content - Custom content to add to the [service] block # --custom-service-content - Custom content to add to the [service] block
# --environment - Environment variable to define (multiple --environment options may be passed) # --environment - Environment variable to define (multiple --environment options may be passed)
# --environment-file - Text file with environment variables # --environment-file - Text file with environment variables (multiple --environment-file options may be passed)
# --exec-start - Start command (required) # --exec-start - Start command (required)
# --exec-start-pre - Pre-start command (optional) # --exec-start-pre - Pre-start command (optional)
# --exec-start-post - Post-start command (optional) # --exec-start-post - Post-start command (optional)
@@ -330,7 +330,6 @@ generate_systemd_conf() {
| --type \ | --type \
| --user \ | --user \
| --group \ | --group \
| --environment-file \
| --exec-start \ | --exec-start \
| --exec-stop \ | --exec-stop \
| --exec-reload \ | --exec-reload \
@@ -368,6 +367,12 @@ generate_systemd_conf() {
[[ -n "$environment" ]] && environment+=$'\n' [[ -n "$environment" ]] && environment+=$'\n'
environment+="Environment=${1:?"--environment value is missing"}" environment+="Environment=${1:?"--environment value is missing"}"
;; ;;
--environment-file)
shift
# It is possible to add multiple environment-file lines
[[ -n "$environment_file" ]] && environment_file+=$'\n'
environment_file+="EnvironmentFile=${1:?"--environment-file value is missing"}"
;;
*) *)
echo "Invalid command line flag ${1}" >&2 echo "Invalid command line flag ${1}" >&2
return 1 return 1
@@ -435,7 +440,8 @@ EOF
cat >> "$service_file" <<< "$environment" cat >> "$service_file" <<< "$environment"
fi fi
if [[ -n "$environment_file" ]]; then if [[ -n "$environment_file" ]]; then
cat >> "$service_file" <<< "EnvironmentFile=${environment_file}" # This variable may contain multiple EnvironmentFile= directives
cat >> "$service_file" <<< "$environment_file"
fi fi
# Logging # Logging
if [[ -n "$standard_output" ]]; then if [[ -n "$standard_output" ]]; then