memcached (sha256:eadae9737504efe497695b6a04d60b752de0618d544773276a098900c7ce0bdd)

Published 2025-04-09 11:35:49 +00:00 by guochao in public/containers

Installation

docker pull git.jeffthecoder.xyz/public/memcached@sha256:eadae9737504efe497695b6a04d60b752de0618d544773276a098900c7ce0bdd
sha256:eadae9737504efe497695b6a04d60b752de0618d544773276a098900c7ce0bdd

Image layers

# debian.sh --arch 'amd64' out/ 'bookworm' '@1743984000'
RUN /bin/sh -c set -eux; groupadd --system --gid 11211 memcache; useradd --system --gid memcache --uid 11211 memcache # buildkit
RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends libsasl2-modules ; rm -rf /var/lib/apt/lists/* # buildkit
ENV MEMCACHED_VERSION=1.6.38
ENV MEMCACHED_URL=https://memcached.org/files/memcached-1.6.38.tar.gz
ENV MEMCACHED_SHA1=2d132faaf4d4ffa4c1b5f55b2f09056a0e9181dd
RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends ca-certificates dpkg-dev gcc libc6-dev libevent-dev libio-socket-ssl-perl libsasl2-dev libssl-dev make perl wget ; rm -rf /var/lib/apt/lists/*; wget -O memcached.tar.gz "$MEMCACHED_URL"; echo "$MEMCACHED_SHA1 memcached.tar.gz" | sha1sum -c -; mkdir -p /usr/src/memcached; tar -xzf memcached.tar.gz -C /usr/src/memcached --strip-components=1; rm memcached.tar.gz; wget -O memcached-time-overflow.patch 'https://github.com/memcached/memcached/commit/1a0a0b2591176a7c82412e27f3e17ba9133cd8dd.patch?full_index=1'; echo '12441b94e0c35e2bd4511d10b799b731f3aae7428f196d34eccefb68351ed0f0 *memcached-time-overflow.patch' | sha256sum -c -; patch --input="$PWD/memcached-time-overflow.patch" --strip=1 --directory=/usr/src/memcached; rm memcached-time-overflow.patch; wget -O memcached-extstore-test-stability.patch 'https://github.com/memcached/memcached/commit/a2e47b5afdf6ad7deeb54ce9fb1d45cf8cfd1024.patch?full_index=1'; echo 'a421465488e2ffac5fe3d956598f030f5b06399af3dbb4e36ecebdd368245b4b *memcached-extstore-test-stability.patch' | sha256sum -c -; patch --input="$PWD/memcached-extstore-test-stability.patch" --strip=1 --directory=/usr/src/memcached; rm memcached-extstore-test-stability.patch; cd /usr/src/memcached; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; case "$gnuArch" in arm-*abihf) export ac_cv_c_alignment=need ;; esac; ./configure --build="$gnuArch" --enable-extstore --enable-proxy --enable-sasl --enable-sasl-pwdb --enable-tls ; nproc="$(nproc)"; make -j "$nproc"; sed -i.bak 's/SECLEVEL=2/SECLEVEL=1/g' /etc/ssl/openssl.cnf; make test PARALLEL="$nproc" || make test; mv /etc/ssl/openssl.cnf.bak /etc/ssl/openssl.cnf; make install; cd /; rm -rf /usr/src/memcached; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; memcached -V # buildkit
COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
RUN /bin/sh -c ln -s usr/local/bin/docker-entrypoint.sh /entrypoint.sh # backwards compat # buildkit
ENTRYPOINT ["docker-entrypoint.sh"]
USER memcache
EXPOSE map[11211/tcp:{}]
CMD ["memcached"]
Details
Container
2025-04-09 11:35:49 +00:00
5
OCI / Docker
linux/amd64
32 MiB
Versions (2) View all
1 2025-10-01
latest 2025-04-09