Skip to content

Instantly share code, notes, and snippets.

@ipmb
Created June 6, 2018 16:46
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/733566e5c306f211ebfc2549a3eaf782 to your computer and use it in GitHub Desktop.
Save ipmb/733566e5c306f211ebfc2549a3eaf782 to your computer and use it in GitHub Desktop.
vmods on trusty
FROM ubuntu:14.04
ENV VARNISHVERSION=52 MODSVERSION=0.15.0
RUN apt-get update && \
apt-get -yq install curl gnupg apt-transport-https build-essential pkg-config \
libpcre3-dev automake autogen libtool libreadline6-dev \
libeditline0 libeditline-dev python-docutils
RUN curl -sL https://packagecloud.io/varnishcache/varnish$VARNISHVERSION/gpgkey | apt-key add - && \
printf "deb https://packagecloud.io/varnishcache/varnish$VARNISHVERSION/ubuntu/ trusty main\ndeb-src https://packagecloud.io/varnishcache/varnish$VARNISHVERSION/ubuntu/ trusty main" > /etc/apt/sources.list.d/varnish.list && \
apt-get update && \
apt-get install -y varnish-dev
RUN set -ex && curl -sLO https://github.com/varnish/varnish-modules/archive/$MODSVERSION.tar.gz && \
tar xvzf $MODSVERSION.tar.gz && cd varnish-modules-$MODSVERSION && \
./bootstrap && ./configure && make && make install
CMD ls -lh /usr/lib/varnish/vmods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment