Skip to content

Commit 8fc7fa7

Browse files
committed
chore(stack): add prometheus
1 parent 07f15a2 commit 8fc7fa7

7 files changed

Lines changed: 33 additions & 5 deletions

File tree

scripts/checker.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,12 @@
271271
"owner": "tikv",
272272
"match": "^v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
273273
},
274+
"prometheus": {
275+
"name": "prometheus",
276+
"type": "github",
277+
"owner": "prometheus",
278+
"match": "^v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
279+
},
274280
}
275281

276282

stacks/envtpl/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Implement build function
77
function build() {
88
generate-stack-path
9-
install-stack go 1.17.7 && . init-stack
9+
install-stack go 1.19.3 && . init-stack
1010

1111
curl -sSL "https://github.com/subfuzion/envtpl/archive/refs/tags/v${STACK_VERSION}.tar.gz" | tar -xz \
1212
&& mv envtpl-${STACK_VERSION} $GOPATH/src/envtpl/ \

stacks/pack/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
function build() {
88
generate-stack-path
99
install-packages make
10-
install-stack go 1.17.7 && . init-stack
10+
install-stack go 1.19.3 && . init-stack
1111

1212
curl -sSL "https://github.com/buildpacks/pack/archive/refs/tags/v${STACK_VERSION}.tar.gz" | tar -xz \
1313
&& cd pack-${STACK_VERSION} \

stacks/podman/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ EOF
3737
go-md2man \
3838
libapparmor-dev
3939

40-
install-stack go 1.17.7
40+
install-stack go 1.19.3
4141
export GOPATH=/opt/drycc/go
4242
export PATH=$GOPATH/bin:$PATH
4343

stacks/prometheus/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+
curl -sSL https://github.com/prometheus/prometheus/releases/download/v${STACK_VERSION}/prometheus-${STACK_VERSION}.linux-${OS_ARCH}.tar.gz | tar -xvz
10+
11+
BIN_DIR="${DATA_DIR}"/bin
12+
mkdir -p "${BIN_DIR}"
13+
mv ./prometheus-${STACK_VERSION}.linux-${OS_ARCH}/promtool "${BIN_DIR}"
14+
mv ./prometheus-${STACK_VERSION}.linux-${OS_ARCH}/prometheus "${BIN_DIR}"
15+
rm -rf ./prometheus-${STACK_VERSION}.linux-${OS_ARCH}
16+
#upx
17+
upx --lzma --best "${BIN_DIR}"/*
18+
}
19+
20+
# call build stack
21+
build-stack "${1}"
22+

stacks/vouch-proxy/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Implement build function
77
function build() {
88
generate-stack-path
9-
install-stack go 1.16.15 && . init-stack
9+
install-stack go 1.19.3 && . init-stack
1010

1111
curl -sSL "https://github.com/vouch/vouch-proxy/archive/refs/tags/v${STACK_VERSION}.tar.gz" | tar -xz \
1212
&& mv vouch-proxy-${STACK_VERSION} $GOPATH/src/vouch-proxy/ \

stacks/wal-g/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function build() {
88
generate-stack-path
99
install-packages \
1010
gcc liblzo2-dev make cmake git build-essential
11-
install-stack go 1.17.7
11+
install-stack go 1.19.3
1212
. /opt/drycc/go/profile.d/*.sh
1313

1414
git clone https://github.com/wal-g/wal-g/ $GOPATH/src/wal-g \

0 commit comments

Comments
 (0)