Initial
This commit is contained in:
24
fluentd/Dockerfile
Normal file
24
fluentd/Dockerfile
Normal file
@@ -0,0 +1,24 @@
|
||||
# image based on fluentd v1.14-1
|
||||
FROM fluentd:v1.14-1
|
||||
# Use root account to use apk
|
||||
USER root
|
||||
# Install the required version of faraday
|
||||
RUN gem uninstall -I faraday
|
||||
RUN gem install faraday -v 2.8.1
|
||||
# Install dependencies and gems
|
||||
RUN apk --no-cache --update add \
|
||||
sudo \
|
||||
build-base \
|
||||
ruby-dev \
|
||||
&& gem uninstall -I elasticsearch \
|
||||
&& gem install elasticsearch -v 7.17.0 \
|
||||
&& gem install fluent-plugin-elasticsearch \
|
||||
&& gem sources --clear-all \
|
||||
&& apk del build-base ruby-dev \
|
||||
&& rm -rf /tmp/* /var/tmp/* /usr/lib/ruby/gems/*/cache/*.gem
|
||||
# Copy fluentd configuration from host image
|
||||
COPY ./conf/fluent.conf /fluentd/etc/
|
||||
# Copy binary start file
|
||||
COPY entrypoint.sh /bin/
|
||||
RUN chmod +x /bin/entrypoint.sh
|
||||
USER fluent
|
||||
Reference in New Issue
Block a user