ClickHouse / clickhouse-jdbc-bridge

A JDBC proxy from ClickHouse to external databases
Apache License 2.0
168 stars 60 forks source link

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

Closed UnamedRus closed 2 years ago

UnamedRus commented 2 years ago

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

https://github.com/ClickHouse/clickhouse-jdbc-bridge/blob/f02b015093a3ef6b159c8ebd5fec1ceca98e0e87/docker/docker-entrypoint.sh#L13

zhicwu commented 2 years ago

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.

UnamedRus commented 2 years ago

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

But i like your approach more.

Thanks