Skip to content

Commit

Permalink
Merge pull request #9 from Financial-Times/fix/CPH-97-updatedocker
Browse files Browse the repository at this point in the history
Fix/cph 97 updatedocker
  • Loading branch information
dbelev authored Aug 30, 2019
2 parents 537a8e0 + f57d2ee commit b701ff9
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
# Starting from Ubuntu and not from alpine, as libvmod-dynamic used for generating dynamic backends
# compiles currently only on debian based images.
FROM ubuntu:trusty
FROM ubuntu:bionic

ENV VARNISHSRC=/usr/include/varnish VMODDIR=/usr/lib/varnish/vmods

RUN apt-get update -q && \
apt-get install -qq git curl apt-transport-https autotools-dev automake autoconf libtool python make python-docutils && \
curl -L https://packagecloud.io/varnishcache/varnish41/gpgkey | sudo apt-key add - && \
echo "deb https://packagecloud.io/varnishcache/varnish41/ubuntu/ trusty main" | tee /etc/apt/sources.list.d/varnish-cache.list && \
apt-get install -qq git curl apt-transport-https autotools-dev automake autoconf libtool python make python-docutils sudo gnupg2 && \
curl -L https://packagecloud.io/varnishcache/varnish62/gpgkey | sudo apt-key add - && \
echo "deb https://packagecloud.io/varnishcache/varnish62/ubuntu/ bionic main" | tee /etc/apt/sources.list.d/varnish-cache.list && \
apt-get -q update && \
apt-get install -qq libgetdns-dev && \
apt-get install -qq varnish varnish-dev && \
cd / && echo "-------mod-dynamic build -------" && \
git clone -b 4.1 https://github.com/nigoroll/libvmod-dynamic.git && \
git clone -b 6.2 https://github.com/nigoroll/libvmod-dynamic.git && \
cd libvmod-dynamic && \
./autogen.sh && \
./configure && \
make && \
make install && \
apt-get remove -qq git curl apt-transport-https autotools-dev automake autoconf libtool python make python-docutils --force-yes && \
apt-get remove -qq git curl apt-transport-https autotools-dev automake autoconf libtool python make python-docutils gnupg2 --allow-remove-essential && \
apt-get -qq autoremove && \
apt-get -qq clean && \
rm -rf /libvmod-dynamic
Expand Down

0 comments on commit b701ff9

Please sign in to comment.