Skip to content

Commit f39071b

Browse files
committed
Make fluentd build on arm
1 parent a5b9950 commit f39071b

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

services/logging/fluentd/Dockerfile

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
FROM fluent/fluentd:v1.16.9-1.0
1+
FROM fluent/fluentd:v1.16.9-debian-1.0
22

33
USER root
44

5-
# Install dependencies and plugins
6-
RUN apk add --no-cache --update --virtual .build-deps \
7-
sudo build-base ruby-dev curl \
8-
&& sudo gem install fluent-plugin-grafana-loki \
9-
&& sudo gem install fluent-plugin-gelf-best \
10-
&& sudo gem install fluent-plugin-prometheus \
11-
&& apk del .build-deps \
12-
&& apk add --no-cache curl jq \
13-
&& rm -rf /var/cache/apk/* \
5+
# Install dependencies and plugins using apt instead of apk
6+
RUN apt-get update && apt-get install -y --no-install-recommends \
7+
build-essential \
8+
ruby-dev \
9+
curl \
10+
jq \
11+
&& gem install fluent-plugin-grafana-loki \
12+
&& gem install fluent-plugin-gelf-best \
13+
&& gem install fluent-plugin-prometheus \
14+
&& apt-get purge -y --auto-remove build-essential ruby-dev \
15+
&& rm -rf /var/lib/apt/lists/* \
1416
&& rm -rf /tmp/* /var/tmp/* /usr/lib/ruby/gems/*/cache/*.gem
1517

1618
# Create directories with appropriate permissions

0 commit comments

Comments
 (0)