[bitnami/matomo] Release 4.13.3-debian-11-r11 (#26333)
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
parent
40b52ee9fd
commit
1fd78bb0bc
|
|
@ -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-01T23:54:58Z" \
|
org.opencontainers.image.created="2023-03-05T00:37:02Z" \
|
||||||
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="4.13.3-debian-11-r10" \
|
org.opencontainers.image.ref.name="4.13.3-debian-11-r11" \
|
||||||
org.opencontainers.image.title="matomo" \
|
org.opencontainers.image.title="matomo" \
|
||||||
org.opencontainers.image.vendor="VMware, Inc." \
|
org.opencontainers.image.vendor="VMware, Inc." \
|
||||||
org.opencontainers.image.version="4.13.3"
|
org.opencontainers.image.version="4.13.3"
|
||||||
|
|
|
||||||
|
|
@ -277,16 +277,21 @@ remove_logrotate_conf() {
|
||||||
# Arguments:
|
# Arguments:
|
||||||
# $1 - Service name
|
# $1 - Service name
|
||||||
# Flags:
|
# Flags:
|
||||||
|
# --custom-service-content - Custom content to add to the [service] block
|
||||||
|
# --environment - Environment variable to define (multiple --environment options may be passed)
|
||||||
|
# --environment-file - Text file with environment variables
|
||||||
# --exec-start - Start command (required)
|
# --exec-start - Start command (required)
|
||||||
# --exec-stop - Stop command (optional)
|
# --exec-stop - Stop command (optional)
|
||||||
# --exec-reload - Reload command (optional)
|
# --exec-reload - Reload command (optional)
|
||||||
|
# --group - System group to start the service with
|
||||||
# --name - Service full name (e.g. Apache HTTP Server, defaults to $1)
|
# --name - Service full name (e.g. Apache HTTP Server, defaults to $1)
|
||||||
# --restart - When to restart the Systemd service after being stopped (defaults to always)
|
# --restart - When to restart the Systemd service after being stopped (defaults to always)
|
||||||
# --pid-file - Service PID file (required when --restart is set to always)
|
# --pid-file - Service PID file
|
||||||
|
# --standard-output - File where to print stdout output
|
||||||
|
# --standard-error - File where to print stderr output
|
||||||
|
# --success-exit-status - Exit code that indicates a successful shutdown
|
||||||
# --type - Systemd unit type (defaults to forking)
|
# --type - Systemd unit type (defaults to forking)
|
||||||
# --user - System user to start the service with
|
# --user - System user to start the service with
|
||||||
# --group - System group to start the service with
|
|
||||||
# --environment - Environment variable to define (multiple --environment options may be passed)
|
|
||||||
# Returns:
|
# Returns:
|
||||||
# None
|
# None
|
||||||
#########################
|
#########################
|
||||||
|
|
@ -300,6 +305,7 @@ generate_systemd_conf() {
|
||||||
local user=""
|
local user=""
|
||||||
local group=""
|
local group=""
|
||||||
local environment=""
|
local environment=""
|
||||||
|
local environment_file=""
|
||||||
local exec_start=""
|
local exec_start=""
|
||||||
local exec_stop=""
|
local exec_stop=""
|
||||||
local exec_reload=""
|
local exec_reload=""
|
||||||
|
|
@ -307,6 +313,9 @@ generate_systemd_conf() {
|
||||||
local pid_file=""
|
local pid_file=""
|
||||||
local standard_output="journal"
|
local standard_output="journal"
|
||||||
local standard_error=""
|
local standard_error=""
|
||||||
|
local limits_content=""
|
||||||
|
local success_exit_status=""
|
||||||
|
local custom_service_content=""
|
||||||
# Parse CLI flags
|
# Parse CLI flags
|
||||||
shift
|
shift
|
||||||
while [[ "$#" -gt 0 ]]; do
|
while [[ "$#" -gt 0 ]]; do
|
||||||
|
|
@ -315,6 +324,7 @@ generate_systemd_conf() {
|
||||||
| --type \
|
| --type \
|
||||||
| --user \
|
| --user \
|
||||||
| --group \
|
| --group \
|
||||||
|
| --environment-file \
|
||||||
| --exec-start \
|
| --exec-start \
|
||||||
| --exec-stop \
|
| --exec-stop \
|
||||||
| --exec-reload \
|
| --exec-reload \
|
||||||
|
|
@ -322,10 +332,18 @@ generate_systemd_conf() {
|
||||||
| --pid-file \
|
| --pid-file \
|
||||||
| --standard-output \
|
| --standard-output \
|
||||||
| --standard-error \
|
| --standard-error \
|
||||||
|
| --success-exit-status \
|
||||||
|
| --custom-service-content \
|
||||||
)
|
)
|
||||||
var_name="$(echo "$1" | sed -e "s/^--//" -e "s/-/_/g")"
|
var_name="$(echo "$1" | sed -e "s/^--//" -e "s/-/_/g")"
|
||||||
shift
|
shift
|
||||||
declare "$var_name"="${1:?"$var_name" is missing}"
|
declare "$var_name"="${1:?"${var_name} value is missing"}"
|
||||||
|
;;
|
||||||
|
--limit-*)
|
||||||
|
[[ -n "$limits_content" ]] && limits_content+=$'\n'
|
||||||
|
var_name="${1//--limit-}"
|
||||||
|
shift
|
||||||
|
limits_content+="Limit${var_name^^}=${1:?"--limit-${var_name} value is missing"}"
|
||||||
;;
|
;;
|
||||||
--environment)
|
--environment)
|
||||||
shift
|
shift
|
||||||
|
|
@ -346,10 +364,6 @@ generate_systemd_conf() {
|
||||||
error "The --exec-start option is required"
|
error "The --exec-start option is required"
|
||||||
error="yes"
|
error="yes"
|
||||||
fi
|
fi
|
||||||
if [[ "$restart" = "always" && -z "$pid_file" ]]; then
|
|
||||||
error "The --restart option cannot be set to 'always' if --pid-file is not set"
|
|
||||||
error="yes"
|
|
||||||
fi
|
|
||||||
if [[ "$error" != "no" ]]; then
|
if [[ "$error" != "no" ]]; then
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
@ -382,10 +396,16 @@ EOF
|
||||||
if [[ -n "$pid_file" ]]; then
|
if [[ -n "$pid_file" ]]; then
|
||||||
cat >> "$service_file" <<< "PIDFile=${pid_file}"
|
cat >> "$service_file" <<< "PIDFile=${pid_file}"
|
||||||
fi
|
fi
|
||||||
|
if [[ -n "$restart" ]]; then
|
||||||
|
cat >> "$service_file" <<< "Restart=${restart}"
|
||||||
|
fi
|
||||||
# Environment flags (may be specified multiple times in a unit)
|
# Environment flags (may be specified multiple times in a unit)
|
||||||
if [[ -n "$environment" ]]; then
|
if [[ -n "$environment" ]]; then
|
||||||
cat >> "$service_file" <<< "$environment"
|
cat >> "$service_file" <<< "$environment"
|
||||||
fi
|
fi
|
||||||
|
if [[ -n "$environment_file" ]]; then
|
||||||
|
cat >> "$service_file" <<< "EnvironmentFile=${environment_file}"
|
||||||
|
fi
|
||||||
# Logging
|
# Logging
|
||||||
if [[ -n "$standard_output" ]]; then
|
if [[ -n "$standard_output" ]]; then
|
||||||
cat >> "$service_file" <<< "StandardOutput=${standard_output}"
|
cat >> "$service_file" <<< "StandardOutput=${standard_output}"
|
||||||
|
|
@ -393,14 +413,28 @@ EOF
|
||||||
if [[ -n "$standard_error" ]]; then
|
if [[ -n "$standard_error" ]]; then
|
||||||
cat >> "$service_file" <<< "StandardError=${standard_error}"
|
cat >> "$service_file" <<< "StandardError=${standard_error}"
|
||||||
fi
|
fi
|
||||||
|
if [[ -n "$custom_service_content" ]]; then
|
||||||
|
cat >> "$service_file" <<< "$custom_service_content"
|
||||||
|
fi
|
||||||
|
if [[ -n "$success_exit_status" ]]; then
|
||||||
|
cat >> "$service_file" <<EOF
|
||||||
|
# When the process receives a SIGTERM signal, it exits with code ${success_exit_status}
|
||||||
|
SuccessExitStatus=${success_exit_status}
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
cat >> "$service_file" <<EOF
|
cat >> "$service_file" <<EOF
|
||||||
Restart=${restart}
|
|
||||||
# Optimizations
|
# Optimizations
|
||||||
TimeoutSec=5min
|
TimeoutSec=5min
|
||||||
IgnoreSIGPIPE=no
|
IgnoreSIGPIPE=no
|
||||||
KillMode=mixed
|
KillMode=mixed
|
||||||
|
EOF
|
||||||
|
if [[ -n "$limits_content" ]]; then
|
||||||
|
cat >> "$service_file" <<EOF
|
||||||
# Limits
|
# Limits
|
||||||
LimitNOFILE=infinity
|
${limits_content}
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
cat >> "$service_file" <<EOF
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
# Enabling/disabling the main bitnami service should cause the same effect for this service
|
# Enabling/disabling the main bitnami service should cause the same effect for this service
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue