mirror of
https://github.com/bitnami/containers.git
synced 2026-03-15 14:58:17 +08:00
1.6.14-debian-10-r18 release
This commit is contained in:
@@ -20,7 +20,7 @@ RUN ln -s /opt/bitnami/scripts/memcached/run.sh /run.sh
|
|||||||
COPY rootfs /
|
COPY rootfs /
|
||||||
RUN /opt/bitnami/scripts/memcached/postunpack.sh
|
RUN /opt/bitnami/scripts/memcached/postunpack.sh
|
||||||
ENV BITNAMI_APP_NAME="memcached" \
|
ENV BITNAMI_APP_NAME="memcached" \
|
||||||
BITNAMI_IMAGE_VERSION="1.6.14-debian-10-r17" \
|
BITNAMI_IMAGE_VERSION="1.6.14-debian-10-r18" \
|
||||||
PATH="/opt/bitnami/memcached/bin:/opt/bitnami/common/bin:$PATH"
|
PATH="/opt/bitnami/memcached/bin:/opt/bitnami/common/bin:$PATH"
|
||||||
|
|
||||||
EXPOSE 11211
|
EXPOSE 11211
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ memcached_validate() {
|
|||||||
print_validation_error "The variable MEMCACHED_THREADS must be positive integer"
|
print_validation_error "The variable MEMCACHED_THREADS must be positive integer"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Memcached Threads validation
|
# Memcached Item size validation
|
||||||
if [[ -n "${MEMCACHED_MAX_ITEM_SIZE}" ]] && ! is_positive_int "${MEMCACHED_MAX_ITEM_SIZE}"; then
|
if [[ -n "${MEMCACHED_MAX_ITEM_SIZE}" ]] && ! is_positive_int "${MEMCACHED_MAX_ITEM_SIZE}"; then
|
||||||
print_validation_error "The variable MEMCACHED_MAX_ITEM_SIZE must be positive integer"
|
print_validation_error "The variable MEMCACHED_MAX_ITEM_SIZE must be positive integer"
|
||||||
fi
|
fi
|
||||||
@@ -119,7 +119,7 @@ memcached_enable_authentication() {
|
|||||||
memcached_create_user "${user}" "${password}"
|
memcached_create_user "${user}" "${password}"
|
||||||
|
|
||||||
debug "Generating config file '${SASL_CONF_FILE}'"
|
debug "Generating config file '${SASL_CONF_FILE}'"
|
||||||
cat > "${SASL_CONF_FILE}" <<EOF
|
cat >"${SASL_CONF_FILE}" <<EOF
|
||||||
mech_list: plain
|
mech_list: plain
|
||||||
sasldb_path: ${SASL_DB_FILE}
|
sasldb_path: ${SASL_DB_FILE}
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
@@ -25,12 +25,12 @@ memcached_env_vars=(
|
|||||||
MEMCACHED_PORT_NUMBER
|
MEMCACHED_PORT_NUMBER
|
||||||
MEMCACHED_USERNAME
|
MEMCACHED_USERNAME
|
||||||
MEMCACHED_PASSWORD
|
MEMCACHED_PASSWORD
|
||||||
|
MEMCACHED_MAX_ITEM_SIZE
|
||||||
MEMCACHED_EXTRA_FLAGS
|
MEMCACHED_EXTRA_FLAGS
|
||||||
MEMCACHED_MAX_TIMEOUT
|
MEMCACHED_MAX_TIMEOUT
|
||||||
MEMCACHED_CACHE_SIZE
|
MEMCACHED_CACHE_SIZE
|
||||||
MEMCACHED_MAX_CONNECTIONS
|
MEMCACHED_MAX_CONNECTIONS
|
||||||
MEMCACHED_THREADS
|
MEMCACHED_THREADS
|
||||||
MEMCACHED_MAX_ITEM_SIZE
|
|
||||||
)
|
)
|
||||||
for env_var in "${memcached_env_vars[@]}"; do
|
for env_var in "${memcached_env_vars[@]}"; do
|
||||||
file_env_var="${env_var}_FILE"
|
file_env_var="${env_var}_FILE"
|
||||||
@@ -65,6 +65,7 @@ export MEMCACHED_LISTEN_ADDRESS="${MEMCACHED_LISTEN_ADDRESS:-}"
|
|||||||
export MEMCACHED_PORT_NUMBER="${MEMCACHED_PORT_NUMBER:-11211}"
|
export MEMCACHED_PORT_NUMBER="${MEMCACHED_PORT_NUMBER:-11211}"
|
||||||
export MEMCACHED_USERNAME="${MEMCACHED_USERNAME:-root}"
|
export MEMCACHED_USERNAME="${MEMCACHED_USERNAME:-root}"
|
||||||
export MEMCACHED_PASSWORD="${MEMCACHED_PASSWORD:-}"
|
export MEMCACHED_PASSWORD="${MEMCACHED_PASSWORD:-}"
|
||||||
|
export MEMCACHED_MAX_ITEM_SIZE="${MEMCACHED_MAX_ITEM_SIZE:-}"
|
||||||
export MEMCACHED_EXTRA_FLAGS="${MEMCACHED_EXTRA_FLAGS:-}"
|
export MEMCACHED_EXTRA_FLAGS="${MEMCACHED_EXTRA_FLAGS:-}"
|
||||||
|
|
||||||
# Memcached optimizations
|
# Memcached optimizations
|
||||||
@@ -72,6 +73,5 @@ export MEMCACHED_MAX_TIMEOUT="${MEMCACHED_MAX_TIMEOUT:-5}"
|
|||||||
export MEMCACHED_CACHE_SIZE="${MEMCACHED_CACHE_SIZE:-}"
|
export MEMCACHED_CACHE_SIZE="${MEMCACHED_CACHE_SIZE:-}"
|
||||||
export MEMCACHED_MAX_CONNECTIONS="${MEMCACHED_MAX_CONNECTIONS:-}"
|
export MEMCACHED_MAX_CONNECTIONS="${MEMCACHED_MAX_CONNECTIONS:-}"
|
||||||
export MEMCACHED_THREADS="${MEMCACHED_THREADS:-}"
|
export MEMCACHED_THREADS="${MEMCACHED_THREADS:-}"
|
||||||
export MEMCACHED_MAX_ITEM_SIZE="${MEMCACHED_MAX_ITEM_SIZE:-}"
|
|
||||||
|
|
||||||
# Custom environment variables may be defined below
|
# Custom environment variables may be defined below
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ args=("-u" "$MEMCACHED_DAEMON_USER" "-p" "$MEMCACHED_PORT_NUMBER" "-v")
|
|||||||
[[ -n "$MEMCACHED_THREADS" ]] && args+=("-t" "$MEMCACHED_THREADS")
|
[[ -n "$MEMCACHED_THREADS" ]] && args+=("-t" "$MEMCACHED_THREADS")
|
||||||
[[ -n "$MEMCACHED_MAX_ITEM_SIZE" ]] && args+=("-I" "$MEMCACHED_MAX_ITEM_SIZE")
|
[[ -n "$MEMCACHED_MAX_ITEM_SIZE" ]] && args+=("-I" "$MEMCACHED_MAX_ITEM_SIZE")
|
||||||
# Extra flags
|
# Extra flags
|
||||||
read -r -a extra_flags <<< "$MEMCACHED_EXTRA_FLAGS"
|
read -r -a extra_flags <<<"$MEMCACHED_EXTRA_FLAGS"
|
||||||
[[ "${#extra_flags[@]}" -gt 0 ]] && args+=("${extra_flags[@]}")
|
[[ "${#extra_flags[@]}" -gt 0 ]] && args+=("${extra_flags[@]}")
|
||||||
args+=("$@")
|
args+=("$@")
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,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/).
|
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`, `1-debian-10`, `1.6.14`, `1.6.14-debian-10-r17`, `latest` (1/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-memcached/blob/1.6.14-debian-10-r17/1/debian-10/Dockerfile)
|
* [`1`, `1-debian-10`, `1.6.14`, `1.6.14-debian-10-r18`, `latest` (1/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-memcached/blob/1.6.14-debian-10-r18/1/debian-10/Dockerfile)
|
||||||
|
|
||||||
Subscribe to project updates by watching the [bitnami/memcached GitHub repo](https://github.com/bitnami/bitnami-docker-memcached).
|
Subscribe to project updates by watching the [bitnami/memcached GitHub repo](https://github.com/bitnami/bitnami-docker-memcached).
|
||||||
|
|
||||||
@@ -203,7 +203,7 @@ services:
|
|||||||
|
|
||||||
### Specify max item size (slab size)
|
### Specify max item size (slab size)
|
||||||
|
|
||||||
By default, the Bitnami Memcached container will not specify any max item size and will start with Memcached defaults (1048576 ~ 1 megabyte). You can specify a different value with the `MEMCACHED_MAX_ITEM_SIZE` environment variable. Only numeric values are accepted - use `8388608` instead of `8m`
|
By default, the Memcached container will not specify any max item size and will start with Memcached defaults (1048576 ~ 1 megabyte). You can specify a different value with the `MEMCACHED_MAX_ITEM_SIZE` environment variable. Only numeric values are accepted - use `8388608` instead of `8m`
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ docker run --name memcached -e MEMCACHED_MAX_ITEM_SIZE=8388608 bitnami/memcached:latest
|
$ docker run --name memcached -e MEMCACHED_MAX_ITEM_SIZE=8388608 bitnami/memcached:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user