Skip to content

Instantly share code, notes, and snippets.

@ipmb
Created April 4, 2019 21:56
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/a7669da830659b05a277e2759e7d0fa9 to your computer and use it in GitHub Desktop.
Save ipmb/a7669da830659b05a277e2759e7d0fa9 to your computer and use it in GitHub Desktop.
Build vmods on Ubuntu from Varnish repo
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