-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (17 loc) · 822 Bytes
/
Dockerfile
File metadata and controls
24 lines (17 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM fluent/fluentd:v1.18.0-1.1
LABEL org.opencontainers.image.authors="The Lagoon Authors" maintainer="The Lagoon Authors"
LABEL org.opencontainers.image.source="https://github.com/uselagoon/lagoon-service-images" repository="https://github.com/uselagoon/lagoon-service-images"
USER root
COPY Gemfile Gemfile.lock /
RUN apk add --no-cache --update --virtual .build-deps \
build-base ruby-dev ruby-bundler linux-headers \
&& BUNDLE_FROZEN=true BUNDLE_SYSTEM=true bundle install \
&& gem list \
&& apk del .build-deps \
&& apk add --no-cache curl jq
COPY fluent.conf /fluentd/etc/
COPY entrypoint.sh /bin/
USER fluent
# environment variables that must be defined to point to the k8s api
# these are set by default when running in k8s
ENV KUBERNETES_SERVICE_HOST KUBERNETES_SERVICE_PORT