cooptilleuls / docker-varnish Goto Github PK
View Code? Open in Web Editor NEWDocker image for Varnish Cache (caching HTTP reverse proxy)
Home Page: https://www.varnish-cache.org
License: Apache License 2.0
Docker image for Varnish Cache (caching HTTP reverse proxy)
Home Page: https://www.varnish-cache.org
License: Apache License 2.0
It is very nice to work with this docker image. Thank you for maintaining.
I would like to execute a command before varnishd is started. In my use-case, I would expand a templated vcl file with some environment variables.
I would be happy to submit a PR for this feature if you welcome one.
Download of .tar.gz file fails:
+ curl -fSL https://repo.varnish-cache.org/source/varnish-4.1.6.tar.gz -o varnish-4.1.6.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (22) The requested URL returned error: 410 repo
Hello,
It's not stated into the docs, but maybe it's possible?
How can one add parameters to varnishd, e.g. -p http_resp_hdr_len=60000
?
Many thanks
Hey folks,
Thanks for the nice container. I was wondering if it would be possible to provide an easier way to install certain VMODs, mainly those that are official (https://github.com/varnish/varnish-modules).
I think it would make sense to provide something like RUN install-vmod.sh xkey
as a simplification. The container would not really become a lot bigger by just this file but it would allow to make installation of the most commonly used VMODs in custom containers way easier as well as centralize efforts in keeping the instructions needed in a central place rather than having different people maintaining their own commands ๐
For example I just tried to install xkey
for a few local tests but I'm completely new to the whole ecosystem so I have no clue what dependencies are needed etc.
please update the docker image:
should be fixed if you pull #47
Building the image without querystring module works perfectly but adding the module fails (only thing changed is v1.0.2 instead of v1.0.1). I have also tried v1.0.1 ending in the same result.
DockerFile
FROM tripviss/varnish:5.1
COPY default.vcl /usr/local/etc/varnish/
ENV VARNISH_MEMORY 1G
ENV VARNISH_PORT 1900
EXPOSE 1900
# Install Querystring Varnish module
ENV QUERYSTRING_VERSION 1.0.2
ENV QUERYSTRING_FILENAME libvmod-querystring-1.0.2.tar.gz
RUN set -xe \
&& curl -fSL "https://github.com/Dridi/libvmod-querystring/releases/download/v$QUERYSTRING_VERSION/vmod-querystring-$QUERYSTRING_VERSION.tar.gz" -o "$QUERYSTRING_FILENAME" \
&& mkdir -p /usr/local/src/libvmod-querystring \
&& tar -xzf "$QUERYSTRING_FILENAME" -C /usr/local/src/libvmod-querystring --strip-components=1 \
&& rm "$QUERYSTRING_FILENAME" \
&& cd /usr/local/src/libvmod-querystring \
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
&& ./configure \
--build="$gnuArch" \
VARNISHSRC=/usr/local/src/varnish \
&& make -j "$(nproc)" \
&& make install \
&& rm -r /usr/local/src/libvmod-querystring
~ # varnishtop
Segmentation fault (core dumped)
Hello there,
I try to replace my custom varnish container by one base on cooptilleuls/varnish:4-alpine
:
Here my Dockerfile
:
FROM cooptilleuls/varnish:4-alpine
# Make our custom VCLs available on the container
COPY ./*.vcl /usr/local/etc/varnish/
EXPOSE 80 3000
Previously, I had a entrypoint.sh which launch
varnishd -a :80 -a :3000 -f $VCL_CONFIG -s malloc,$CACHE_SIZE &
,
allow me to listen both ports 80 and 3000
Is it possible to do that using the alpine version?
Thanks for helping
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.