-
Notifications
You must be signed in to change notification settings - Fork 9k
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
cp '/opt/bitnami/matomo/config/config.ini.php': Read-only file system #27634
Comments
I even tried change owner ship over initContainer for this directory
My Dockerfile is very simple
|
let me know if u'll need any info... Thank you for the help!!! |
@RaimundasR You can try to mount it in this |
Thanks for suggestion @im-jinxinwang, but then I need move One more thing, I can't see in the pod logs, when and what copies this file |
@RaimundasR That might not work well with bitnami's image. You need to customize the startup script yourself |
Ok, I finally managed it. Actually, it’s very easy. You just need to mount your custom config.ini.php to any directory in the pod container. I did it in /tmp. Then, after the pod connects to the database, you can simply cp the config.ini.php using customPostInitScripts from /tmp to /opt/bitnami/matomo/config. That’s it. So, the solution was:
And then:
In this way, you can copy any file you need using ConfigMap and a bash script after the pod connects to the database. But thanks for the @im-jinxinwang ;) |
issue can be closed ;) 🍄 🤖 🥳 |
Name and Version
bitnami/matomo:7.3.5
What architecture are you using?
amd64
What steps will reproduce the bug?
I am encountering an issue while attempting to mount a customized config.ini.php file into a Matomo container within a pod. Initially, the file inside the container is replaced with my configuration values. However, upon Matomo pod connection to the MariaDB pod, an issue arises where it appears something is attempting to overwrite the config.ini.php file mounted via ConfigMap. This results in a permission-related error due to the file being mounted with root:1001.
my configmap from the matomo helm charts values:
ContainerSec....context:
My cluster allows everything only as non root user and also privileged = false
I need my own
config.ini.php
because matomo doesn't have another way to automate SSO setup and enable plugins, this is why I also use my customDockerfile
for matomo to download plugins into an image and to be ready to enable thoseconfig.ini.php
file....Anybody can help me, with how I can resolve this issue, and why it tried to copy the file on my config file mounted over configmap one more time?
Thank you.
What is the expected behavior?
I need to enable plugins automatically over deployment with helm charts.
What do you see instead?
I can't stop/force do not cp
config.ini.php
into directory'/opt/bitnami/matomo/config/
as my file already exists from configmapso I see this 👇
The text was updated successfully, but these errors were encountered: