Created
April 4, 2019 21:56
-
-
Save ipmb/a7669da830659b05a277e2759e7d0fa9 to your computer and use it in GitHub Desktop.
Build vmods on Ubuntu from Varnish repo
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:18.04 | |
ARG REPO=varnish60lts | |
RUN set -ex && \ | |
apt-get update -qq && \ | |
apt-get -yq install curl apt-transport-https build-essential libtool autotools-dev automake gnupg && \ | |
echo "deb https://packagecloud.io/varnishcache/${REPO}/ubuntu/ bionic main" > /etc/apt/sources.list.d/varnish.list && \ | |
curl -L https://packagecloud.io/varnishcache/${REPO}/gpgkey | apt-key add && \ | |
apt-get update -qq && \ | |
apt-get -yq install varnish varnish-dev | |
ARG MODULES_SHA=0d555b627333cd9190a40870f380ace5664f6d0d | |
RUN set -ex && \ | |
curl -sLO https://github.com/varnish/varnish-modules/archive/${MODULES_SHA}.tar.gz && tar xzf 0d555b627333cd9190a40870f380ace5664f6d0d.tar.gz | |
RUN set -ex && \ | |
mv varnish-modules-${MODULES_SHA} /varnish-modules && \ | |
cd varnish-modules && \ | |
./bootstrap && ./configure && make | |
CMD ls -lh /varnish-modules/src/.libs | |
# docker build -t varnish-vmod . && docker run --name=varnish-vmod varnish-vmod | |
# docker cp varnish-vmod:/varnish-modules/ varnish-modules |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment