Skip to content

Commit 40fe747

Browse files
ggxedNexus6v2
andauthored
Release 26.0.0 (#83)
* dbeaver/dbeaver-devops#2304 Update devel (#72) * dbeaver/dbeaver-devops#2354 Added Using external database paragraph w… (#74) * dbeaver/dbeaver-devops#2354 Added Using external database paragraph with db configuration * dbeaver/dbeaver-devops#2354 Added supported db drivers info in .env file * dbeaver/dbeaver-devops#2329 Added JAVA_TOOL_OPTIONS in docker deploym… (#75) * dbeaver/dbeaver-devops#2329 Added JAVA_TOOL_OPTIONS in docker deploymnet to pass Java parameters in services * dbeaver/dbeaver-devops#2329 Added JAVA_TOOL_OPTIONS example * dbeaver/dbeaver-devops#2423 Removed old not used cb-init.sql mount (#78) * dbeaver/dbeaver-devops#1669 Avoid keeping password in example (#79) * dbeaver/dbeaver-devops#1669 Avoid keeping password in example * dbeaver/dbeaver-devops#1669 Avoid keeping password in example * dbeaver/dbeaver-devops#1669 Update README * dbeaver/dbeaver-devops#1669 Removed k8s secret check for old password * dbeaver/dbeaver-devops#2459 Remove CLOUDBEAVER_PUBLIC_URL (#80) * dbeaver/pro#6761 added network mode host env (#73) * dbeaver/dbeaver-devops#2465 Added NETWORK_MODE=host env in postgres service in compose (#81) * dbeaver/dbeaver-devops#2512 Release 26.0.0 --------- Co-authored-by: Dmitrii Barnukov <29237913+Nexus6v2@users.noreply.github.com>
1 parent 7ab620d commit 40fe747

File tree

11 files changed

+94
-25
lines changed

11 files changed

+94
-25
lines changed

.env.example

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CLOUDBEAVER_VERSION_TAG=25.3.0
1+
CLOUDBEAVER_VERSION_TAG=26.0.0
22
IMAGE_SOURCE=dbeaver
33
PODMAN_IMAGE_SOURCE=docker.io/dbeaver
44
COMPOSE_PROJECT_NAME=dbeaver
@@ -7,13 +7,22 @@ CLOUDBEAVER_WEB_SERVER_PORT=8978
77
# Type of web server. Supported values: nginx, haproxy
88
PROXY_TYPE=nginx
99

10+
# Supported db drivers:
11+
# - for postgresql use 'postgres-jdbc' driver.
12+
# - for mysql or mariadb use 'mariaDB' driver.
13+
# - for oracle use 'oracle_thin' driver.
14+
# - for sql server use 'microsoft' driver.
15+
1016
CLOUDBEAVER_DB_DRIVER=postgres-jdbc
1117
CLOUDBEAVER_DB_URL=jdbc:postgresql://postgres:5432/cloudbeaver
1218
CLOUDBEAVER_DB_USER=postgres
13-
CLOUDBEAVER_DB_PASSWORD=StR0NgP@sSw0rd
19+
CLOUDBEAVER_DB_PASSWORD=
1420
CLOUDBEAVER_DB_SCHEMA=cb
1521
CLOUDBEAVER_QM_DB_DRIVER=${CLOUDBEAVER_DB_DRIVER}
1622
CLOUDBEAVER_QM_DB_URL=${CLOUDBEAVER_DB_URL}
1723
CLOUDBEAVER_QM_DB_USER=${CLOUDBEAVER_DB_USER}
1824
CLOUDBEAVER_QM_DB_PASSWORD=${CLOUDBEAVER_DB_PASSWORD}
1925
CLOUDBEAVER_QM_DB_SCHEMA=qm
26+
27+
# Java tool options for JVM configuration
28+
JAVA_TOOL_OPTIONS=

AWS/ecs-fargate/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
- Copy `variables.tf.example` to `variables.tf`
2323
- Open `variables.tf` file.
2424
- Specify `rds_db_version`, the default is `postgres:16.1`. Only PostgreSQL version can be specified.
25-
- Set the credentials for database in `cloudbeaver-db-env`. By default it is `postgres`.
26-
25+
- You must set the database password in `cloudbeaver-db-env`. The password is empty by default and the service will not start without it.
2726
5. Configure the deployment in `variables.tf` file as follows:
2827
- Set your `aws_account_id`, you can get it by logging into your AWS console:
2928

@@ -33,8 +32,8 @@
3332

3433
![alt text](images/image-1.png)
3534

36-
- Ensure that the `alb_certificate_Identifier` variable contains the ID from [AWS Certificate Manager](#importing-an-ssl-certificate-in-aws) corresponding to the domain name specified in the `CLOUDBEAVER_PUBLIC_URL` variable within variables.tf. The domain name in `CLOUDBEAVER_PUBLIC_URL` must match the domain for which the certificates have been issued.
37-
- You can customize the deployment version by updating the `cloudbeaver_version` environment variable. The default version is `25.2.0`.
35+
- Ensure that the `alb_certificate_Identifier` variable contains the ID from [AWS Certificate Manager](#importing-an-ssl-certificate-in-aws) corresponding to your domain name. The domain name must match the domain for which the certificates have been issued.
36+
- You can customize the deployment version by updating the `cloudbeaver_version` environment variable.
3837

3938
6. Run `terraform init` and then `terraform apply` in `ecs-fargate` directory to create the ECS cluster and complete the deployment.
4039

AWS/ecs-fargate/variables.tf.example

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ variable "cloudbeaver_image_name" {
2525
variable "cloudbeaver_version" {
2626
description = "The version of the cluster you want to deploy"
2727
type = string
28-
default = "25.3.0"
28+
default = "26.0.0"
2929
}
3030

3131
variable "alb_certificate_Identifier" {
@@ -87,7 +87,7 @@ variable "cloudbeaver-env" {
8787
},
8888
{
8989
"name": "CLOUDBEAVER_DB_PASSWORD",
90-
"value": "StR0NgP2s"
90+
"value": ""
9191
},
9292
{
9393
"name": "CLOUDBEAVER_DB_SCHEMA",
@@ -107,15 +107,11 @@ variable "cloudbeaver-env" {
107107
},
108108
{
109109
"name": "CLOUDBEAVER_QM_DB_PASSWORD",
110-
"value": "StR0NgP2s"
110+
"value": ""
111111
},
112112
{
113113
"name": "CLOUDBEAVER_QM_DB_SCHEMA",
114114
"value": "qm"
115-
},
116-
{
117-
"name": "CLOUDBEAVER_PUBLIC_URL",
118-
"value": "test-domain-name.databases.team"
119115
}]
120116
}
121117

@@ -136,7 +132,7 @@ variable "cloudbeaver-db-env" {
136132
# type = map(string)
137133
default = [
138134
{ "name": "POSTGRES_PASSWORD",
139-
"value": "postgres"},
135+
"value": ""},
140136
{ "name": "POSTGRES_USER",
141137
"value": "postgres"},
142138
{ "name": "POSTGRES_DB",

README.md

Lines changed: 67 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CloudBeaver Enterprise deployment
22

3-
### Version 25.3
3+
### Version 26.0
44

55
CloudBeaver Enterprise is a client-server application.
66
It requires server deployment. You can deploy it in several ways:
@@ -53,6 +53,15 @@ environment:
5353
```
5454
This step is only required for Nginx, as HAProxy resolves service names via Docker DNS automatically.
5555

56+
#### Java tool options
57+
58+
Java does not read system environment variables. To pass Java parameters to the Java process, use the `JAVA_TOOL_OPTIONS` variable in your `.env` file.
59+
60+
Example for proxy configuration:
61+
```
62+
JAVA_TOOL_OPTIONS="-Dhttp.proxy.host=<proxyname> -Dhttps.proxy.host=<proxyname> -Dhttp.proxy.port=<port> -Dhttps.proxy.port=<port>"
63+
```
64+
5665
### Configuring and starting the CloudBeaver cluster
5766
1. Clone repository
5867
```sh
@@ -62,7 +71,7 @@ This step is only required for Nginx, as HAProxy resolves service names via Dock
6271
- Navigate to `cloudbeaver-deploy`
6372
- Copy `.env.example` to `.env`
6473
- Edit the `.env` file to set configuration properties
65-
- It is highly recommended to change the default database password in `CLOUDBEAVER_DB_PASSWORD` variable
74+
- You must set the `CLOUDBEAVER_DB_PASSWORD` variable before starting the cluster. The database password is empty by default and the service will not start without it.
6675
3. Start the cluster
6776
- `docker-compose up -d` or `docker compose up -d`
6877
4. Ensure the following TCP ports are available in your network stack
@@ -73,6 +82,61 @@ This step is only required for Nginx, as HAProxy resolves service names via Dock
7382
### Stopping the cluster
7483
`docker-compose down`
7584

85+
### Using external database
86+
87+
By default, CloudBeaver stores all data in an internal PostgreSQL database. If you want to use it, skip this step.
88+
89+
If you want to use another database, you can configure it by editing the `.env` file:
90+
91+
1. Change `CLOUDBEAVER_DB_DRIVER` to driver for a database you want to use, for example: `postgres-jdbc`/`mariaDB`/`oracle_thin`/`microsoft`
92+
2. Change `CLOUDBEAVER_DB_URL` to the JDBC connection URL for your database.
93+
3. Set `CLOUDBEAVER_DB_USER` and `CLOUDBEAVER_DB_PASSWORD` with your database credentials.
94+
95+
#### Configure PostgreSQL database
96+
97+
Connect to your Postgres database and run:
98+
```
99+
CREATE SCHEMA IF NOT EXISTS cb;
100+
```
101+
102+
#### Configure MySQL/MariaDB database
103+
104+
**Note:** The MySQL driver is not included by default. To use MySQL as an internal database, connect using the MariaDB driver.
105+
106+
Connect to your MariaDB or MySQL database and run:
107+
```
108+
CREATE SCHEMA IF NOT EXISTS cb;
109+
```
110+
111+
You might need to add additional parameters to the `CLOUDBEAVER_DB_URL`:
112+
113+
- `allowPublicKeyRetrieval=true` — to allow the client to automatically request the public key from the server.
114+
- `autoReconnect=true` — to prevent the connection from closing after 8 hours of inactivity.
115+
116+
##### Example:
117+
118+
`CLOUDBEAVER_DB_URL=jdbc:mariadb://127.0.0.1:3306/cloudbeaver?autoReconnect=true&allowPublicKeyRetrieval=true`
119+
120+
#### Configure Oracle database
121+
122+
Connect to your Oracle database and run:
123+
```
124+
CREATE USER CB;
125+
GRANT UNLIMITED TABLESPACE TO CB;
126+
```
127+
128+
#### Configure SQL Server database
129+
130+
Connect to your SQL Server database and run:
131+
```
132+
CREATE DATABASE cloudbeaver;
133+
```
134+
135+
##### Example:
136+
137+
`CLOUDBEAVER_DB_DRIVER=microsoft`
138+
`CLOUDBEAVER_DB_URL=jdbc:sqlserver://127.0.0.1:1433;databaseName=cloudbeaver`
139+
76140
### Configuring SSL (HTTPS)
77141

78142
There are two ways to configure SSL:
@@ -156,6 +220,7 @@ Previously, the volumes were owned by the ‘root’ user, but now they’re own
156220
## Older versions
157221

158222
### Older versions:
223+
- [25.3.0](https://github.com/dbeaver/cloudbeaver-deploy/tree/25.3.0)
159224
- [25.2.0](https://github.com/dbeaver/cloudbeaver-deploy/tree/25.2.0)
160225
- [25.1.0](https://github.com/dbeaver/cloudbeaver-deploy/tree/25.1.0)
161226
- [25.0.0](https://github.com/dbeaver/cloudbeaver-deploy/tree/25.0.0)

docker-compose-host.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ services:
4545
- CLOUDBEAVER_QM_DB_PASSWORD=${CLOUDBEAVER_QM_DB_PASSWORD}
4646
- CLOUDBEAVER_QM_DB_SCHEMA=${CLOUDBEAVER_QM_DB_SCHEMA}
4747
- CLOUDBEAVER_DMSVC_URL=http://127.0.0.1:11000
48+
- NETWORK_MODE=host
49+
- JAVA_TOOL_OPTIONS=${JAVA_TOOL_OPTIONS:-}
4850
depends_on:
4951
- postgres
5052

@@ -55,8 +57,8 @@ services:
5557
image: ${IMAGE_SOURCE:-dbeaver}/cloudbeaver-postgres:16
5658
volumes:
5759
- postgres_data:/var/lib/postgresql/data
58-
- ./cloudbeaver-db-init.sql:/docker-entrypoint-initdb.d/cb-init.sql
5960
environment:
6061
- POSTGRES_DB=cloudbeaver
6162
- POSTGRES_USER=${CLOUDBEAVER_DB_USER}
6263
- POSTGRES_PASSWORD=${CLOUDBEAVER_DB_PASSWORD}
64+
- NETWORK_MODE=host

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ services:
4949
- CLOUDBEAVER_QM_DB_USER=${CLOUDBEAVER_QM_DB_USER}
5050
- CLOUDBEAVER_QM_DB_PASSWORD=${CLOUDBEAVER_QM_DB_PASSWORD}
5151
- CLOUDBEAVER_QM_DB_SCHEMA=${CLOUDBEAVER_QM_DB_SCHEMA}
52+
- JAVA_TOOL_OPTIONS=${JAVA_TOOL_OPTIONS:-}
5253
expose:
5354
- ${CLOUDBEAVER_WEB_SERVER_PORT:-8978}
5455
depends_on:

k8s/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ name: cb
33
description: A Helm chart for CloudBeaver application
44
type: application
55
version: 0.0.1
6-
appVersion: 25.3.0
6+
appVersion: 26.0.0

k8s/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Previously, the volumes were owned by the ‘root’ user, but now they are owne
3030
- `cd cloudbeaver-deploy/k8s`
3131
- `cp ./values.yaml.example ./values.yaml`
3232
- Edit chart values in `values.yaml` (use any text editor)
33+
- You must set the `cloudbeaver_db_password` variable before deploying the cluster. The database password is empty by default and the deployment will fail without it.
3334
- Configure domain and SSL certificate (optional)
3435
- Add an A record in your DNS hosting for a value of `cloudbeaverBaseDomain` variable with load balancer IP address.
3536
- If you set the *HTTPS* endpoint scheme, then create a valid TLS certificate for the domain endpoint `cloudbeaverBaseDomain` and place it into `k8s/ingressSsl`:

k8s/templates/secrets/db-passwords.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
{{- fail "Error: backend.cloudbeaver_db_password is missing or empty" }}
33
{{- end }}
44

5-
{{- if eq .Values.backend.cloudbeaver_db_password "StR0NgP2sSw0rD" }}
6-
{{- fail "Error: Default password 'StR0NgP2sSw0rD' is insecure! Please change it before deployment." }}
7-
{{- end }}
8-
95
apiVersion: v1
106
kind: Secret
117
metadata:

k8s/values.yaml.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
cloudbeaver:
77
replicaCount: 1
88
image: dbeaver/cloudbeaver-ee
9-
imageTag: "25.3.0"
9+
imageTag: "26.0.0"
1010
pullPolicy: Always
1111
# pullCredsName - name of a secret config map that contains docker repo auths
1212
# pullCredsName: regcred
@@ -51,4 +51,4 @@ backend:
5151
cloudbeaver_db_driver: postgres-jdbc
5252
cloudbeaver_db_url: jdbc:postgresql://postgres:5432/cloudbeaver
5353
cloudbeaver_db_user: postgres
54-
cloudbeaver_db_password: StR0NgP2sSw0rD
54+
cloudbeaver_db_password: ""

0 commit comments

Comments
 (0)