Welcome to Knowage Q&A, where you can ask questions and receive answers from other members of the community.
0 votes
1 view
hi guys.. how do I install knowage with docker and use a locally installed mariaDB instead of pulling a DB image. a step by step guide would be really helpful. thanks in advance.
Environment knowage 6.1.1, centos 7
in Docker by (400 points)

1 Answer

0 votes

Unfortunately, the only configuration that is officially supported is the one with our docker-compose file.

If you want to achieve something different, you could fork our repo at https://github.com/KnowageLabs/Knowage-Server-Docker and I will encourage you to submit a pull request!

by (15.2k points)

thanks for your response. I have cloned that project to my local Centos 7 server and allowed mariadb through the firewall for remote connections. I can actually access my locally installed mariadb from the 'knowageserverdocker_knowage_1' image. Can I from the 'server.xml' file adjust to connect to that local instance of mariadb?

NOTE: The local instance is on the Host Machine(machine hosting docker).

A quick one! why do we have 'Knowage-Server-Docker' and '6.1.1' directories both having the same content!? Does running 'docker-compose up' have to be in any specific one of those or I can run in any?..

when I test the datasource even with wrong configurations from the browser knowage says the parameters are correct!? what should I probably do/change in the 'server.xml' ?

thanks
You need to run "docker-compose up" in the same folder where your docker-compose-yml file is.
How do I use JNDI in the docker setup?
At the moment the only way is inspect the container and change the server.xml to add the JNDI resource.

Anyway, I would suggest to use JDBC connection in this case, as they are anyway manage with an internal connection pool.

I have used JDBC with a connection path to an external mariadb database. the parameters test correct at the datasource level but when I get to creating a dataset I get 'Impossible to continue if dataSource label is empty' error on the screen. any ideas what that could be?

NOTE: MariaDB is in the Host machine

...