Skip to content

Commit 6deccb8

Browse files
authored
Merge pull request #29 from MITLibraries/infra-577
Upgrade to Matomo 5.4.0
2 parents ece68a9 + 6a8da86 commit 6deccb8

File tree

1,084 files changed

+144612
-2722
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,084 files changed

+144612
-2722
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM matomo:5.3.2
1+
FROM matomo:5.4.0
22
# checkov:skip=CKV_DOCKER_2:Skipping HEALTHCHECK configuration for now
33
# checkov:skip=CKV_DOCKER_3:The container actually runs as www-data user
44

@@ -17,6 +17,9 @@ COPY ./files/plugin-UsersFlow-5.0.5/ /var/www/html/plugins/UsersFlow
1717
# Add the SearchEngineKeywordsPerformance plugin
1818
COPY ./files/plugin-SearchEngineKeywordsPerformance-5.0.22/ /var/www/html/plugins/SearchEngineKeywordsPerformance
1919

20+
# Add the CustomReports plugin
21+
COPY ./files/plugin-CustomReports-5.4.3/ /var/www/html/plugins/CustomReports
22+
2023
# Our custom configuration settings.
2124
COPY ./files/config.ini.php /var/www/html/config/config.ini.php
2225

docs/HowTos/HOWTO-premium-plugins.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ The `config.ini.php` file has two lists of plugins under two different headings.
1818

1919
In the end, the premium plugin installation is a two-pass process.
2020

21-
## Process
21+
## Process to Install New Premium Plugin
2222

2323
### High level overview
2424

25-
1. Install license key (via UI or CLI) so that it is in the database (this apparently only needs to be done once as all future premium plugins get linked to the same license key).
25+
1. Install license key (via UI or CLI) so that it is in the database (this only needs to be done once as all future premium plugins get linked to the same license key).
2626
2. Go through a dev -> stage -> prod deployment cycle of the container to install the plugin folder(s) into the container
2727
3. Activate the new plugin(s) (via UI or CLI) so that any database changes are properly executed.
2828
4. Go through a dev -> stage -> prod deployment cycle of the container to match the updated `config.ini.php` file on the server.
@@ -41,8 +41,14 @@ According to the support team at Matomo, the premium license key can be installe
4141

4242
This needs to be done once on each of the stage & prod instances of Matomo.
4343

44+
**Note**: It is possible to add the license key to the Dev1 instance of Matomo for a short period of time for testing a new premium plugin without breaking either the Stage or Prod instances of Matomo. This is useful for the initial test of a new premium plugin.
45+
4446
#### 2. Install the plugin files
4547

48+
First, download the plugin source files from shop.matomo.org (use the username/password in the "Matomo Plugins" secret in LastPass to log in). Once the .zip files are downloaded, expand them and save them in the `files/` folder in this repository.
49+
50+
Second, update the [Dockerfile](../../Dockerfile) with a new `COPY` command to copy the the plugin files to the correct directory in the image.
51+
4652
In this phase, the files are installed in the container **but** no changes are made to the `config.ini.php` file. This will **not** activate the plugins, it will just make them visible in the UI.
4753

4854
**Note**: It is possible to do this with the `/var/www/html/console` utility when logged in to the cli of the running conatiner. However, that method introduces potential file permission errors since the command is run as `root` and the content in the `/var/www/html` folder needs to be owned by `www-data`.
@@ -62,3 +68,7 @@ It's also important to note that this `plugin:activate` command very likely make
6268
#### 4. Backfill this repo
6369

6470
Update the `config.ini.php` file in this repo and go through another dev -> stage -> prod deployment to ensure that the repo code matches the container running in AWS.
71+
72+
## Process to Upgrade Existing Premium Plugin
73+
74+
See the [HOWTO-matomo-upgrade](./HOWTO-matomo-upgrade.md) documentation. Premium plug updates are the same as regular plugin updates.

0 commit comments

Comments
 (0)