Commit bf7bdd88 authored by Geoff Simmons's avatar Geoff Simmons

The base image of "release Varnish" is now Debian (bookworm-slim).

Installed from pkg.uplex.de.
parent dd4eda5d
FROM centos:centos7.9.2009
COPY varnishcache_varnish66.repo /etc/yum.repos.d/
COPY uplex_varnish.repo /etc/yum.repos.d/
# yum update with --exclude=shadow-utils because the cap_set_file
# capability is needed to extract the RPM, and that fails in a
# docker build.
RUN yum install -y -q epel-release && yum -q makecache -y fast && \
yum update -y -q --exclude=shadow-utils && \
yum install -y -q varnish-6.6.2 && \
yum install -y -q --nogpgcheck vmod-re2-2.0.0 && \
yum install -y -q --nogpgcheck vmod-selector-2.6.0 && \
yum install -y -q --nogpgcheck vmod-dynamic-2.5.0 && \
yum install -y -q --nogpgcheck vmod-blobdigest-1.7.0 && \
yum install -y -q --nogpgcheck varnish-objvar-1.0.0 && \
yum -q clean all && rm -rf /var/cache/yum && rm -rf /usr/share/man && \
rm -rf /usr/share/doc && rm /etc/varnish/*
RUN /bin/mkdir /var/run/varnish
FROM debian:bookworm-20240311-slim
ENV VERSION=20240307
ENV DIST=bookworm-varnish
ENV POOL=varnish
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y curl gnupg coreutils procps
# add uplex repository and import gpg key
RUN echo "deb https://pkg.uplex.de/dpkg/${VERSION}/ ${DIST} ${POOL}" | tee -a /etc/apt/sources.list
RUN curl -L https://pkg.uplex.de/dpkg/uplex-varnish.gpg.key | apt-key add -
RUN apt-get clean && \
apt-get update
RUN apt-get install -y varnish \
libvmod-re2 \
libvmod-selector \
libvmod-dynamic \
libvmod-blobdigest \
varnish-objvar
RUN apt-get remove -y -q curl gnupg && \
apt-get autoremove -y -q && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /usr/share/doc && \
rm -rf /usr/share/man
# Set the varnish GID to 998 as in the packagecloud install.
RUN /bin/mkdir /run/varnish && \
/usr/sbin/groupmod -g 998 varnish
COPY bogo_backend.vcl /etc/varnish/
COPY ok.vcl /etc/varnish/
COPY notavailable.vcl /etc/varnish
......@@ -25,8 +38,6 @@ COPY boot.vcl /etc/varnish
COPY start.cli /etc/varnish
COPY varnishd_exec.sh /
RUN /usr/sbin/useradd -r -g varnish -d /var/lib/varnish -s /sbin/nologin \
-u 102 vcache
RUN /bin/chmod 755 /varnishd_exec.sh /etc/varnish
ENV HTTP_PORT=8888 PROTO=HTTP READY_PORT=8080 SECRET_PATH=/var/run/varnish \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment