Giter VIP home page Giter VIP logo

docker-varnish's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-varnish's Issues

Support for easier installation of certain VMODs

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.

Adding custom params

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

I want to run a script on startup

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.

4.1.6 build fails

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

Allow varnish listen several ports

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

5.1 Build failing

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

Error Screenshot
screen shot 2017-06-22 at 6 25 28 pm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.