Closed slampunk closed 5 years ago
The following is probably simpler to understand:
url=$(grep "^org.opencastproject.db.jdbc.url" etc/custom.properties | tr -d ' ' | cut -d '=' -f 2-)
Is it OK for you if I include the change for 5.2
and newer or do you need it in an older image?
ACTIVEMQ_BROKER_URL
is not affected; there is no script that checks if ActiveMQ is already available since that is done by Opencast anyway The only other place that uses this command is in the health check script.
Fixed starting with 5.2
.
I've been having trouble with passing the
useSSL=false
parameter to the JDBC connection string. E.g. docker run -e "ORG_OPENCASTPROJECT_DB_VENDOR=MySQL" -e "ORG_OPENCASTPROJECT_DB_JDBC_URL=jdbc:mysql://oc-mysql:3306/opencast?useSSL=false" ..other configs... producesIt seems to be the case that the
useSSL=false
parameter is not appended to the JDBC connection string.Looking at
Dockerfiles/{distribution}/assets/scripts/jdbc.sh
, the connection string is parsed withUsing
=
as a delimiter, the second column forresults in
Instead of only being the bearer of bad news, I come bearing gifts :) An alternative
awk
command like this should work:The above command (or whatever ends up being accepted) should be applied to
ACTIVEMQ_BROKER_URL
as that connection string also allows the passing of parameters.