Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[minor] Remove matomo from other dependencies #336

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ up: bake | docker-compose
"ActiveMQ|https://activemq.islandora.dev" \
"Blazegraph|https://blazegraph.islandora.dev/bigdata/" \
"Fedora|https://fcrepo.islandora.dev/fcrepo/rest/" \
"Matomo|https://islandora.dev/matomo/index.php" \
"Cantaloupe|https://islandora.dev/cantaloupe" \
"Solr|https://solr.islandora.dev" \
"Traefik|https://traefik.islandora.dev" \
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,6 @@ Waiting for installation...
ActiveMQ https://activemq.islandora.dev
Blazegraph https://blazegraph.islandora.dev/bigdata/
Fedora https://fcrepo.islandora.dev/fcrepo/rest/
Matomo https://islandora.dev/matomo/index.php
Solr https://solr.islandora.dev
Traefik https://traefik.islandora.dev
```
Expand Down
26 changes: 0 additions & 26 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ volumes:
drupal-solr-config: {}
fcrepo-data: {}
mariadb-data: {}
matomo-data: {}
solr-data: {}

secrets:
Expand Down Expand Up @@ -129,8 +128,6 @@ services:
DRUPAL_DEFAULT_FCREPO_PORT: 8080
DRUPAL_DEFAULT_FCREPO_URL: "https://fcrepo.islandora.dev/fcrepo/rest/"
DRUPAL_DEFAULT_INSTALL_EXISTING_CONFIG: "true"
DRUPAL_DEFAULT_MATOMO_URL_HTTP: "http://islandora.dev/matomo/"
DRUPAL_DEFAULT_MATOMO_URL_HTTPS: "https://islandora.dev/matomo/"
DRUPAL_DEFAULT_NAME: "Islandora Digital Collections"
DRUPAL_DEFAULT_PROFILE: "minimal"
DRUPAL_DEFAULT_SITE_URL: "islandora.dev"
Expand Down Expand Up @@ -254,29 +251,6 @@ services:
traefik.http.services.fcrepo.loadbalancer.server.port: 8080
volumes:
- fcrepo-data:/data:rw
matomo:
<<: *common
image: ${REPOSITORY:-local}/matomo:${TAG:-latest}
labels:
<<: *traefik-https-redirect-middleware
traefik.http.middlewares.matomo-custom-request-headers.headers.customrequestheaders.X-Forwarded-Uri: /matomo
traefik.http.middlewares.matomo-append-slash.redirectregex.regex: ^(https?://[^/]+/matomo)$$
traefik.http.middlewares.matomo-append-slash.redirectregex.replacement: $${1}/
traefik.http.middlewares.matomo-strip-prefix.stripprefix.prefixes: /matomo
traefik.http.middlewares.matomo.chain.middlewares: matomo-append-slash,matomo-strip-prefix,matomo-custom-request-headers
traefik.http.routers.matomo_http.entrypoints: http
traefik.http.routers.matomo_http.middlewares: *traefik-https-redirect
traefik.http.routers.matomo_http.rule: &traefik-host-matomo Host(`islandora.dev`) && PathPrefix(`/matomo`)
traefik.http.routers.matomo_http.service: matomo
traefik.http.routers.matomo_https.entrypoints: https
traefik.http.routers.matomo_https.middlewares: matomo
traefik.http.routers.matomo_https.rule: *traefik-host-matomo
traefik.http.routers.matomo_https.tls: true
traefik.http.services.matomo.loadbalancer.server.port: 80
environment:
MATOMO_DEFAULT_HOST: "https://islandora.dev"
volumes:
- matomo-data:/var/www/matomo:rw
solr:
<<: *common
image: ${REPOSITORY:-local}/solr:${TAG:-latest}
Expand Down
2 changes: 0 additions & 2 deletions drupal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ ENV \
DRUPAL_DEFAULT_INSTALL_EXISTING_CONFIG=false \
DRUPAL_DEFAULT_INSTALL=true \
DRUPAL_DEFAULT_LOCALE=en \
DRUPAL_DEFAULT_MATOMO_URL_HTTP=http://islandora.traefik.me/matomo/ \
DRUPAL_DEFAULT_MATOMO_URL_HTTPS=https://islandora.traefik.me/matomo/ \
DRUPAL_DEFAULT_NAME=Default \
DRUPAL_DEFAULT_PROFILE=standard \
DRUPAL_DEFAULT_SALT=9PPaL0CxZAIcq0l9wxgDGlCZrp7JdT_x7v9gVzpdbUjMt1PqDz3uD0Zy-i16DuJ1-Htuq5hqeg \
Expand Down
21 changes: 0 additions & 21 deletions drupal/rootfs/etc/islandora/utilities.sh
Original file line number Diff line number Diff line change
Expand Up @@ -580,27 +580,6 @@ function create_solr_core_with_default_config {
create_solr_core "${site}"
}

# Install matomo and configure.
function configure_matomo_module {
local site site_url site_id matomo_url matomo_http_url

if ! drush pm-list --format=string --type=module --status=enabled --no-core | grep -q matomo; then
echo "matomo is not installed. Skipping configuration"
return 0
fi

site="${1}"
shift
site_url=$(drupal_site_env "${site}" "SITE_URL")
site_id=$(($(site_index "${site}") + 1))
matomo_url=$(drupal_site_env "${site}" "MATOMO_URL")
matomo_http_url="http${matomo_url#https}"

drush -l "${site_url}" -y config-set matomo.settings site_id "${site_id}"
drush -l "${site_url}" -y config-set matomo.settings url_http "${matomo_http_url}"
drush -l "${site_url}" -y config-set matomo.settings url_https "${matomo_url}"
}

# Configure Openseadragon to point use cantaloupe.
function configure_openseadragon {
local site site_url cantaloupe_url
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version: "3.8"
x-common: &common
restart: "no"

name: matomo-servicestartswithdefaults
name: milliner-servicestartswithdefaults
services:
milliner:
<<: *common
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ $config['islandora.settings']['broker_url'] = file_get_contents($path . 'DRUPAL_
$config['islandora.settings']['broker_user'] = file_exists($path . 'DRUPAL_DEFAULT_BROKER_USER') ? file_get_contents($path . 'DRUPAL_DEFAULT_BROKER_USER') : NULL;
$config['islandora.settings']['broker_password'] = file_exists($path . 'DRUPAL_DEFAULT_BROKER_PASSWORD') ? file_get_contents($path . 'DRUPAL_DEFAULT_BROKER_PASSWORD') : NULL;
$config['islandora_iiif.settings']['iiif_server'] = file_get_contents($path . 'DRUPAL_DEFAULT_CANTALOUPE_URL');
$config['matomo.settings']['url_http'] = file_get_contents($path . 'DRUPAL_DEFAULT_MATOMO_URL');
$config['matomo.settings']['url_https'] = file_get_contents($path . 'DRUPAL_DEFAULT_MATOMO_URL');
$config['openseadragon.settings']['iiif_server'] = file_get_contents($path . 'DRUPAL_DEFAULT_CANTALOUPE_URL');
$config['search_api.server.default_solr_server']['backend_config']['connector_config']['host'] = file_get_contents($path . 'DRUPAL_DEFAULT_SOLR_HOST');
$config['search_api.server.default_solr_server']['backend_config']['connector_config']['port'] = file_get_contents($path . 'DRUPAL_DEFAULT_SOLR_PORT');
Expand Down
Loading