Skip to content

Commit a5bb8f1

Browse files
EamonZhangduanhongyi
authored andcommitted
chore(stacks): add cloudbeaver
1 parent 30f637e commit a5bb8f1

2 files changed

Lines changed: 35 additions & 1 deletion

File tree

scripts/checker.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
"owner": "prometheus",
1414
"match": "^v[2-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
1515
},
16+
"cloudbeaver": {
17+
"name": "cloudbeaver",
18+
"type": "github",
19+
"owner": "dbeaver",
20+
"match": "[2-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
21+
},
1622
"vouch-proxy": {
1723
"name": "vouch-proxy",
1824
"type": "github",
@@ -36,7 +42,7 @@
3642
"type": "github",
3743
"owner": "prometheus-community",
3844
"match": "^v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
39-
},
45+
},
4046
"jmx_exporter": {
4147
"name": "jmx_exporter",
4248
"type": "github",

stacks/cloudbeaver/build.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/bash
2+
3+
# Load stack utils
4+
. /usr/bin/stack-utils
5+
6+
# Implement build function
7+
function build() {
8+
# ref : https://github.com/dbeaver/cloudbeaver/wiki/Build-and-deploy
9+
cd /opt/drycc/
10+
. init-stack
11+
NODE_VERSION=16.20.1
12+
DBEAVER_VERSION=23.2.5
13+
install-packages openjdk-17-jdk maven gnupg gnupg2 git
14+
java --version && mvn --version
15+
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
16+
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
17+
curl -sL https://deb.nodesource.com/setup_14.x | bash -
18+
install-packages yarn
19+
yarn --version
20+
install-stack node $NODE_VERSION
21+
export PATH=$PATH:/opt/drycc/node/bin
22+
git clone https://github.com/dbeaver/dbeaver.git && cd dbeaver && git checkout $DBEAVER_VERSION
23+
cd ..
24+
git clone https://github.com/dbeaver/cloudbeaver.git && cd cloudbeaver/ && git checkout $STACK_VERSION
25+
cd deploy && sh build.sh && cp -r cloudbeaver ${DATA_DIR}
26+
}
27+
# call build stack
28+
build-stack "${1}"

0 commit comments

Comments
 (0)