[matomo-web] Bake the plugin into the image so cron jobs can use it without messing up with entrypoints
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [matomo-web] Bake the plugin into the image so cron jobs can use it without messing up with entrypoints
- Date: Thu, 24 Sep 2020 11:01:14 +0000 (UTC)
commit c4bf0586a49775a691dc4b9de79b99ad2ab40a52
Author: Andrea Veri <averi redhat com>
Date: Thu Sep 24 13:00:52 2020 +0200
Bake the plugin into the image so cron jobs can use it without messing up with entrypoints
matomo/Dockerfile | 8 ++++++++
matomo/start.sh | 9 +--------
2 files changed, 9 insertions(+), 8 deletions(-)
---
diff --git a/matomo/Dockerfile b/matomo/Dockerfile
index 73b4b49..029aa94 100644
--- a/matomo/Dockerfile
+++ b/matomo/Dockerfile
@@ -8,6 +8,14 @@ RUN apt-get update && \
COPY ipa-ca.crt /usr/local/share/ca-certificates/ipa-ca.crt
RUN update-ca-certificates
+RUN mkdir -p /opt/matomo/extra-plugins && \
+ cd /opt/matomo/extra-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
+
COPY start.sh /
CMD ["/start.sh"]
diff --git a/matomo/start.sh b/matomo/start.sh
index a52d31a..db004cf 100755
--- a/matomo/start.sh
+++ b/matomo/start.sh
@@ -1,12 +1,5 @@
#!/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
+cp -r /opt/matomo/extra-plugins/* /var/www/html/plugins/
php-fpm
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]