Sha256: 3ab81567aa3627001e3126430cd3039c7446923f7560056faca17dab610f9df6

Contents?: true

Size: 1.47 KB

Versions: 2

Compression:

Stored size: 1.47 KB

Contents

FROM alpine:3.8

LABEL maintainer="Splunk Inc. <DataEdge@splunk.com>"
LABEL Description="Splunk Connect for Kubernetes docker image" Vendor="Splunk Inc."

ARG VERSION
ENV VERSION=${VERSION}

ENV DUMB_INIT_VERSION=1.2.1
ENV SU_EXEC_VERSION=0.2

COPY *.gem /tmp/

ARG DEBIAN_FRONTEND=noninteractive
# Do not split this into multiple RUN!
# Docker creates a layer for every RUN-Statement
# therefore an 'apk delete' has no effect
RUN apk update \
 && apk upgrade \
 && apk add --no-cache \
        ca-certificates \
 && update-ca-certificates \
 && apk add --no-cache \
        ruby ruby-irb ruby-etc ruby-webrick ruby-json \
        su-exec==${SU_EXEC_VERSION}-r0 \
        dumb-init==${DUMB_INIT_VERSION}-r0 \
 && apk add --no-cache --virtual .build-deps \
        build-base \
        ruby-dev wget gnupg \
 && echo 'gem: --no-document' >> /etc/gemrc \
 && gem install -N \
         fluentd:1.4.0 \
         fluent-plugin-record-modifier:2.0.1 \
         fluent-plugin-splunk-hec:${VERSION} \
         oj:3.7.9 \
         multi_json:1.13.1 \
         bigdecimal:1.4.3 \
         kubeclient:4.3.0 \
 && gem install -N /tmp/*.gem \
 && apk del .build-deps \
 && rm -rf /var/cache/apk/* \
 && rm -rf /tmp/* /var/tmp/* /usr/lib/ruby/gems/*/cache/*.gem

ENV LD_PRELOAD="" \
    FLUENTD_CONF="fluent.conf" \
    FLUENTD_OPT="" \
    DUMB_INIT_SETSID=0

COPY entrypoint.sh /bin/entrypoint.sh
ENTRYPOINT ["/bin/entrypoint.sh"]

CMD exec fluentd -c /fluentd/etc/${FLUENTD_CONF} -p /fluentd/plugins $FLUENTD_OPT

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
fluent-plugin-kubernetes-metrics-1.1.2 docker/Dockerfile
fluent-plugin-k8s-metrics-1.1.1 docker/Dockerfile