Skip to content

Commit b270eec

Browse files
authored
Remove matomo (#396)
* Remove matomo * rm matomo * Delete build/docker-compose/docker-compose.matomo.yml * rm matomo * Delete secrets/template/MATOMO_USER_PASS * Delete secrets/template/MATOMO_DB_PASSWORD * Update README.md
1 parent 025c93a commit b270eec

File tree

12 files changed

+4
-78
lines changed

12 files changed

+4
-78
lines changed

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export
4545
EXTERNAL_SERVICES := etcd watchtower traefik
4646

4747
# The minimal set of docker compose files required to be able to run anything.
48-
REQUIRED_SERVICES ?= activemq alpaca blazegraph cantaloupe crayfish crayfits drupal mariadb matomo solr
48+
REQUIRED_SERVICES ?= activemq alpaca blazegraph cantaloupe crayfish crayfits drupal mariadb solr
4949

5050
ifeq ($(USE_SECRETS), true)
5151
SECRETS := secrets
@@ -594,14 +594,13 @@ install: drupal-database
594594

595595
.PHONY: update-config-from-environment
596596
## Updates configuration from environment variables.
597-
## Allow all commands to fail as the user may not have all the modules like matomo, etc.
597+
## Allow all commands to fail as the user may not have all the modules.
598598
.SILENT: update-config-from-environment
599599
update-config-from-environment:
600600
-docker compose exec -T drupal with-contenv bash -lc "for_all_sites configure_islandora_module"
601601
-docker compose exec -T drupal with-contenv bash -lc "for_all_sites configure_jwt_module"
602602
-docker compose exec -T drupal with-contenv bash -lc "for_all_sites configure_islandora_default_module"
603603
-docker compose exec -T drupal with-contenv bash -lc "for_all_sites configure_search_api_solr_module"
604-
-docker compose exec -T drupal with-contenv bash -lc "for_all_sites configure_matomo_module"
605604
-docker compose exec -T drupal with-contenv bash -lc "for_all_sites configure_openseadragon"
606605
-docker compose exec -T drupal with-contenv bash -lc "for_all_sites configure_islandora_default_module"
607606

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ the things you can do. If you want to poke around, here's all the services that
9494
| Activemq | [http://islandora.traefik.me:8161](http://islandora.traefik.me:8161) | No |
9595
| Solr | [http://islandora.traefik.me:8983](http://islandora.traefik.me:8983) | No |
9696
| Cantaloupe | [https://islandora.traefik.me/cantaloupe](https://islandora.traefik.me/cantaloupe) | Yes |
97-
| Matomo | [https://islandora.traefik.me/matomo/](https://islandora.traefik.me/matomo/) | Yes |
9897
| Code Server | [https://islandora.traefik.me:8443/](https://islandora.traefik.me:8443/) | No |
9998

10099
> **Exposed**: the act of allowing the containerized application's ports to be accessible to the host machine (or public). In most cases this makes the specified URL available for the browser.

build/docker-compose/docker-compose.acme.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,3 @@ services:
4040
drupal:
4141
labels:
4242
- traefik.http.routers.${COMPOSE_PROJECT_NAME-isle-dc}-drupal_https.tls.certresolver=myresolver
43-
matomo:
44-
labels:
45-
- traefik.http.routers.${COMPOSE_PROJECT_NAME-isle-dc}-matomo_https.tls.certresolver=myresolver

build/docker-compose/docker-compose.drupal.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ services:
1212
DRUPAL_DEFAULT_CANTALOUPE_URL: https://${DOMAIN}/cantaloupe/iiif/2
1313
DRUPAL_DEFAULT_FCREPO_HOST: ${DOMAIN}
1414
DRUPAL_DEFAULT_FCREPO_PORT: 8081
15-
DRUPAL_DEFAULT_MATOMO_URL: https://${DOMAIN}/matomo/
1615
DRUPAL_DEFAULT_SITE_URL: http://${DOMAIN} # Make sure this is just http and not https!
1716
DRUPAL_DEFAULT_PROFILE: ${DRUPAL_INSTALL_PROFILE}
1817
PHP_MEMORY_LIMIT: ${PHP_MEMORY_LIMIT}

build/docker-compose/docker-compose.matomo.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

build/docker-compose/docker-compose.secrets.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ secrets:
2626
file: "../../secrets/live/JWT_PUBLIC_KEY"
2727
JWT_PRIVATE_KEY:
2828
file: "../../secrets/live/JWT_PRIVATE_KEY"
29-
MATOMO_DB_PASSWORD:
30-
file: "../../secrets/live/MATOMO_DB_PASSWORD"
31-
MATOMO_USER_PASS:
32-
file: "../../secrets/live/MATOMO_USER_PASS"
3329
TOMCAT_ADMIN_PASSWORD:
3430
file: "../../secrets/live/TOMCAT_ADMIN_PASSWORD"
3531
services:
@@ -74,11 +70,6 @@ services:
7470
mariadb:
7571
secrets:
7672
- DB_ROOT_PASSWORD
77-
matomo:
78-
secrets:
79-
- DB_ROOT_PASSWORD
80-
- MATOMO_DB_PASSWORD
81-
- MATOMO_USER_PASS
8273
milliner:
8374
secrets:
8475
- JWT_ADMIN_TOKEN

build/docker-compose/docker-compose.traefik.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ services:
4040
- --providers.file.filename=/etc/traefik/tls.yml
4141
- '--providers.docker.defaultRule=Host(`${DOMAIN}`)'
4242
ports:
43-
- 80:80 # drupal, cantaloupe, matomo
43+
- 80:80 # drupal, cantaloupe
4444
- 443:443 # https for ^^^
4545
- ${FEDORA_PORT:-8081}:8081 # fedora, needs to be exposed for cantaloupe
4646
# Don't do any of these in production

build/rootfs/etc/cont-init.d/04-custom-setup.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ function main {
1717
update_settings_php "${site}"
1818
# Ensure that settings which depend on environment variables like service urls are set dynamically on startup.
1919
configure_islandora_module "${site}"
20-
configure_matomo_module "${site}"
2120
configure_openseadragon "${site}"
2221
configure_islandora_default_module "${site}"
2322
# The following commands require several services

build/scripts/generate-secrets.sh

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@ function generate_jwt_keys() {
88
openssl rsa -pubout -in /tmp/private.key -out /tmp/public.key &>/dev/null
99
}
1010

11-
function generate_matomo_password() {
12-
# Password is in two parts, the part that is human readable and entered into
13-
# the form, and the hashed version which is written into the database.
14-
random_secret 'A-Za-z0-9' 48 MATOMO_USER_PASS_NON_HASHED
15-
MATOMO_USER_PASS=$(cat /secrets/live/MATOMO_USER_PASS_NON_HASHED)
16-
php -r "echo password_hash(md5('${MATOMO_USER_PASS}'), PASSWORD_DEFAULT);" >/secrets/live/MATOMO_USER_PASS
17-
}
18-
1911
function random_secret() {
2012
local characters=${1}
2113
local size=${2}
@@ -44,9 +36,6 @@ function main() {
4436
JWT_PUBLIC_KEY)
4537
cp /tmp/public.key /secrets/live/JWT_PUBLIC_KEY
4638
;;
47-
MATOMO_USER_PASS)
48-
generate_matomo_password
49-
;;
5039
*)
5140
random_secret 'A-Za-z0-9' 48 "${secret}"
5241
;;

sample.env

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ INCLUDE_ETCD_SERVICE=false
8080
INCLUDE_CODE_SERVER_SERVICE=false
8181

8282
# Choose which database backend to use: mariadb/postgresql
83-
# Services that only support MySQL (Matomo) do not have the option to change.
83+
# Services that only support MySQL do not have the option to change.
8484
# Also at this time not all Drupal modules work with PostgresSQL, it is provided
8585
# as option here so it can be tested and fixed at some later date.
8686
DRUPAL_DATABASE_SERVICE=mariadb
@@ -103,9 +103,6 @@ TAG=3.2.2
103103
# Expose Cantaloupe at ${DOMAIN}/cantaloupe
104104
EXPOSE_CANTALOUPE=true
105105

106-
# Expose Matomo at ${DOMAIN}/matomo
107-
EXPOSE_MATOMO=true
108-
109106
# Expose Drupal at ${DOMAIN}
110107
EXPOSE_DRUPAL=true
111108

@@ -186,7 +183,6 @@ HOUDINI_MEMORY_LIMIT=1G
186183
HYPERCUBE_MEMORY_LIMIT=512M
187184
IDE_MEMORY_LIMIT=5G
188185
MARIADB_MEMORY_LIMIT=1G
189-
MATOMO_MEMORY_LIMIT=1G
190186
MILLINER_MEMORY_LIMIT=1G
191187
RECAST_MEMORY_LIMIT=1G
192188
SOLR_MEMORY_LIMIT=8G

0 commit comments

Comments
 (0)