Skip to content

Commit 51cd721

Browse files
committed
Merge remote-tracking branch 'upstream/main' into add-ha-rabbit
2 parents 0934599 + 45fc8ea commit 51cd721

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
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

services/logging/fluentd/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
There is currently no CD for building the fluentd image.
22
It has to be built and pushed manually:
33

4-
Run e.g. `docker build -t itisfoundation/fluentd:v1.16.9-1.0 .` in this folder, then push the image to dockerhub.
4+
Run e.g. `docker buildx build --platform linux/amd64,linux/arm64 --push -t itisfoundation/fluentd:v1.16.9-1.0 .` in this folder, then push the image to dockerhub.
5+
Keep in mind that some ops machines run on ARM, so we need an ARM image as well.

services/logging/template.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ GRAYLOG_LOG_MAX_DAYS_IN_STORAGE=${GRAYLOG_LOG_MAX_DAYS_IN_STORAGE}
1616
GRAYLOG_LOG_MIN_DAYS_IN_STORAGE=${GRAYLOG_LOG_MIN_DAYS_IN_STORAGE}
1717
PUBLIC_NETWORK=${PUBLIC_NETWORK}
1818
MONITORED_NETWORK=${MONITORED_NETWORK}
19-
LOKI_RETETION_PERIOD=${LOKI_RETETION_PERIOD}
19+
LOKI_RETENTION_PERIOD=${LOKI_RETENTION_PERIOD}
2020
S3_ENDPOINT_LOKI=${S3_ENDPOINT_LOKI}
2121
S3_ACCESS_KEY_LOKI=${S3_ACCESS_KEY_LOKI}
2222
S3_BUCKET_NAME_LOKI=${S3_BUCKET_NAME_LOKI}

0 commit comments

Comments
 (0)