Created
March 28, 2018 18:28
-
-
Save ipmb/45f145fd8e4dc77118e53783e433c632 to your computer and use it in GitHub Desktop.
Building header vmod for varnish 3 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 | |
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