Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6e18cc5

Browse files
committedSep 23, 2021
updates
1 parent 193430e commit 6e18cc5

File tree

2 files changed

+54
-20
lines changed

2 files changed

+54
-20
lines changed
 

‎CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44
Updated to go 1.17
55
Updated to zabbix 5.4.4
66
Updated to fluentbit 1.8.5
7+
8+
## 0.0.3 2021-09-23 <ryanwclark@yahoo.com>
9+
Significant updates

‎Dockerfile

+51-20
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
1-
FROM debian:buster-slim
1+
FROM docker.io/debian:buster-slim
22
LABEL maintainer="ryanwclark (github.com/ryanwclark)"
33

44
### Set defaults
55
ARG FLUENTBIT_VERSION
66
ARG S6_OVERLAY_VERSION
77
ARG ZABBIX_VERSION
8-
ARG GO_VERSION=1.17
8+
ARG GO_VERSION=1.16.8
99

10-
ENV FLUENTBIT_VERSION=${FLUENTBIT_VERSION:-"1.8.5"} \
10+
ENV FLUENTBIT_VERSION=${FLUENTBIT_VERSION:-"1.8.7"} \
1111
S6_OVERLAY_VERSION=${S6_OVERLAY_VERSION:-"v2.2.0.3"} \
12-
ZABBIX_VERSION=${ZABBIX_VERSION:-"5.4.2"} \
12+
ZABBIX_VERSION=${ZABBIX_VERSION:-"5.4.4"} \
1313
CONTAINER_ENABLE_SCHEDULING=TRUE \
1414
CONTAINER_ENABLE_MESSAGING=TRUE \
1515
CONTAINER_ENABLE_MONITORING=TRUE \
1616
DEBUG_MODE=FALSE \
1717
TIMEZONE=Etc/GMT \
18-
DEBIAN_FRONTEND=noninteractive \
19-
ZABBIX_HOSTNAME=debian
18+
DEBIAN_FRONTEND=noninteractive
2019

2120
RUN debArch=$(dpkg --print-architecture) && \
2221
case "$debArch" in \
23-
amd64) fluentbit='true' ; FLUENTBIT_BUILD_DEPS="bison cmake flex libssl-dev libsasl2-dev libsystemd-dev zlib1g-dev " ;; \
22+
amd64) fluentbit='true' ; FLUENTBIT_BUILD_DEPS="bison cmake flex libssl-dev libsasl2-dev libsystemd-dev pkg-config zlib1g-dev " ;; \
2423
*) : ;; \
2524
esac; \
2625
set -ex && \
@@ -36,13 +35,15 @@ RUN debArch=$(dpkg --print-architecture) && \
3635
pkg-config \
3736
libpcre3-dev \
3837
libssl-dev \
38+
upx-ucl \
3939
zlib1g-dev \
4040
' && \
4141
apt-get install -y --no-install-recommends \
4242
apt-transport-https \
4343
apt-utils \
4444
aptitude \
4545
bash \
46+
busybox-static \
4647
ca-certificates \
4748
curl \
4849
dirmngr \
@@ -62,6 +63,10 @@ RUN debArch=$(dpkg --print-architecture) && \
6263
${ZABBIX_BUILD_DEPS} ${FLUENTBIT_BUILD_DEPS} \
6364
&& \
6465
\
66+
rm -rf /usr/bin/crontab && \
67+
rm -rf /usr/sbin/cron && \
68+
ln -s /bin/busybox /usr/sbin/crontab && \
69+
ln -s /bin/busybox /usr/sbin/crond && \
6570
mkdir -p /usr/local/go && \
6671
echo "Downloading Go ${GO_VERSION}..." && \
6772
curl -sSL https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz | tar xvfz - --strip 1 -C /usr/local/go && \
@@ -114,49 +119,75 @@ RUN debArch=$(dpkg --print-architecture) && \
114119
cp src/go/bin/zabbix_agent2 /usr/sbin/zabbix_agent2 && \
115120
strip /usr/sbin/zabbix_agentd && \
116121
strip /usr/sbin/zabbix_sender && \
122+
if [ "$debArch" = "amd64" ] && [ "$no_upx" != "true" ]; then upx /usr/sbin/zabbix_agentd ; fi ; \
123+
if [ "$debArch" = "amd64" ] && [ "$no_upx" != "true" ]; then upx /usr/sbin/zabbix_agent2 ; fi ; \
124+
if [ "$debArch" = "amd64" ] && [ "$no_upx" != "true" ]; then upx /usr/sbin/zabbix_sender ; fi ; \
117125
mkdir -p /etc/zabbix/zabbix_agentd.conf.d && \
118126
mkdir -p /var/log/zabbix && \
119127
chown -R zabbix:root /var/log/zabbix && \
120128
chown --quiet -R zabbix:root /etc/zabbix && \
121129
rm -rf /usr/src/zabbix && \
122130
\
123-
### Fluentbit compilation
131+
### Fluentbit compilation
124132
mkdir -p /usr/src/fluentbit && \
125133
curl -sSL https://github.com/fluent/fluent-bit/archive/v${FLUENTBIT_VERSION}.tar.gz | tar xfz - --strip 1 -C /usr/src/fluentbit && \
126134
cd /usr/src/fluentbit && \
127135
cmake \
128136
-DCMAKE_INSTALL_PREFIX=/usr \
129137
-DCMAKE_INSTALL_LIBDIR=lib \
130138
-DCMAKE_BUILD_TYPE=None \
131-
-DFLB_JEMALLOC=Yes \
132-
-DFLB_RELEASE=Yes \
133-
-DFLB_SIGNV4=Yes \
139+
-DFLB_AWS=No \
134140
-DFLB_BACKTRACE=No \
135-
-DFLB_HTTP_SERVER=Yes \
141+
-DFLB_DEBUG=No \
136142
-DFLB_EXAMPLES=No \
143+
-DFLB_FILTER_AWS=No \
144+
-DFLB_FILTER_KUBERNETES=No \
145+
-DFLB_HTTP_SERVER=Yes \
146+
-DFLB_IN_COLLECTD=No \
147+
-DFLB_IN_CPU=No \
148+
-DFLB_IN_DOCKER=No \
149+
-DFLB_IN_DOCKER_EVENTS=No \
150+
-DFLB_IN_KMSG=No \
151+
-DFLB_IN_MEM=No \
152+
-DFLB_IN_MQTT=No \
153+
-DFLB_IN_NETIF=No \
137154
-DFLB_IN_SERIAL=No \
138155
-DFLB_IN_SYSTEMD=No \
156+
-DFLB_IN_TCP=No \
157+
-DFLB_IN_THERMAL=No \
139158
-DFLB_IN_WINLOG=No \
140159
-DFLB_IN_WINSTAT=No \
141-
-DFLB=FLB_IN_KMSG=No \
142-
-DFLB_IN_SYSTEMD=No \
160+
-DFLB_JEMALLOC=Yes \
161+
-DFLB_LUAJIT=No \
143162
-DFLB_OUT_AZURE=No \
144163
-DFLB_OUT_AZURE_BLOB=No \
145164
-DFLB_OUT_BIGQUERY=No \
146-
-DFLB_OUT_DATADOG=No \
165+
-DFLB_OUT_CALYPTIA=No \
166+
-DFLB_OUT_CLOUDWATCH_LOGS=No \
147167
-DFLB_OUT_COUNTER=No \
168+
-DFLB_OUT_DATADOG=No \
169+
-DFLB_OUT_GELF=No \
148170
-DFLB_OUT_INFLUXDB=No \
149-
-DFLB_OUT_NRLOGS=No \
150-
-DFLB_OUT_LOGDNA=No \
151171
-DFLB_OUT_KAFKA=No \
152172
-DFLB_OUT_KAFKA_REST=No \
153173
-DFLB_OUT_KINESIS_FIREHOSE=No \
154174
-DFLB_OUT_KINESIS_STREAMS=No \
175+
-DFLB_OUT_LOGDNA=No \
176+
-DFLB_OUT_NATS=No \
177+
-DFLB_OUT_NRLOGS=No \
155178
-DFLB_OUT_PGSQL=No \
179+
-DFLB_OUT_S3=No \
156180
-DFLB_OUT_SLACK=No \
157181
-DFLB_OUT_SPLUNK=No \
182+
-DFLB_OUT_STACKDRIVER=No \
183+
-DFLB_OUT_TCP=No \
184+
-DFLB_OUT_TD=No \
185+
-DFLB_RELEASE=Yes \
186+
-DFLB_SHARED_LIB=Off \
187+
-DFLB_SIGNV4=No \
188+
-DFLB_SMALL=No \
158189
. && \
159-
if [ "$debArch" = "amd64" ] ; then make -j"$(nproc)" ; make install ; mv /usr/etc/fluent-bit /etc/fluent-bit ; strip /usr/bin/fluent-bit ; if [ "$debArch" = "amd64" ] && [ "$no_upx" != "true "]; then upx /usr/bin/fluent-bit ; fi ; fi ; \
190+
if [ "$debArch" = "amd64" ] ; then make -j"$(nproc)" ; make install ; mv /usr/etc/fluent-bit /etc/fluent-bit ; strip /usr/bin/fluent-bit ; if [ "$debArch" = "amd64" ] && [ "$no_upx" != "true" ]; then upx /usr/bin/fluent-bit ; fi ; fi ; \
160191
\
161192
### S6 installation
162193
debArch=$(dpkg --print-architecture) && \
@@ -168,7 +199,7 @@ RUN debArch=$(dpkg --print-architecture) && \
168199
ppc64le) s6Arch='ppc64le' ;; \
169200
*) echo >&2 "Error: unsupported architecture ($debArch)"; exit 1 ;; \
170201
esac; \
171-
curl -sSLk https://github.com/just-containers/s6-overlay/releases/download/${S6_OVERLAY_VERSION}/s6-overlay-${s6Arch}.tar.gz | tar xvfz - --strip 0 -C / && \
202+
curl -sSLk https://github.com/just-containers/s6-overlay/releases/download/${S6_OVERLAY_VERSION}/s6-overlay-${s6Arch}.tar.gz | tar xfz - --strip 0 -C / && \
172203
\
173204
### Cleanup
174205
mkdir -p /assets/cron && \
@@ -180,7 +211,7 @@ RUN debArch=$(dpkg --print-architecture) && \
180211
rm -rf /usr/src/* && \
181212
rm -rf /root/go && \
182213
rm -rf /root/.cache && \
183-
rm -rf /var/lib/apt/lists/* /root/.gnupg /var/log/* /etc/logrotate.d
214+
rm -rf /var/lib/apt/lists/* /root/.gnupg /var/log/* /etc/logrotate.d/*
184215

185216
### Networking configuration
186217
EXPOSE 10050/TCP

0 commit comments

Comments
 (0)