Created
June 6, 2018 16:46
-
-
Save ipmb/733566e5c306f211ebfc2549a3eaf782 to your computer and use it in GitHub Desktop.
vmods on trusty
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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