Skip to content
This repository has been archived by the owner on Mar 20, 2019. It is now read-only.

Commit

Permalink
Apply changes to image files
Browse files Browse the repository at this point in the history
Signed-off-by: Masahiro Nakagawa <[email protected]>
  • Loading branch information
repeatedly committed Jan 30, 2019
1 parent 13ab91a commit 360a3ea
Show file tree
Hide file tree
Showing 79 changed files with 282 additions and 247 deletions.
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,19 @@

### Debian

- `v1.3-debian-elasticsearch` [docker-image/v1.3/debian-elasticsearch/Dockerfile](docker-image/v1.3/debian-elasticsearch/Dockerfile)
- `v1.3-debian-loggly` [docker-image/v1.3/debian-loggly/Dockerfile](docker-image/v1.3/debian-loggly/Dockerfile)
- `v1.3-debian-logentries` [docker-image/v1.3/debian-logentries/Dockerfile](docker-image/v1.3/debian-logentries/Dockerfile)
- `v1.3-debian-cloudwatch` [docker-image/v1.3/debian-cloudwatch/Dockerfile](docker-image/v1.3/debian-cloudwatch/Dockerfile)
- `v1.3-debian-stackdriver` [docker-image/v1.3/debian-stackdriver/Dockerfile](docker-image/v1.3/debian-stackdriver/Dockerfile)
- `v1.3-debian-s3` [docker-image/v1.3/debian-s3/Dockerfile](docker-image/v1.3/debian-s3/Dockerfile)
- `v1.3-debian-syslog` [docker-image/v1.3/debian-syslog/Dockerfile](docker-image/v1.3/debian-syslog/Dockerfile)
- `v1.3-debian-gcs` [docker-image/v1.3/debian-gcs/Dockerfile](docker-image/v1.3/debian-gcs/Dockerfile)
- `v1.3-debian-graylog` [docker-image/v1.3/debian-graylog/Dockerfile](docker-image/v1.3/debian-graylog/Dockerfile)
- `v1.3-debian-papertrail` [docker-image/v1.3/debian-papertrail/Dockerfile](docker-image/v1.3/debian-papertrail/Dockerfile)
- `v1.3-debian-logzio` [docker-image/v1.3/debian-logzio/Dockerfile](docker-image/v1.3/debian-logzio/Dockerfile)
- `v1.3-debian-kafka` [docker-image/v1.3/debian-kafka/Dockerfile](docker-image/v1.3/debian-kafka/Dockerfile)
- `v1.3-debian-kinesis` [docker-image/v1.3/debian-kinesis/Dockerfile](docker-image/v1.3/debian-kinesis/Dockerfile)
- `v0.12-debian-elasticsearch` [docker-image/v0.12/debian-elasticsearch/Dockerfile](docker-image/v0.12/debian-elasticsearch/Dockerfile)
- `v0.12-debian-loggly` [docker-image/v0.12/debian-loggly/Dockerfile](docker-image/v0.12/debian-loggly/Dockerfile)
- `v0.12-debian-logentries` [docker-image/v0.12/debian-logentries/Dockerfile](docker-image/v0.12/debian-logentries/Dockerfile)
Expand All @@ -24,19 +37,6 @@
- `v0.12-debian-kafka` [docker-image/v0.12/debian-kafka/Dockerfile](docker-image/v0.12/debian-kafka/Dockerfile)
- `v0.12-debian-splunkhec` [docker-image/v0.12/debian-splunkhec/Dockerfile](docker-image/v0.12/debian-splunkhec/Dockerfile)
- `v0.12-debian-kinesis` [docker-image/v0.12/debian-kinesis/Dockerfile](docker-image/v0.12/debian-kinesis/Dockerfile)
- `v1.3-debian-elasticsearch` [docker-image/v1.3/debian-elasticsearch/Dockerfile](docker-image/v1.3/debian-elasticsearch/Dockerfile)
- `v1.3-debian-loggly` [docker-image/v1.3/debian-loggly/Dockerfile](docker-image/v1.3/debian-loggly/Dockerfile)
- `v1.3-debian-logentries` [docker-image/v1.3/debian-logentries/Dockerfile](docker-image/v1.3/debian-logentries/Dockerfile)
- `v1.3-debian-cloudwatch` [docker-image/v1.3/debian-cloudwatch/Dockerfile](docker-image/v1.3/debian-cloudwatch/Dockerfile)
- `v1.3-debian-stackdriver` [docker-image/v1.3/debian-stackdriver/Dockerfile](docker-image/v1.3/debian-stackdriver/Dockerfile)
- `v1.3-debian-s3` [docker-image/v1.3/debian-s3/Dockerfile](docker-image/v1.3/debian-s3/Dockerfile)
- `v1.3-debian-syslog` [docker-image/v1.3/debian-syslog/Dockerfile](docker-image/v1.3/debian-syslog/Dockerfile)
- `v1.3-debian-gcs` [docker-image/v1.3/debian-gcs/Dockerfile](docker-image/v1.3/debian-gcs/Dockerfile)
- `v1.3-debian-graylog` [docker-image/v1.3/debian-graylog/Dockerfile](docker-image/v1.3/debian-graylog/Dockerfile)
- `v1.3-debian-papertrail` [docker-image/v1.3/debian-papertrail/Dockerfile](docker-image/v1.3/debian-papertrail/Dockerfile)
- `v1.3-debian-logzio` [docker-image/v1.3/debian-logzio/Dockerfile](docker-image/v1.3/debian-logzio/Dockerfile)
- `v1.3-debian-kafka` [docker-image/v1.3/debian-kafka/Dockerfile](docker-image/v1.3/debian-kafka/Dockerfile)
- `v1.3-debian-kinesis` [docker-image/v1.3/debian-kinesis/Dockerfile](docker-image/v1.3/debian-kinesis/Dockerfile)

### Alpine Linux (This is deprecated. Use Debian images instead)

Expand Down
5 changes: 3 additions & 2 deletions docker-image/v1.3/debian-cloudwatch/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# AUTOMATICALLY GENERATED
# DO NOT EDIT THIS FILE DIRECTLY, USE /templates/Dockerfile.erb

FROM fluent/fluentd:v1.3.2-debian
FROM fluent/fluentd:v1.3.3-debian-1.0

LABEL maintainer="Eduardo Silva <[email protected]>"
USER root
Expand Down Expand Up @@ -34,6 +34,7 @@ COPY Gemfile* /fluentd/
COPY ./conf/fluent.conf /fluentd/etc/
COPY ./conf/systemd.conf /fluentd/etc/
COPY ./conf/kubernetes.conf /fluentd/etc/
RUN touch /fluentd/etc/disable.conf

# Copy plugins
COPY plugins /fluentd/plugins/
Expand All @@ -47,4 +48,4 @@ ENV FLUENTD_CONF="fluent.conf"
ENV LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libjemalloc.so.1"

# Overwrite ENTRYPOINT to run fluentd as root for /var/log / /var/lib
ENTRYPOINT ["/fluentd/entrypoint.sh"]
ENTRYPOINT ["tini", "--", "/fluentd/entrypoint.sh"]
2 changes: 1 addition & 1 deletion docker-image/v1.3/debian-cloudwatch/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

source "https://rubygems.org"

gem "fluentd", "1.3.2"
gem "fluentd", "1.3.3"
gem "oj", "3.5.1"
gem "fluent-plugin-rewrite-tag-filter", "~> 2.1.0"
gem "aws-sdk-cloudwatchlogs", "~> 1.0"
Expand Down
20 changes: 10 additions & 10 deletions docker-image/v1.3/debian-cloudwatch/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ GEM
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
addressable (2.5.2)
addressable (2.6.0)
public_suffix (>= 2.0.2, < 4.0)
aws-eventstream (1.0.1)
aws-partitions (1.125.0)
aws-sdk-cloudwatchlogs (1.12.0)
aws-partitions (1.136.0)
aws-sdk-cloudwatchlogs (1.13.0)
aws-sdk-core (~> 3, >= 3.39.0)
aws-sigv4 (~> 1.0)
aws-sdk-core (3.44.0)
aws-sdk-core (3.46.0)
aws-eventstream (~> 1.0)
aws-partitions (~> 1.0)
aws-sigv4 (~> 1.0)
Expand All @@ -24,7 +24,7 @@ GEM
dig_rb (1.0.1)
domain_name (0.5.20180417)
unf (>= 0.0.5, < 1.0.0)
ffi (1.9.25)
ffi (1.10.0)
fluent-config-regexp-type (1.0.0)
fluentd (> 1.0.0, < 2)
fluent-plugin-cloudwatch-logs (0.6.1)
Expand All @@ -40,7 +40,7 @@ GEM
fluent-plugin-systemd (1.0.1)
fluentd (>= 0.14.11, < 2)
systemd-journal (~> 1.3.2)
fluentd (1.3.2)
fluentd (1.3.3)
cool.io (>= 1.4.5, < 2.0.0)
dig_rb (~> 1.0.0)
http_parser.rb (>= 0.5.1, < 0.7.0)
Expand All @@ -60,7 +60,7 @@ GEM
domain_name (~> 0.5)
http-form_data (1.0.3)
http_parser.rb (0.6.0)
i18n (1.2.0)
i18n (1.5.3)
concurrent-ruby (~> 1.0)
jmespath (1.4.0)
kubeclient (1.1.4)
Expand All @@ -73,7 +73,7 @@ GEM
mime-types-data (~> 3.2015)
mime-types-data (3.2018.0812)
minitest (5.11.3)
msgpack (1.2.4)
msgpack (1.2.6)
netrc (0.11.0)
oj (3.5.1)
public_suffix (3.0.3)
Expand All @@ -91,7 +91,7 @@ GEM
thread_safe (0.3.6)
tzinfo (1.2.5)
thread_safe (~> 0.1)
tzinfo-data (1.2018.7)
tzinfo-data (1.2018.9)
tzinfo (>= 1.0.0)
unf (0.1.4)
unf_ext
Expand All @@ -108,7 +108,7 @@ DEPENDENCIES
fluent-plugin-kubernetes_metadata_filter (~> 2.1.4)
fluent-plugin-rewrite-tag-filter (~> 2.1.0)
fluent-plugin-systemd (~> 1.0.1)
fluentd (= 1.3.2)
fluentd (= 1.3.3)
oj (= 3.5.1)

BUNDLED WITH
Expand Down
2 changes: 1 addition & 1 deletion docker-image/v1.3/debian-cloudwatch/conf/fluent.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# AUTOMATICALLY GENERATED
# DO NOT EDIT THIS FILE DIRECTLY, USE /templates/conf/fluent.conf.erb

@include systemd.conf
@include "#{ENV['FLUENTD_SYSTEMD_CONF'] || 'systemd'}.conf"
@include kubernetes.conf
@include conf.d/*.conf

Expand Down
2 changes: 1 addition & 1 deletion docker-image/v1.3/debian-cloudwatch/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/dumb-init /bin/sh
#!/bin/sh


exec fluentd -c /fluentd/etc/${FLUENTD_CONF} -p /fluentd/plugins --gemfile /fluentd/Gemfile ${FLUENTD_OPT}
2 changes: 1 addition & 1 deletion docker-image/v1.3/debian-cloudwatch/hooks/post_push
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tagStart=$(expr index "$IMAGE_NAME" :)
repoName=${IMAGE_NAME:0:tagStart-1}

# Tag and push image for each additional tag
for tag in {v1.3.2-debian-cloudwatch,v1.3-debian-cloudwatch}; do
for tag in {v1.3.3-debian-cloudwatch-1.0,v1.3-debian-cloudwatch-1}; do
docker tag $IMAGE_NAME ${repoName}:${tag}
docker push ${repoName}:${tag}
done
5 changes: 3 additions & 2 deletions docker-image/v1.3/debian-elasticsearch/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# AUTOMATICALLY GENERATED
# DO NOT EDIT THIS FILE DIRECTLY, USE /templates/Dockerfile.erb

FROM fluent/fluentd:v1.3.2-debian
FROM fluent/fluentd:v1.3.3-debian-1.0

LABEL maintainer="Eduardo Silva <[email protected]>"
USER root
Expand Down Expand Up @@ -34,6 +34,7 @@ COPY Gemfile* /fluentd/
COPY ./conf/fluent.conf /fluentd/etc/
COPY ./conf/systemd.conf /fluentd/etc/
COPY ./conf/kubernetes.conf /fluentd/etc/
RUN touch /fluentd/etc/disable.conf

# Copy plugins
COPY plugins /fluentd/plugins/
Expand All @@ -47,4 +48,4 @@ ENV FLUENTD_CONF="fluent.conf"
ENV LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libjemalloc.so.1"

# Overwrite ENTRYPOINT to run fluentd as root for /var/log / /var/lib
ENTRYPOINT ["/fluentd/entrypoint.sh"]
ENTRYPOINT ["tini", "--", "/fluentd/entrypoint.sh"]
2 changes: 1 addition & 1 deletion docker-image/v1.3/debian-elasticsearch/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

source "https://rubygems.org"

gem "fluentd", "1.3.2"
gem "fluentd", "1.3.3"
gem "oj", "3.5.1"
gem "fluent-plugin-rewrite-tag-filter", "~> 2.1.0"
gem "fluent-plugin-elasticsearch", "~> 2.11.0"
Expand Down
14 changes: 7 additions & 7 deletions docker-image/v1.3/debian-elasticsearch/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ GEM
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
addressable (2.5.2)
addressable (2.6.0)
public_suffix (>= 2.0.2, < 4.0)
concurrent-ruby (1.1.4)
cool.io (1.5.3)
Expand All @@ -24,7 +24,7 @@ GEM
excon (0.62.0)
faraday (0.15.4)
multipart-post (>= 1.2, < 3)
ffi (1.9.25)
ffi (1.10.0)
fluent-config-regexp-type (1.0.0)
fluentd (> 1.0.0, < 2)
fluent-plugin-elasticsearch (2.11.11)
Expand All @@ -41,7 +41,7 @@ GEM
fluent-plugin-systemd (1.0.1)
fluentd (>= 0.14.11, < 2)
systemd-journal (~> 1.3.2)
fluentd (1.3.2)
fluentd (1.3.3)
cool.io (>= 1.4.5, < 2.0.0)
dig_rb (~> 1.0.0)
http_parser.rb (>= 0.5.1, < 0.7.0)
Expand All @@ -61,7 +61,7 @@ GEM
domain_name (~> 0.5)
http-form_data (1.0.3)
http_parser.rb (0.6.0)
i18n (1.2.0)
i18n (1.5.3)
concurrent-ruby (~> 1.0)
kubeclient (1.1.4)
activesupport
Expand All @@ -73,7 +73,7 @@ GEM
mime-types-data (~> 3.2015)
mime-types-data (3.2018.0812)
minitest (5.11.3)
msgpack (1.2.4)
msgpack (1.2.6)
multi_json (1.13.1)
multipart-post (2.0.0)
netrc (0.11.0)
Expand All @@ -93,7 +93,7 @@ GEM
thread_safe (0.3.6)
tzinfo (1.2.5)
thread_safe (~> 0.1)
tzinfo-data (1.2018.7)
tzinfo-data (1.2018.9)
tzinfo (>= 1.0.0)
unf (0.1.4)
unf_ext
Expand All @@ -109,7 +109,7 @@ DEPENDENCIES
fluent-plugin-kubernetes_metadata_filter (~> 2.1.4)
fluent-plugin-rewrite-tag-filter (~> 2.1.0)
fluent-plugin-systemd (~> 1.0.1)
fluentd (= 1.3.2)
fluentd (= 1.3.3)
oj (= 3.5.1)

BUNDLED WITH
Expand Down
2 changes: 1 addition & 1 deletion docker-image/v1.3/debian-elasticsearch/conf/fluent.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# AUTOMATICALLY GENERATED
# DO NOT EDIT THIS FILE DIRECTLY, USE /templates/conf/fluent.conf.erb

@include systemd.conf
@include "#{ENV['FLUENTD_SYSTEMD_CONF'] || 'systemd'}.conf"
@include kubernetes.conf
@include conf.d/*.conf

Expand Down
14 changes: 8 additions & 6 deletions docker-image/v1.3/debian-elasticsearch/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
#!/usr/bin/dumb-init /bin/sh
#!/bin/sh


set -e

if [ -z ${FLUENT_ELASTICSEARCH_USER} ] ; then
sed -i '/FLUENT_ELASTICSEARCH_USER/d' /fluentd/etc/${FLUENTD_CONF}
fi
if [ -z ${FLUENT_ELASTICSEARCH_SED_DISABLE} ] ; then
if [ -z ${FLUENT_ELASTICSEARCH_USER} ] ; then
sed -i '/FLUENT_ELASTICSEARCH_USER/d' /fluentd/etc/${FLUENTD_CONF}
fi

if [ -z ${FLUENT_ELASTICSEARCH_PASSWORD} ] ; then
sed -i '/FLUENT_ELASTICSEARCH_PASSWORD/d' /fluentd/etc/${FLUENTD_CONF}
if [ -z ${FLUENT_ELASTICSEARCH_PASSWORD} ] ; then
sed -i '/FLUENT_ELASTICSEARCH_PASSWORD/d' /fluentd/etc/${FLUENTD_CONF}
fi
fi

exec fluentd -c /fluentd/etc/${FLUENTD_CONF} -p /fluentd/plugins --gemfile /fluentd/Gemfile ${FLUENTD_OPT}
2 changes: 1 addition & 1 deletion docker-image/v1.3/debian-elasticsearch/hooks/post_push
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tagStart=$(expr index "$IMAGE_NAME" :)
repoName=${IMAGE_NAME:0:tagStart-1}

# Tag and push image for each additional tag
for tag in {v1.3.2-debian-elasticsearch,v1.3-debian-elasticsearch}; do
for tag in {v1.3.3-debian-elasticsearch-1.0,v1.3-debian-elasticsearch-1}; do
docker tag $IMAGE_NAME ${repoName}:${tag}
docker push ${repoName}:${tag}
done
5 changes: 3 additions & 2 deletions docker-image/v1.3/debian-gcs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# AUTOMATICALLY GENERATED
# DO NOT EDIT THIS FILE DIRECTLY, USE /templates/Dockerfile.erb

FROM fluent/fluentd:v1.3.2-debian
FROM fluent/fluentd:v1.3.3-debian-1.0

LABEL maintainer="Eduardo Silva <[email protected]>"
USER root
Expand Down Expand Up @@ -34,6 +34,7 @@ COPY Gemfile* /fluentd/
COPY ./conf/fluent.conf /fluentd/etc/
COPY ./conf/systemd.conf /fluentd/etc/
COPY ./conf/kubernetes.conf /fluentd/etc/
RUN touch /fluentd/etc/disable.conf

# Copy plugins
COPY plugins /fluentd/plugins/
Expand All @@ -47,4 +48,4 @@ ENV FLUENTD_CONF="fluent.conf"
ENV LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libjemalloc.so.1"

# Overwrite ENTRYPOINT to run fluentd as root for /var/log / /var/lib
ENTRYPOINT ["/fluentd/entrypoint.sh"]
ENTRYPOINT ["tini", "--", "/fluentd/entrypoint.sh"]
2 changes: 1 addition & 1 deletion docker-image/v1.3/debian-gcs/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

source "https://rubygems.org"

gem "fluentd", "1.3.2"
gem "fluentd", "1.3.3"
gem "oj", "3.5.1"
gem "fluent-plugin-rewrite-tag-filter", "~> 2.1.0"
gem "fluent-plugin-gcs", "0.4.0.beta1"
Expand Down
Loading

0 comments on commit 360a3ea

Please sign in to comment.