Skip to content

Commit f36731e

Browse files
committed
feat(stacks): add pgweb
1 parent cd258c0 commit f36731e

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

scripts/checker.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@
3737
"owner": "prometheus-community",
3838
"match": "^v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
3939
},
40+
"pgweb": {
41+
"name": "pgweb",
42+
"type": "github",
43+
"owner": "sosedoff",
44+
"match": "^v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
45+
},
4046
"jmx_exporter": {
4147
"name": "jmx_exporter",
4248
"type": "github",
@@ -295,6 +301,12 @@
295301
"owner": "mysql",
296302
"match": "^[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
297303
},
304+
"repmgr": {
305+
"name": "repmgr",
306+
"type": "github",
307+
"owner": "EnterpriseDB",
308+
"match": "^v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
309+
},
298310
"zookeeper": {
299311
"name": "zookeeper",
300312
"type": "github",

stacks/pgweb/build.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
3+
# Load stack utils
4+
. /usr/bin/stack-utils
5+
# Implement build function
6+
function build() {
7+
# Generate binary
8+
BIN_DIR="${DATA_DIR}"/bin
9+
mkdir -p "${BIN_DIR}"
10+
# postgresql
11+
curl -fsSL -o pgweb_linux_${OS_ARCH}.zip "https://github.com/sosedoff/pgweb/releases/download/${STACK_VERSION}/pgweb_linux_${OS_ARCH}.zip"
12+
unzip pgweb_linux_${OS_ARCH}.zip
13+
rm pgweb_linux_${OS_ARCH}.zip
14+
mv pgweb_linux_${OS_ARCH} "${BIN_DIR}"
15+
}
16+
17+
# call build stack
18+
build-stack "${1}"

0 commit comments

Comments
 (0)