Skip to content

Commit 59fea87

Browse files
committed
Merge branch 'main' of https://github.com/drycc/stacks into main
2 parents 995382d + f330271 commit 59fea87

17 files changed

Lines changed: 162 additions & 26 deletions

File tree

.woodpecker/build.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@ matrix:
33
- linux/amd64
44
- linux/arm64
55

6-
platform: ${platform}
7-
86
labels:
97
type: exec
8+
platform: ${platform}
109

11-
pipeline:
10+
steps:
1211
- name: publish-linux
1312
image: bash
1413
commands:

.woodpecker/check.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
platform: linux/amd64
2-
31
labels:
42
type: exec
3+
platform: linux/amd64
54

6-
pipeline:
5+
steps:
76
- name: check
87
image: bash
98
commands:

scripts/checker.py

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,12 @@
325325
"owner": "apache",
326326
"match": "^v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
327327
},
328+
"flink": {
329+
"name": "flink",
330+
"type": "github",
331+
"owner": "apache",
332+
"match": "^release-[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
333+
},
328334
"opensearch": {
329335
"name": "OpenSearch",
330336
"type": "github",
@@ -343,6 +349,30 @@
343349
"owner": "seaweedfs",
344350
"match": "^[0-9]{1,}\.[0-9]{1,}$",
345351
},
352+
"statsd_exporter": {
353+
"name": "statsd_exporter",
354+
"type": "github",
355+
"owner": "prometheus",
356+
"match": "^v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
357+
},
358+
"kafka_exporter": {
359+
"name": "kafka_exporter",
360+
"type": "github",
361+
"owner": "danielqsj",
362+
"match": "^v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
363+
},
364+
"kafka": {
365+
"name": "kafka",
366+
"type": "github",
367+
"owner": "apache",
368+
"match": "^[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
369+
},
370+
"envoy": {
371+
"name": "envoy",
372+
"type": "github",
373+
"owner": "envoyproxy",
374+
"match": "^v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
375+
},
346376
}
347377

348378

@@ -441,7 +471,7 @@ def check_github_version(stack):
441471
"%Y-%m-%dT%H:%M:%S"
442472
)
443473
if re.match(info["match"], tag["node"]["name"]):
444-
if (datetime.utcnow() - date).days < 5:
474+
if (datetime.utcnow() - date).days <= 7:
445475
create_github_issue(stack, tag["node"]["name"])
446476
else:
447477
break

scripts/stack-utils

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ shopt -s expand_aliases
55
alias gzip="gzip -n -9"
66

77
. /etc/os-release
8-
export GO_VERSION=1.20
9-
export RUBY_VERSION=3.2
8+
export GO_VERSION=1.22
9+
export RUBY_VERSION=3.3
1010
export STACK_NAME="${STACK_NAME:?name is required}"
1111
export STACK_VERSION="${STACK_VERSION:?version is required}"
1212
export OS_NAME="${OS_NAME:-linux}"

scripts/storage.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
)
1515

1616
symlink_table = {
17-
"go": ["1.16", "1.17", "1.18", "1.19", "1.20"],
17+
"go": ["1.16", "1.17", "1.18", "1.19", "1.20", "1.21", "1.22"],
1818
"java": ["8", "11", "17", "18", "19", "20", "21", "22"],
19-
"node": ["12", "14", "16", "17", "18", "19", "20"],
20-
"php": ["7.3", "7.4", "8.0", "8.1", "8.2"],
19+
"node": ["12", "14", "16", "17", "18", "19", "20", "21"],
20+
"php": ["7.3", "7.4", "8.0", "8.1", "8.2", "8.3"],
2121
"python": ["2.7", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"],
2222
"ruby": ["2.6", "3.7", "3.0", "3.1", "3.2", "3.3"],
2323
"rust": ["1"],

stacks/envoy/build.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
case $(uname -m) in
10+
aarch64) target="envoy-${STACK_VERSION}-linux-aarch_64";;
11+
x86_64) target="envoy-${STACK_VERSION}-linux-x86_64";;
12+
esac
13+
14+
BIN_DIR="${DATA_DIR}"/bin
15+
mkdir -p "${BIN_DIR}"
16+
curl -L -o "${BIN_DIR}"/envoy https://github.com/envoyproxy/envoy/releases/download/v${STACK_VERSION}/${target}
17+
chmod +x "${BIN_DIR}"/envoy
18+
}
19+
20+
# call build stack
21+
build-stack "${1}"

stacks/envtpl/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
function build() {
88
generate-stack-path
99
install-stack go "${GO_VERSION}" && . init-stack
10+
mkdir -p $GOPATH/src
1011

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

stacks/flink/build.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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 -fsSL -o tmp.tgz https://dlcdn.apache.org/flink/flink-${STACK_VERSION}/flink-${STACK_VERSION}-bin-scala_2.12.tgz
10+
tar -xzf tmp.tgz
11+
mv flink-${STACK_VERSION}/* "${DATA_DIR}"
12+
rm flink-${STACK_VERSION} tmp.tgz -rf
13+
14+
mkdir -p "${DATA_DIR}"/env
15+
echo "/opt/drycc/flink" > "${DATA_DIR}"/env/FLINK_HOME
16+
cat << EOF > ${PROFILE_DIR}/${STACK_NAME}.sh
17+
export PATH="/opt/drycc/flink/bin:\$PATH"
18+
EOF
19+
}
20+
21+
# call build stack
22+
build-stack "${1}"
23+

stacks/fluent-bit/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ function build() {
1010
gcc liblzo2-dev make cmake git build-essential
1111
install-stack go "${GO_VERSION}"
1212
. /opt/drycc/go/profile.d/*.sh
13+
mkdir -p $GOPATH/src
1314

1415
git clone -b v$STACK_VERSION --depth 1 https://github.com/fluent/fluent-bit $GOPATH/src/fluent-bit \
1516
&& cd $GOPATH/src/fluent-bit/build \

stacks/go/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ function build() {
99
curl -L -o /opt/drycc/tmp.tar.gz https://go.dev/dl/go"${STACK_VERSION}".linux-"${OS_ARCH}".tar.gz
1010
cd /opt/drycc && tar -xzf tmp.tar.gz && rm -rf tmp.tar.gz && cd -
1111
cat << EOF >> "${PROFILE_DIR}"/go.sh
12-
export GOPATH="/opt/drycc/go"
12+
export GOPATH=\$HOME/go
13+
export PATH=\$PATH:\$GOPATH/bin
1314
EOF
1415
cp -rf /opt/drycc/go/* ${DATA_DIR}
1516
}

0 commit comments

Comments
 (0)