Skip to content

Commit 5b28847

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

2 files changed

Lines changed: 43 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: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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+
JAVA_VERSION=17.0.9
12+
NODE_VERSION=16.20.1
13+
install-packages gnupg gnupg2 git maven
14+
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
23+
cd dbeaver
24+
git checkout -b release_${STACK_VERSION} --track origin/release_${STACK_VERSION}
25+
cd ..
26+
git clone https://github.com/dbeaver/cloudbeaver.git
27+
cd cloudbeaver
28+
git checkout -b release_${STACK_VERSION} --track origin/release_${STACK_VERSION}
29+
cd deploy && ./build.sh && cp -r cloudbeaver/* ${DATA_DIR}
30+
cat << EOF >> "${PROFILE_DIR}"/cloudbeaver.sh
31+
export CLOUDBEAVER_HOME="/opt/drycc/cloudbeaver"
32+
EOF
33+
34+
}
35+
# call build stack
36+
build-stack "${1}"

0 commit comments

Comments
 (0)