Skip to content

Instantly share code, notes, and snippets.

@ipmb ipmb/Dockerfile
Created Apr 4, 2019

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