Skip to content

Commit d699050

Browse files
zhangeamonzhangeamon
authored andcommitted
2 parents e50a950 + e4af546 commit d699050

2 files changed

Lines changed: 38 additions & 0 deletions

File tree

scripts/checker.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,12 @@
446446
"owner": "treeverse",
447447
"match": "^v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
448448
},
449+
"victoriametrics": {
450+
"name": "victoriametrics",
451+
"type": "github",
452+
"owner": "victoriametrics",
453+
"match": "^v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
454+
},
449455
"fluent-bit-manager": {
450456
"name": "fluent-bit-manager",
451457
"type": "github",

stacks/victoriametrics/build.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
10+
mkdir -p tmp
11+
curl -sSL https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${STACK_VERSION}/vmutils-linux-${OS_ARCH}-v${STACK_VERSION}.tar.gz | tar -xvz -C tmp
12+
curl -sSL https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${STACK_VERSION}/victoria-metrics-linux-${OS_ARCH}-v${STACK_VERSION}-cluster.tar.gz | tar -xvz -C tmp
13+
14+
BIN_DIR="${DATA_DIR}"/bin
15+
mkdir -p "${BIN_DIR}"
16+
17+
mv ./tmp/vmauth-prod "${BIN_DIR}"/vmauth
18+
mv ./tmp/vmalert-prod "${BIN_DIR}"/vmalert
19+
mv ./tmp/vmalert-tool-prod "${BIN_DIR}"/vmalert-tool
20+
mv ./tmp/vmagent-prod "${BIN_DIR}"/vmagent
21+
mv ./tmp/vmctl-prod "${BIN_DIR}"/vmctl
22+
mv ./tmp/vminsert-prod "${BIN_DIR}"/vminsert
23+
mv ./tmp/vmselect-prod "${BIN_DIR}"/vmselect
24+
mv ./tmp/vmstorage-prod "${BIN_DIR}"/vmstorage
25+
rm -rf ./tmp
26+
#upx
27+
upx --lzma --best "${BIN_DIR}"/*
28+
}
29+
30+
# call build stack
31+
build-stack "${1}"
32+

0 commit comments

Comments
 (0)