Sha256: f59e0bf67ab944d5a4430005aff0e2731f4e6dd036b3aa7d34cb8fcdad5581b2

Contents?: true

Size: 1.49 KB

Versions: 2

Compression:

Stored size: 1.49 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 & 1 rubygems

Version Path
fluent-plugin-k8s-metrics-agg-1.1.1 docker/Dockerfile
fluent-plugin-k8s-metrics-agg-1.1.0 docker/Dockerfile