1.6.6-debian-10-r80 release

This commit is contained in:
Bitnami Bot 2020-08-18 23:59:58 +00:00
parent d669bc2a47
commit a399cae7a4
3 changed files with 31 additions and 11 deletions

View File

@ -20,7 +20,7 @@ RUN ln -s /opt/bitnami/scripts/memcached/run.sh /run.sh
COPY rootfs /
RUN /opt/bitnami/scripts/memcached/postunpack.sh
ENV BITNAMI_APP_NAME="memcached" \
BITNAMI_IMAGE_VERSION="1.6.6-debian-10-r79" \
BITNAMI_IMAGE_VERSION="1.6.6-debian-10-r80" \
PATH="/opt/bitnami/memcached/bin:/opt/bitnami/common/bin:$PATH"
EXPOSE 11211

View File

@ -6,6 +6,7 @@
# Load Generic Libraries
. /opt/bitnami/scripts/libvalidations.sh
. /opt/bitnami/scripts/liblog.sh
# Functions
@ -175,23 +176,42 @@ EOF
########################
# Generate a logrotate configuration file
# Arguments:
# $1 - Log path
# $2 - Period
# $3 - Number of rotations to store
# $4 - Extra options (Optional)
# $1 - Service name
# $2 - Log files pattern
# Flags:
# --period - Period
# --rotations - Number of rotations to store
# --extra - Extra options (Optional)
# Returns:
# None
#########################
generate_logrotate_conf() {
local service_name="${1:?service name is missing}"
local log_path="${2:?log path is missing}"
local period="${3:-weekly}"
local rotations="${4:-150}"
local extra_options="${5:-}"
local period="weekly"
local rotations="150"
local extra=""
local logrotate_conf_dir="/etc/logrotate.d"
local var_name
# Parse optional CLI flags
shift 2
while [[ "$#" -gt 0 ]]; do
case "$1" in
--period|--rotations|--extra)
var_name="$(echo "$1" | sed -e "s/^--//" -e "s/-/_/g")"
shift
declare "$var_name"="${1:?"$var_name" is missing}"
;;
*)
echo "Invalid command line flag ${1}" >&2
return 1
;;
esac
shift
done
mkdir -p "$logrotate_conf_dir"
cat >"${logrotate_conf_dir}/${service_name}" <<EOF
cat <<EOF | sed '/^\s*$/d' >"${logrotate_conf_dir}/${service_name}"
${log_path} {
${period}
rotate ${rotations}
@ -199,7 +219,7 @@ ${log_path} {
compress
copytruncate
missingok
${extra_options}
$(indent "$extra" 2)
}
EOF
}

View File

@ -44,7 +44,7 @@ Non-root container images add an extra layer of security and are generally recom
Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags [in our documentation page](https://docs.bitnami.com/tutorials/understand-rolling-tags-containers/).
* [`1-debian-10`, `1.6.6-debian-10-r79`, `1`, `1.6.6`, `latest` (1/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-memcached/blob/1.6.6-debian-10-r79/1/debian-10/Dockerfile)
* [`1-debian-10`, `1.6.6-debian-10-r80`, `1`, `1.6.6`, `latest` (1/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-memcached/blob/1.6.6-debian-10-r80/1/debian-10/Dockerfile)
Subscribe to project updates by watching the [bitnami/memcached GitHub repo](https://github.com/bitnami/bitnami-docker-memcached).