Skip to content

Instantly share code, notes, and snippets.

@ipmb
Created March 28, 2018 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ipmb/45f145fd8e4dc77118e53783e433c632 to your computer and use it in GitHub Desktop.
Save ipmb/45f145fd8e4dc77118e53783e433c632 to your computer and use it in GitHub Desktop.
Building header vmod for varnish 3 on Trusty
FROM ubuntu:14.04
RUN apt-get update && \
apt-get -yq install varnish libvarnishapi-dev build-essential pkg-config \
libpcre3-dev automake autogen libtool libreadline6-dev \
libeditline0 libeditline-dev python-docutils curl
RUN curl -sLO https://varnish-cache.org/_downloads/varnish-3.0.7.tgz && \
tar xvzf varnish-3.0.7.tgz && cd varnish-3.0.7 && \
./configure && make
RUN curl -sLO https://github.com/varnish/libvmod-header/archive/3.0.tar.gz && \
tar xvzf 3.0.tar.gz && cd libvmod-header-3.0 && \
./autogen.sh && ./configure VARNISHSRC=/varnish-3.0.7 && make && make install
CMD ls -lh /usr/lib/x86_64-linux-gnu/varnish/vmods
# docker build -t varnish . && rm -f cidfile && docker run --cidfile=cidfile varnish
# docker cp $(cat cidfile):/usr/lib/x86_64-linux-gnu/varnish/vmods .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment