Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
k8s-ingress
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
uplex-varnish
k8s-ingress
Commits
bf7bdd88
Commit
bf7bdd88
authored
Apr 10, 2024
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The base image of "release Varnish" is now Debian (bookworm-slim).
Installed from pkg.uplex.de.
parent
dd4eda5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
22 deletions
+33
-22
Dockerfile.varnish
container/Dockerfile.varnish
+33
-22
No files found.
container/Dockerfile.varnish
View file @
bf7bdd88
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 \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment