Skip to content

Instantly share code, notes, and snippets.

@ipmb ipmb/Dockerfile
Created Jun 6, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.