[matomo-web] Install maxminddb extension



commit 120098ddd596ed7fdc09e3c6a307ee68637d63c3
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Tue Dec 29 08:20:56 2020 +0100

    Install maxminddb extension

 matomo/Dockerfile | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/matomo/Dockerfile b/matomo/Dockerfile
index efaa886..482ec4e 100644
--- a/matomo/Dockerfile
+++ b/matomo/Dockerfile
@@ -1,9 +1,24 @@
-FROM matomo:4-fpm 
+FROM matomo:4-fpm
 
 USER root
 
 RUN apt-get update && \
-    apt-get install unzip
+    apt-get install -y git build-essential automake libtool autoconf unzip
+
+RUN git clone --recursive https://github.com/maxmind/libmaxminddb && \
+    cd libmaxminddb && \
+    autoreconf -fiv && ./configure && \
+    make && make install && \
+    cd .. && rm -rf libmaxminddb
+
+RUN git clone --recursive https://github.com/maxmind/MaxMind-DB-Reader-php && \
+    cd MaxMind-DB-Reader-php/ext && \
+    phpize && \
+    cp /usr/share/libtool/build-aux/config.guess . && \
+    cp /usr/share/libtool/build-aux/config.sub . && \
+    ./configure && make && make install && \
+    docker-php-ext-enable maxminddb && \
+    cd .. && rm -rf MaxMind-DB-Reader-php
 
 COPY ipa-ca.crt /usr/local/share/ca-certificates/ipa-ca.crt
 RUN update-ca-certificates


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]