Skip to content

Commit 52e1bf6

Browse files
committed
chore(stacks): add fluent-bit
1 parent 06d8795 commit 52e1bf6

3 files changed

Lines changed: 33 additions & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ RUN install-packages \
6565

6666
ENV PATH "/usr/local/python/bin:${PATH}"
6767

68-
RUN UPX_VERSION=4.0.2; \
68+
RUN UPX_VERSION=4.1.0; \
6969
OS_ARCH=$(dpkg --print-architecture); \
7070
wget https://github.com/upx/upx/releases/download/v${UPX_VERSION}/upx-${UPX_VERSION}-${OS_ARCH}_linux.tar.xz; \
7171
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
@@ -61,6 +61,12 @@
6161
"owner": "fluent",
6262
"match": "^v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
6363
},
64+
"fluent-bit": {
65+
"name": "fluent-bit",
66+
"type": "github",
67+
"owner": "fluent",
68+
"match": "^v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
69+
},
6470
"go": {
6571
"name": "go",
6672
"type": "github",

stacks/fluent-bit/build.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
install-packages \
10+
gcc liblzo2-dev make cmake git build-essential
11+
install-stack go "${GO_VERSION}"
12+
. /opt/drycc/go/profile.d/*.sh
13+
14+
git clone -b v$STACK_VERSION --depth 1 https://github.com/fluent/fluent-bit $GOPATH/src/fluent-bit \
15+
&& cd $GOPATH/src/fluent-bit/build \
16+
&& apt update \
17+
&& apt install -yq flex bison libyaml-dev libssl-dev libsasl2-dev \
18+
&& cmake -DFLB_ALL=Yes -DCMAKE_INSTALL_PREFIX=/opt/drycc/fluent-bit ../ \
19+
&& make \
20+
&& make install
21+
cp -rf /opt/drycc/fluent-bit/* "${DATA_DIR}"
22+
}
23+
24+
# call build stack
25+
build-stack "${1}"
26+

0 commit comments

Comments
 (0)