Skip to content

Commit ce97d2c

Browse files
EamonZhangduanhongyi
authored andcommitted
chore(stacks): add mongodb and mongosh
* feat(stacks): add pgweb * fix(checher): delete repmgr * chore(stacks): add cloudbeaver * chore(stacks): delete pgweb * chore(stacks): add cloudbeaver * fix(cloudbeaver): build error miss jar * fix(cloudbeaver): fix build conflict * chore(cloudbeaver): delete no used jdk * chore(stacks): add cloudbeaver * chore(stacks) add airflow_exporer * chore(stacks) add mongodb and mongosh * chore(stacks) delete airflow_exporter * chore(stacks) delete airflow_exporter checker
1 parent f330271 commit ce97d2c

3 files changed

Lines changed: 58 additions & 0 deletions

File tree

scripts/checker.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,18 @@
367367
"owner": "envoyproxy",
368368
"match": "^v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
369369
},
370+
"mongodb": {
371+
"name": "mongo",
372+
"type": "github",
373+
"owner": "mongodb",
374+
"match": "^r[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
375+
},
376+
"mongosh": {
377+
"name": "mongosh",
378+
"type": "github",
379+
"owner": "mongodb-js",
380+
"match": "^v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
381+
},
370382
}
371383

372384

stacks/mongodb/build.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
3+
# Load stack utils
4+
. /usr/bin/stack-utils
5+
6+
# Implement build function
7+
function build() {
8+
generate-stack-path
9+
BIN_DIR="${DATA_DIR}"/bin
10+
mkdir -p "${BIN_DIR}"
11+
if [[ ${OS_ARCH} =~ "x86" || ${OS_ARCH} =~ "amd" ]]; then
12+
OS_ARCH="x86_64"
13+
curl -sSL https://fastdl.mongodb.org/linux/mongodb-linux-${OS_ARCH}-debian12-${STACK_VERSION}.tgz | tar -xz
14+
mv ./mongodb-linux-${OS_ARCH}-debian12-${STACK_VERSION}/bin/* "${BIN_DIR}/"
15+
rm -rf ./mongodb-linux-${OS_ARCH}-debian12-${STACK_VERSION}
16+
elif [[ ${OS_ARCH} =~ "arm" ]]; then
17+
OS_ARCH="aarch64"
18+
curl -sSl https://fastdl.mongodb.org/linux/mongodb-linux-${OS_ARCH}-ubuntu2204-${STACK_VERSION}.tgz | tar -xz
19+
mv ./mongodb-linux-${OS_ARCH}-ubuntu2204-${STACK_VERSION}/bin/* "${BIN_DIR}/"
20+
rm -rf ./mongodb-linux-${OS_ARCH}-ubuntu2204-${STACK_VERSION}
21+
fi
22+
}
23+
# call build stack
24+
build-stack "${1}"

stacks/mongosh/build.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
3+
# Load stack utils
4+
. /usr/bin/stack-utils
5+
6+
# Implement build function
7+
function build() {
8+
generate-stack-path
9+
BIN_DIR="${DATA_DIR}"/bin
10+
mkdir -p "${BIN_DIR}"
11+
if [[ ${OS_ARCH} =~ "x86" || ${OS_ARCH} =~ "amd" ]]; then
12+
curl https://downloads.mongodb.com/compass/mongosh-${STACK_VERSION}-linux-x64.tgz| tar -xvz
13+
mv ./mongosh-${STACK_VERSION}-linux-x64/bin/* "${BIN_DIR}/"
14+
rm -rf ./mongosh-${STACK_VERSION}-linux-x64
15+
elif [[ ${OS_ARCH} =~ "arm" ]]; then
16+
curl -sSL https://downloads.mongodb.com/compass/mongosh-${STACK_VERSION}-linux-arm64.tgz | tar -xvz
17+
mv ./mongosh-${STACK_VERSION}-linux-arm64/bin/* "${BIN_DIR}/"
18+
rm -rf ./mongosh-${STACK_VERSION}-linux-arm64
19+
fi
20+
}
21+
# call build stack
22+
build-stack "${1}"

0 commit comments

Comments
 (0)