[matomo-web] Land a matomo dockerfile, needed as we have to land ipa-ca.crt for LDAP auth



commit 9813373437ad4a18ef470bbe29ed9843d2fed732
Author: Andrea Veri <averi redhat com>
Date:   Thu Sep 24 11:38:44 2020 +0200

    Land a matomo dockerfile, needed as we have to land ipa-ca.crt for LDAP auth

 matomo/Dockerfile | 10 ++++++++++
 matomo/start.sh   | 10 ++++++++++
 2 files changed, 20 insertions(+)
---
diff --git a/matomo/Dockerfile b/matomo/Dockerfile
new file mode 100644
index 0000000..a1c4bc8
--- /dev/null
+++ b/matomo/Dockerfile
@@ -0,0 +1,10 @@
+FROM matomo:3-fpm 
+
+USER root
+
+COPY ipa-ca.crt /usr/local/share/ca-certificates/ipa-ca.crt
+RUN update-ca-certificates
+
+COPY start.sh /
+
+CMD ["/start.sh"]
diff --git a/matomo/start.sh b/matomo/start.sh
new file mode 100755
index 0000000..090557f
--- /dev/null
+++ b/matomo/start.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+cd /var/www/html/plugins
+
+curl https://plugins.matomo.org/api/2.0/plugins/LoginLdap/download/4.0.8 \
+  -o LoginLdap-4.0.8.zip
+
+unzip LoginLdap-4.0.8.zip && \
+  find LoginLdap -type d | xargs chmod 775 && \
+  find LoginLdap -type f | xargs chmod 644


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