1.6.6-debian-10-r41 release
This commit is contained in:
parent
5150b2e654
commit
a5d2e5a40a
|
|
@ -8,9 +8,9 @@ ENV HOME="/" \
|
|||
|
||||
COPY prebuildfs /
|
||||
# Install required system packages and dependencies
|
||||
RUN install_packages ca-certificates curl gzip libc6 libevent-2.1-6 libsasl2-2 libsasl2-modules procps sasl2-bin tar
|
||||
RUN install_packages acl ca-certificates curl gzip libc6 libevent-2.1-6 libsasl2-2 libsasl2-modules procps sasl2-bin tar
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "memcached" "1.6.6-0" --checksum 15b1c136500b48450c07053972745188e9bfda7c8177d51e905d2a17a107e624
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.12.0-0" --checksum 582d501eeb6b338a24f417fededbf14295903d6be55c52d66c52e616c81bcd8c
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.12.0-1" --checksum 51cfb1b7fd7b05b8abd1df0278c698103a9b1a4964bdacd87ca1d5c01631d59c
|
||||
RUN apt-get update && apt-get upgrade -y && \
|
||||
rm -r /var/lib/apt/lists /var/cache/apt/archives
|
||||
RUN ln -s /opt/bitnami/scripts/memcached/entrypoint.sh /entrypoint.sh
|
||||
|
|
@ -19,7 +19,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-r40" \
|
||||
BITNAMI_IMAGE_VERSION="1.6.6-debian-10-r41" \
|
||||
PATH="/opt/bitnami/memcached/bin:/opt/bitnami/common/bin:$PATH"
|
||||
|
||||
EXPOSE 11211
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
# Load Generic Libraries
|
||||
. /opt/bitnami/scripts/libfs.sh
|
||||
. /opt/bitnami/scripts/libos.sh
|
||||
. /opt/bitnami/scripts/liblog.sh
|
||||
. /opt/bitnami/scripts/libversion.sh
|
||||
|
||||
|
|
@ -34,14 +35,28 @@ persist_app() {
|
|||
warn "No files are configured to be persisted"
|
||||
return
|
||||
fi
|
||||
local file_to_persist_origin file_to_persist_destination file_to_persist_destination_folder
|
||||
pushd "$install_dir" >/dev/null
|
||||
local file_to_persist_destination file_to_persist_destination_folder
|
||||
local -r tmp_file="/tmp/perms.acl"
|
||||
for file_to_persist in "${files_to_persist[@]}"; do
|
||||
file_to_persist_origin="${install_dir}/${file_to_persist}"
|
||||
file_to_persist_destination="${persist_dir}/${file_to_persist}"
|
||||
file_to_persist_destination_folder="$(dirname "$file_to_persist_destination")"
|
||||
mkdir -p "$file_to_persist_destination_folder"
|
||||
cp -Lr "$file_to_persist_origin" "$file_to_persist_destination_folder"
|
||||
# Get original permissions (except for the root directory, to avoid issues with volumes)
|
||||
find "$file_to_persist" | grep -E -v '^\.$' | xargs getfacl -R > "$tmp_file"
|
||||
# Copy directories to the volume
|
||||
ensure_dir_exists "$file_to_persist_destination_folder"
|
||||
cp -Lr --preserve=links "$file_to_persist" "$file_to_persist_destination_folder"
|
||||
# Restore permissions
|
||||
pushd "$persist_dir" >/dev/null
|
||||
if am_i_root; then
|
||||
setfacl --restore="$tmp_file"
|
||||
else
|
||||
# When running as non-root, don't change ownership
|
||||
setfacl --restore=<(grep -E -v '^# (owner|group):' "$tmp_file")
|
||||
fi
|
||||
popd >/dev/null
|
||||
done
|
||||
popd >/dev/null
|
||||
# Install the persisted files into the installation directory, via symlinks
|
||||
restore_persisted_app "$@"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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-r40`, `1`, `1.6.6`, `latest` (1/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-memcached/blob/1.6.6-debian-10-r40/1/debian-10/Dockerfile)
|
||||
* [`1-debian-10`, `1.6.6-debian-10-r41`, `1`, `1.6.6`, `latest` (1/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-memcached/blob/1.6.6-debian-10-r41/1/debian-10/Dockerfile)
|
||||
|
||||
Subscribe to project updates by watching the [bitnami/memcached GitHub repo](https://github.com/bitnami/bitnami-docker-memcached).
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue