[matomo-web] Install maxminddb PHP extension
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [matomo-web] Install maxminddb PHP extension
- Date: Mon, 28 Dec 2020 22:26:45 +0000 (UTC)
commit dc26bbdbdec6cb69ddf109730670aa45155c2305
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Mon Dec 28 23:25:20 2020 +0100
Install maxminddb PHP extension
matomo/Dockerfile | 21 ++++++++++++++++++---
1 file changed, 18 insertions(+), 3 deletions(-)
---
diff --git a/matomo/Dockerfile b/matomo/Dockerfile
index 270ff0e..774984a 100644
--- a/matomo/Dockerfile
+++ b/matomo/Dockerfile
@@ -1,9 +1,24 @@
-FROM matomo:4-fpm
+FROM matomo:4-fpm as builder
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 && \
+ echo 'extension=maxminddb.so' > /usr/local/etc/php/conf.d/maxminddb.ini && \
+ cd .. && rm -rf MaxMind-DB-Reader-php
COPY ipa-ca.crt /usr/local/share/ca-certificates/ipa-ca.crt
RUN update-ca-certificates
@@ -14,7 +29,7 @@ RUN mkdir -p /opt/matomo/extra-plugins && \
-o LoginLdap-4.2.2.zip && \
unzip LoginLdap-4.2.2.zip && \
find LoginLdap -type d | xargs chmod 775 && \
- find LoginLdap -type f | xargs chmod 644 &&
+ find LoginLdap -type f | xargs chmod 644 && \
rm -f /var/www/html/plugins/LoginLdap-4.2.2.zip /var/www/html/vendor/wikimedia/less.php/bin/lessc
COPY start.sh /
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]