File tree Expand file tree Collapse file tree
rootfs/opt/drycc/fluent-bit/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,15 +19,20 @@ FROM registry.drycc.cc/drycc/base:${CODENAME}
1919ENV DRYCC_UID=1001 \
2020 DRYCC_GID=1001 \
2121 FLUENT_BIT_VERSION=2.1.8 \
22- FLUENT_BIT_PLUGINS_PATH=/opt/drycc/fluent-bit/plugins
22+ DRYCC_HOME_DIR=/opt/drycc \
23+ FLUENT_BIT_PLUGINS_PATH=${DRYCC_HOME_DIR}/fluent-bit/plugins
24+
25+ RUN groupadd drycc --gid ${DRYCC_GID} \
26+ && useradd drycc -u ${DRYCC_UID} -g ${DRYCC_GID} -s /bin/bash -m -d ${DRYCC_HOME_DIR}
2327
2428RUN install-stack fluent-bit ${FLUENT_BIT_VERSION} \
2529 && mkdir -p ${FLUENT_BIT_PLUGINS_PATH} \
26- && chown -R ${DRYCC_UID}:${DRYCC_GID} /opt/drycc /fluent-bit
30+ && chown -R ${DRYCC_UID}:${DRYCC_GID} ${DRYCC_HOME_DIR} /fluent-bit
2731
2832COPY --chown=${DRYCC_UID}:${DRYCC_GID} --from=build /var/lib/fluent-bit/out_drycc.so ${FLUENT_BIT_PLUGINS_PATH}
2933
3034ADD rootfs /
35+
3136USER ${DRYCC_UID}
3237
3338CMD ["/usr/local/bin/boot" ]
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ config:
3030 DB.locking true
3131 Offset_Key offset
3232 Tag kubernetes.*
33- Read_from_Head true
33+ Read_from_Head false
3434 multiline.parser docker,cri
3535
3636 # # https://docs.fluentbit.io/manual/pipeline/filters
@@ -48,7 +48,7 @@ config:
4848 outputs : |
4949 [OUTPUT]
5050 Name drycc
51- Match *
51+ Match kubernetes. *
5252 Addrs ${DRYCC_REDIS_ADDRS}
5353 Stream logs
5454 Max_Len 3000
Original file line number Diff line number Diff line change 1212 DB.locking true
1313 Offset_Key offset
1414 Tag kubernetes.*
15- Read_from_Head true
15+ Read_from_Head false
1616 multiline.parser docker,cri
1717
1818[FILTER]
2626
2727[OUTPUT]
2828 Name drycc
29- Match *
29+ Match kubernetes. *
3030 Addrs ${DRYCC_REDIS_ADDRS}
3131 Stream logs
3232 Max_Len 3000
You can’t perform that action at this time.
0 commit comments