You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I add a random location whereby any file will be added to server.xml after line 42
sed -i "s|${old_connection}|${new_connection}|" ${KNOWAGE_DIRECTORY}/${APACHE_TOMCAT_PACKAGE}/conf/server.xml
# Adding all content of customJNDIs folder to server.xml
sed -i '/<!-- KNOWAGE -->/r'<(cat ${KNOWAGE_DIRECTORY}/${APACHE_TOMCAT_PACKAGE}/customJNDIs/*) -i -- ${KNOWAGE_DIRECTORY}/${APACHE_TOMCAT_PACKAGE}/conf/server.xml
•• Testing solution works : **
In this case to test this is working, I added the code overwriting the entrypoint.sh and then my jdbc file according to
docker-compose up -d BI_knowage0 && sleep 5 && docker-compose exec BI_knowage0 more /home/knowage/apache-tomcat-8.5.37/conf/server.xml
Knowage starts without issue this shows my jdbc source which I added as JNDI source... I'm just learning through knowage so I am yet to use it (I'm automating as much as possible so will try to see if I can automate the JNDI datasource creation and a report next... I just thought maybe the enhancement request makes sense to at least provide a way to add snippet into server.xml
The text was updated successfully, but these errors were encountered:
At the moment beside creating a new image/Dockerfile, it is not possible to add a JDBC source at container level via environment variables or volume
** similar issue : **
#11
** Description of limitation : **
I try to use this doc to add a jdbc datasource in server.xml
docker-compose.yml
Then I run :
This results in infamous sed error:
** Possible solution : adding feature in entrypoint.sh : **
Current code :
https://github.com/KnowageLabs/Knowage-Server-Docker/blob/master/entrypoint.sh#L42 :
I add a random location whereby any file will be added to server.xml after line 42
•• Testing solution works : **
In this case to test this is working, I added the code overwriting the entrypoint.sh and then my jdbc file according to
Then I run :
Knowage starts without issue this shows my jdbc source which I added as JNDI source... I'm just learning through knowage so I am yet to use it (I'm automating as much as possible so will try to see if I can automate the JNDI datasource creation and a report next... I just thought maybe the enhancement request makes sense to at least provide a way to add snippet into server.xml
The text was updated successfully, but these errors were encountered: