Skip to content

Commit

Permalink
Remove matomo (#396)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
joecorall authored Jun 7, 2024
1 parent 025c93a commit b270eec
Show file tree
Hide file tree
Showing 12 changed files with 4 additions and 78 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export
EXTERNAL_SERVICES := etcd watchtower traefik

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

ifeq ($(USE_SECRETS), true)
SECRETS := secrets
Expand Down Expand Up @@ -594,14 +594,13 @@ install: drupal-database

.PHONY: update-config-from-environment
## Updates configuration from environment variables.
## Allow all commands to fail as the user may not have all the modules like matomo, etc.
## Allow all commands to fail as the user may not have all the modules.
.SILENT: update-config-from-environment
update-config-from-environment:
-docker compose exec -T drupal with-contenv bash -lc "for_all_sites configure_islandora_module"
-docker compose exec -T drupal with-contenv bash -lc "for_all_sites configure_jwt_module"
-docker compose exec -T drupal with-contenv bash -lc "for_all_sites configure_islandora_default_module"
-docker compose exec -T drupal with-contenv bash -lc "for_all_sites configure_search_api_solr_module"
-docker compose exec -T drupal with-contenv bash -lc "for_all_sites configure_matomo_module"
-docker compose exec -T drupal with-contenv bash -lc "for_all_sites configure_openseadragon"
-docker compose exec -T drupal with-contenv bash -lc "for_all_sites configure_islandora_default_module"

Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ the things you can do. If you want to poke around, here's all the services that
| Activemq | [http://islandora.traefik.me:8161](http://islandora.traefik.me:8161) | No |
| Solr | [http://islandora.traefik.me:8983](http://islandora.traefik.me:8983) | No |
| Cantaloupe | [https://islandora.traefik.me/cantaloupe](https://islandora.traefik.me/cantaloupe) | Yes |
| Matomo | [https://islandora.traefik.me/matomo/](https://islandora.traefik.me/matomo/) | Yes |
| Code Server | [https://islandora.traefik.me:8443/](https://islandora.traefik.me:8443/) | No |

> **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.
Expand Down
3 changes: 0 additions & 3 deletions build/docker-compose/docker-compose.acme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,3 @@ services:
drupal:
labels:
- traefik.http.routers.${COMPOSE_PROJECT_NAME-isle-dc}-drupal_https.tls.certresolver=myresolver
matomo:
labels:
- traefik.http.routers.${COMPOSE_PROJECT_NAME-isle-dc}-matomo_https.tls.certresolver=myresolver
1 change: 0 additions & 1 deletion build/docker-compose/docker-compose.drupal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ services:
DRUPAL_DEFAULT_CANTALOUPE_URL: https://${DOMAIN}/cantaloupe/iiif/2
DRUPAL_DEFAULT_FCREPO_HOST: ${DOMAIN}
DRUPAL_DEFAULT_FCREPO_PORT: 8081
DRUPAL_DEFAULT_MATOMO_URL: https://${DOMAIN}/matomo/
DRUPAL_DEFAULT_SITE_URL: http://${DOMAIN} # Make sure this is just http and not https!
DRUPAL_DEFAULT_PROFILE: ${DRUPAL_INSTALL_PROFILE}
PHP_MEMORY_LIMIT: ${PHP_MEMORY_LIMIT}
Expand Down
41 changes: 0 additions & 41 deletions build/docker-compose/docker-compose.matomo.yml

This file was deleted.

9 changes: 0 additions & 9 deletions build/docker-compose/docker-compose.secrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ secrets:
file: "../../secrets/live/JWT_PUBLIC_KEY"
JWT_PRIVATE_KEY:
file: "../../secrets/live/JWT_PRIVATE_KEY"
MATOMO_DB_PASSWORD:
file: "../../secrets/live/MATOMO_DB_PASSWORD"
MATOMO_USER_PASS:
file: "../../secrets/live/MATOMO_USER_PASS"
TOMCAT_ADMIN_PASSWORD:
file: "../../secrets/live/TOMCAT_ADMIN_PASSWORD"
services:
Expand Down Expand Up @@ -74,11 +70,6 @@ services:
mariadb:
secrets:
- DB_ROOT_PASSWORD
matomo:
secrets:
- DB_ROOT_PASSWORD
- MATOMO_DB_PASSWORD
- MATOMO_USER_PASS
milliner:
secrets:
- JWT_ADMIN_TOKEN
Expand Down
2 changes: 1 addition & 1 deletion build/docker-compose/docker-compose.traefik.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ services:
- --providers.file.filename=/etc/traefik/tls.yml
- '--providers.docker.defaultRule=Host(`${DOMAIN}`)'
ports:
- 80:80 # drupal, cantaloupe, matomo
- 80:80 # drupal, cantaloupe
- 443:443 # https for ^^^
- ${FEDORA_PORT:-8081}:8081 # fedora, needs to be exposed for cantaloupe
# Don't do any of these in production
Expand Down
1 change: 0 additions & 1 deletion build/rootfs/etc/cont-init.d/04-custom-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ function main {
update_settings_php "${site}"
# Ensure that settings which depend on environment variables like service urls are set dynamically on startup.
configure_islandora_module "${site}"
configure_matomo_module "${site}"
configure_openseadragon "${site}"
configure_islandora_default_module "${site}"
# The following commands require several services
Expand Down
11 changes: 0 additions & 11 deletions build/scripts/generate-secrets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@ function generate_jwt_keys() {
openssl rsa -pubout -in /tmp/private.key -out /tmp/public.key &>/dev/null
}

function generate_matomo_password() {
# Password is in two parts, the part that is human readable and entered into
# the form, and the hashed version which is written into the database.
random_secret 'A-Za-z0-9' 48 MATOMO_USER_PASS_NON_HASHED
MATOMO_USER_PASS=$(cat /secrets/live/MATOMO_USER_PASS_NON_HASHED)
php -r "echo password_hash(md5('${MATOMO_USER_PASS}'), PASSWORD_DEFAULT);" >/secrets/live/MATOMO_USER_PASS
}

function random_secret() {
local characters=${1}
local size=${2}
Expand Down Expand Up @@ -44,9 +36,6 @@ function main() {
JWT_PUBLIC_KEY)
cp /tmp/public.key /secrets/live/JWT_PUBLIC_KEY
;;
MATOMO_USER_PASS)
generate_matomo_password
;;
*)
random_secret 'A-Za-z0-9' 48 "${secret}"
;;
Expand Down
6 changes: 1 addition & 5 deletions sample.env
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ INCLUDE_ETCD_SERVICE=false
INCLUDE_CODE_SERVER_SERVICE=false

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

# Expose Matomo at ${DOMAIN}/matomo
EXPOSE_MATOMO=true

# Expose Drupal at ${DOMAIN}
EXPOSE_DRUPAL=true

Expand Down Expand Up @@ -186,7 +183,6 @@ HOUDINI_MEMORY_LIMIT=1G
HYPERCUBE_MEMORY_LIMIT=512M
IDE_MEMORY_LIMIT=5G
MARIADB_MEMORY_LIMIT=1G
MATOMO_MEMORY_LIMIT=1G
MILLINER_MEMORY_LIMIT=1G
RECAST_MEMORY_LIMIT=1G
SOLR_MEMORY_LIMIT=8G
Expand Down
1 change: 0 additions & 1 deletion secrets/template/MATOMO_DB_PASSWORD

This file was deleted.

1 change: 0 additions & 1 deletion secrets/template/MATOMO_USER_PASS

This file was deleted.

0 comments on commit b270eec

Please sign in to comment.