Skip to content

Commit 7ec025a

Browse files
committed
chore(stacks): add opentelemetry-collector
1 parent 775fcf5 commit 7ec025a

4 files changed

Lines changed: 28 additions & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ ENV PATH "/usr/local/python/bin:${PATH}"
6969

7070
ADD requirements.txt /tmp/requirements.txt
7171

72-
RUN UPX_VERSION=4.1.0; \
72+
RUN UPX_VERSION=5.0.2; \
7373
OS_ARCH=$(dpkg --print-architecture); \
7474
wget https://github.com/upx/upx/releases/download/v${UPX_VERSION}/upx-${UPX_VERSION}-${OS_ARCH}_linux.tar.xz; \
7575
tar -Jxvf upx-${UPX_VERSION}-${OS_ARCH}_linux.tar.xz; \

scripts/checker.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,12 @@
386386
"owner": "rustfs",
387387
"match": "^[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
388388
},
389+
"opentelemetry-collector": {
390+
"name": "opentelemetry-collector-releases",
391+
"type": "github",
392+
"owner": "open-telemetry",
393+
"match": "^v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
394+
},
389395
"seaweedfs": {
390396
"name": "seaweedfs",
391397
"type": "github",
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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/open-telemetry/opentelemetry-collector-releases/releases/download/v${STACK_VERSION}/otelcol-contrib_${STACK_VERSION}_linux_${OS_ARCH}.tar.gz | tar -xvz
10+
11+
BIN_DIR="${DATA_DIR}"/bin
12+
mkdir -p "${BIN_DIR}"
13+
mv otelcol-contrib "${BIN_DIR}"/otelcol
14+
rm -rf README.md
15+
#upx
16+
upx --lzma --best "${BIN_DIR}"/*
17+
}
18+
19+
# call build stack
20+
build-stack "${1}"

stacks/rustfs/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ function build() {
1414
&& rm rustfs.zip
1515

1616
chmod +x "${BIN_DIR}"/"${STACK_NAME}"
17+
upx --lzma --best "${BIN_DIR}"/*
1718
}
1819

1920
# call build stack

0 commit comments

Comments
 (0)