mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-04-25 21:56:01 +03:00
[GH-ISSUE #2144] Cloudbeaver mongo drivers installation for AKS deployment #643
Labels
No labels
AS
can't reproduce
can't reproduce
deployment
development
documentation
duplicate
duplicate
ee
enhancement
external
new driver
performance
pull-request
third party issue
wait for response
wait for review
wontfix
x:Oracle
x:cassandra
x:clickhouse
x:db2
x:duckdb
x:greenplum
x:h2
x:h2gis
x:hana
x:hive
x:intersystems
x:kyuubi
x:maria
x:mongo
x:mysql
x:postgresql
x:presto
x:sql server
x:sqlite
x:teradata
x:trino
xf:accessibility
xf:administration
xf:ai
xf:authentication
xf:aws
xf:commit-mode
xf:connection
xf:dark theme
xf:data editor
xf:datatransfer
xf:dba
xf:driver management
xf:erd
xf:filters
xf:i18n
xf:i18n
xf:installer
xf:json
xf:kerberos
xf:ldap
xf:local config
xf:log viewer
xf:metadata
xf:metadata editor
xf:navigator
xf:okta
xf:query manager
xf:resource manager
xf:scripts
xf:sql editor
xf:tasks
xf:ui/uix
xo: Firefox
xo:eclipse
xo:internet explorer
xo:macos
xp:major
xrn:internal
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cloudbeaver#643
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rashapudenko on GitHub (Nov 20, 2023).
Original GitHub issue: https://github.com/dbeaver/cloudbeaver/issues/2144
Hi,
So I've followed these 2 wiki pages for mongo driver addition:
https://github.com/dbeaver/cloudbeaver/wiki/Build-and-deploy
https://github.com/dbeaver/cloudbeaver/wiki/Adding-new-database-drivers#Drivers-and-bundles
I am trying to build deployment pipeline in Azure Devops for deploying cloudbeaver as Helm chart into AKS.
Pipeline build agent tool versions are the following:
/usr/lib/jvm/java-17-openjdk-amd64/bin/java --version
openjdk 17.0.8.1 2023-08-24
OpenJDK Runtime Environment (build 17.0.8.1+1-Ubuntu-0ubuntu120.04)
OpenJDK 64-Bit Server VM (build 17.0.8.1+1-Ubuntu-0ubuntu120.04, mixed mode, sharing)
mvn --version
Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Found tool in cache: yarn 1.22.21 x64
Build succeeded, build logs can be found in attached file
build_logs.txt
In this files following commands were executed after checking out https://github.com/dbeaver/cloudbeaver @ devel:
cat ./server/drivers/pom.xml <- verification
cat ./server/bundles/io.cloudbeaver.resources.drivers.base/plugin.xml <- verification
cat ./server/drivers/mongodb/pom.xml <- verification
cd ./deploy
JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 <- multimple JDK are installed, so I set this var for this step in particular
./build.sh
sed -i '/java.security/d' /path/to/cloudbeaver/deploy/docker/Dockerfile <- our custom build agents doesn't have this dir, so I simply dropped this instruction for now
Followed by Docker image build:
docker-build-logs.txt
Issued docker command here: /usr/bin/docker build -f /path/to/cloudbeaver/deploy/docker/Dockerfile --alotofdefaultlabels -t ***.azurecr.io/cloudbeaver:626331 /path/to/cloudbeaver/deploy
Also succeeded.
After that, Helm deploy also succeeded, where I have (I'll mention only important things IMO):
"mongo-test": { "provider": "mongodb", "driver": "mongodb-jdbc", "name": "mongo-test", "save-password": false, "show-system-objects": false, "read-only": true, "template": true, "configuration": { "host": "***.mongo.cosmos.azure.com", "port": "10255", "url": "***", "type": "dev", "provider-properties": { "@dbeaver-show-non-default-db@": "false" } } }, "mongo-test-2": { "provider": "mongodb", "driver": "mongodb-jdbc", "name": "mongo-test-2", "save-password": false, "show-system-objects": false, "read-only": true, "template": true, "configuration": { "host": "***.mongo.cosmos.azure.com", "port": "10255", "url": "***", "type": "dev", "provider-properties": { "@dbeaver-show-non-default-db@": "false" } } }Configmap with these mounts to /opt/cloudbeaver/workspace/GlobalConfiguration/.dbeaver/data-sources.json
deployment.txt
With image we've built previously Helm deployment succeeds, but pod logs shows the following error:
"17-11-2023 21:36:44.632 [qtp1024240671-28] DEBUG o.j.d.r.DataSourceSerializerModern - Can't find datasource provider mongodb for datasource 'mongo-test'
17-11-2023 21:36:44.632 [qtp1024240671-28] DEBUG o.j.d.r.DataSourceSerializerModern - Can't find driver mongodb-jdbc in datasource provider mongodb for datasource 'mongo-test'. Create new driver"
Would appreciate any help, if more info required - LMK.
Thanks!