-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Matomo github/docker repos #3602
Comments
Why installing Matomo in our own cluster
What
How
|
@halkeye do you see anything else? |
nothing else comes to mind the first two how's are already done by me, https://github.com/halkeye-docker/matomo is way more up to date as I didn't have enough permissions to iterate on infra.ci |
Not sure the goals of this addition, but probably worth noting that another reason to switch is the built in gdpr support, if you use the existing database i have, you'll have most things anonymized, but especially referrals disabled (i noticed after a few days that peoples private jenkins installs were being logged to plugins.jenkins.io stats as referrals) |
as per jenkins-infra/helpdesk#3602 need jenkins-infra/azure-net#132 from azure-net --------- Signed-off-by: Damien Duportal <[email protected]> Co-authored-by: Damien Duportal <[email protected]>
Update:
WiP:
|
Update:
|
WiP on the helm chart: jenkins-infra/kubernetes-management#4032 |
Update:
WiP:
|
Update: database creation in jenkins-infra/azure#497 |
Related to jenkins-infra/helpdesk#3602 This PR adds a managed MySQL database for matomo with an associated user and password. The grants are also applied to this user as per https://matomo.org/faq/how-to-install/faq_23484/. Note that the `FILE` grant is not added because it would be global to the `public-db` instance while we're not even sure it is needed (or if the mentioned file load extension is present on Azure flexible instances) (edit) Note: the updatecli check is failing as usual when introducing a new dependency. In order to validate it, I ran it locally (with the `scmid` commented in the target) which updated the hcl file as expected. Signed-off-by: Damien Duportal <[email protected]>
Update:
WiP: installing an initial release without ingress |
Update: issue while starting the pod (cc @halkeye if it rings a bell or if you have some thoughts) with the following error:
=> There are quite some differences between both explaining our error
Easy to reproduce:
Gotta try ith the |
Specifying the user
I believe we should try switching to the bitnami image |
I was trying to make the docker file diskless by including plugins in the docker file, especially good for renovate/updatecli type thing, but php apps have everything nested. I'm pretty sure bitnami needs persistent disk and you do updates in the app, not the docker image. I think most of the stuff in entrypoint can get moved to dockerfile instead of entryfile. honestly the only part of entrypoint that needs to be on startup is envsubst to allow database env variables. |
I'm still not sure which way to go:
Gotta try you suggestion because the bitnami image errors with
|
gotcha, it's running now (had to remove the Thanks for the explanation @halkeye , it helps! |
OK, too much errors everywhere, I give up. @halkeye do you have a recent installation working? I don't understand how the helm chart of bitnami can work with the setup in jenkins-infra/kubernetes-management#4032 : are you using this helm chart in your cluster? It can't connect to the database while I can It seems there is a lot of thing: plugins in matomo, cronjobs that do whatever tasks, it's really hard to start this service without help. |
https://github.com/halkeye-docker/matomo is the version i eventually got running locally. I'm pretty sure i mentioned it in the task, but I eventually went to my own fork because it was too hard to test with infra.ci (I think it wasn't building or something, or i needed to actually tag it, can't remember now) https://github.com/jenkins-infra/kubernetes-management/compare/helpdesk-3530-matomo-2?expand=1 is what I had locally when i was testing it. I don't know if its any different than what you have so far. |
Thanks Gavin! The problem is that this looks like a LOT of concepts (there are inline YAML for cronjobs doing things, plugins preinstalled in the helm chart, etc.). It's way more complicated to deploy and maintain in a (public) production context with so much moving pieces and no prior knowledge of the tooling. Was there a particular reason to avoid the persistent volume? I would like to understand this as it might not be a constraint at all in the Jenkins case (I mean, azurefile are cheap and really good perfs. most of the time) Besides, we are having weird issues with AKS, MySQL and ARM (on one side) and the bitnami helm-chart and MySQL on another. What it means is that it will takes quite some time to bootstrap this in a "good enough for production" context and it needs some planning and back and forth to gain the required knowledge. |
Honestly, it was done because originally at work we don't have access to storage in our internal deployments, but also because the bitnami image extracts the tarball into the persistent storage (kinda like jenkins plugin does for plugins). So to upgrade you need to click something in the UI that triggers an upgrade. Which means you can't use updatecli or renovate to trigger upgrades. Plus really all you need to persist is config.ini.php Speaking of config.ini.php, you may want to use the one from my fork, I believe matomo is a bit picky about the config file, and if keys are missing, triggers a config page instead of the application itself. There's also the matomo cloud option. |
Note: we should setup stats for every jenkins.io subdomain not analysed yet. |
Service(s)
infra.ci.jenkins.io, Docker Hub, GitHub
Summary
Original request I never finished - #2684 (comment)
I recreated the repo - https://github.com/jenkins-infra/docker-mamoto
Build is working - https://infra.ci.jenkins.io/job/docker-jobs/job/docker-mamoto/job/main/55/pipeline-console/?selected-node=113
Buuuuut, i guess container repo was also removed, so needs to be re-created
Also related to #3530
Reproduction steps
No response
The text was updated successfully, but these errors were encountered: