Skip to content

Commit

Permalink
WIP cloudbeaver 23.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas committed Jul 4, 2023
1 parent 4274022 commit 2712584
Show file tree
Hide file tree
Showing 7 changed files with 139 additions and 0 deletions.
10 changes: 10 additions & 0 deletions technologies/app/cloudbeaver/cloudbeaver-23.1.1/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM dbeaver/cloudbeaver:23.1.1

WORKDIR /opt/cloudbeaver/

ADD cloudbeaver.conf /opt/cloudbeaver/conf/

ADD entrypoint.sh .
RUN chmod +x entrypoint.sh

ENTRYPOINT ["./entrypoint.sh"]
22 changes: 22 additions & 0 deletions technologies/app/cloudbeaver/cloudbeaver-23.1.1/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2019-2021.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import com.bmuschko.gradle.docker.DockerRemoteApiPlugin
import com.saagie.technologies.SaagieTechnologiesGradlePlugin

apply<DockerRemoteApiPlugin>()
apply<SaagieTechnologiesGradlePlugin>()
69 changes: 69 additions & 0 deletions technologies/app/cloudbeaver/cloudbeaver-23.1.1/cloudbeaver.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
server: {
serverPort: 8978,

workspaceLocation: "workspace",
contentRoot: "web",
driversLocation: "drivers",

rootURI: "SAAGIE_BASE_PATH/",
serviceURI: "/api/",

productConfiguration: "conf/product.conf",

expireSessionAfterPeriod: 1800000,

develMode: false,

enableSecurityManager: false,

database: {
driver="h2_embedded_v2",
url: "jdbc:h2:${workspace}/.data/cb.h2v2.dat",
initialDataConfiguration: "conf/initial-data.conf",
pool: {
minIdleConnections: 4,
maxIdleConnections: 10,
maxConnections: 100,
validationQuery: "SELECT 1"
}
}

},
app: {
anonymousAccessEnabled: true,
anonymousUserRole: "user",
grantConnectionsAccessToAnonymousTeam: false,
supportsCustomConnections: true,
showReadOnlyConnectionInfo: false,

forwardProxy: false,

publicCredentialsSaveEnabled: true,
adminCredentialsSaveEnabled: true,

resourceManagerEnabled: true,

resourceQuotas: {
dataExportFileSizeLimit: 10000000,
resourceManagerFileSizeLimit: 500000,
sqlMaxRunningQueries: 100,
sqlResultSetRowsLimit: 100000,
sqlResultSetMemoryLimit: 2000000,
sqlTextPreviewMaxLength: 4096,
sqlBinaryPreviewMaxLength: 261120
},
enabledAuthProviders: [
"local"
],

disabledDrivers: [
"sqlite:sqlite_jdbc",
"h2:h2_embedded",
"h2:h2_embedded_v2",
"clickhouse:yandex_clickhouse"
]

}

}
11 changes: 11 additions & 0 deletions technologies/app/cloudbeaver/cloudbeaver-23.1.1/context.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
id: cloudbeaver-23.1.1
label: 23.1.1
releaseNotes: CloudBeaver is a web-based database management tool.
available: true
trustLevel: stable
ports:
- port: 8978
name: CloudBeaver
rewriteUrl: false
basePath: SAAGIE_BASE_PATH
volumes: ["/opt/cloudbeaver/workspace"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
image: saagie/cloudbeaver
baseTag: 23.1.1-0.1
dynamicVersion: 23.1.1-0.1
version: 23.1.1-0.1
4 changes: 4 additions & 0 deletions technologies/app/cloudbeaver/cloudbeaver-23.1.1/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
sed -i 's:SAAGIE_BASE_PATH:'"$SAAGIE_BASE_PATH"':g' /opt/cloudbeaver/conf/cloudbeaver.conf

/opt/cloudbeaver/run-server.sh
19 changes: 19 additions & 0 deletions technologies/app/cloudbeaver/cloudbeaver-23.1.1/image_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
schemaVersion: "2.0.0"

metadataTest:
env:
- key: LANG
value: en_US.UTF-8
- key: LC_ALL
value: en_US.UTF-8

fileExistenceTests:
- name: "entrypoint"
path: "/opt/cloudbeaver/entrypoint.sh"
shouldExist: true
permissions: "-rwxr-xr-x"

commandTests:
- name: "Workdir"
command: "pwd"
expectedOutput: ["/opt/cloudbeaver"]

0 comments on commit 2712584

Please sign in to comment.