memcached Official Package

Updated about 2024-11-07 23:34:25 -08:00

Installation

docker pull pkg.ci/memcached@sha256:8c3715b1a0ca257055f794d07f31930d7cef53cc7a49d4c973407fdbe03e68a5
sha256:8c3715b1a0ca257055f794d07f31930d7cef53cc7a49d4c973407fdbe03e68a5

Image Layers

ADD file:92b9ed0a5c924ec85b272100ff6dc81f126c6bd277ec2b3782af1119f9e07391 in /
CMD ["bash"]
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.32
ENV MEMCACHED_URL=https://memcached.org/files/memcached-1.6.32.tar.gz
ENV MEMCACHED_SHA1=a6377de830d15e17b769184df6ad20766c2279d9
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; cd /usr/src/memcached; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./configure --build="$gnuArch" --enable-extstore --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"; 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
2024-11-07 23:34:25 -08:00
0
OCI / Docker
linux/ppc64le
35 MiB
Versions (1) View all
latest 2024-11-07