ClickHouse/clickhouse-jdbc-bridge

Looks like it's not possible to use docker env for driver download

UnamedRus opened this issue · 2 comments

clickhouse-jdbc-bridge by default has clickhouse-jdbc-driver in ./drivers dir, which effectively disable driver download.

root@9ee0fec413ce:/app# ls ./drivers/
clickhouse-jdbc-0.3.1-patch-shaded.jar

if [ "$jdbc_drivers" != "" ] && [ "$(ls -A $driver_dir)" == "" ]; then

Thanks @UnamedRus. Actually it is possible when you mount an empty directory. On production, it's better to mount a directory with tested drivers, instead of relying on this function or specifying the driver URL in datasource configuration.

I did use workaround with rm -rf /app/drivers/* in cmd.

But i like your approach more.

Thanks