2016-02-03 11:06:47 +01:00
|
|
|
FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }}
|
|
|
|
MAINTAINER {{ maintainer }}
|
|
|
|
|
|
|
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
|
|
|
|
2016-04-12 21:27:34 +05:30
|
|
|
RUN yum -y install \
|
|
|
|
https://github.com/mozilla-services/heka/releases/download/v0.10.0/heka-0_10_0-linux-amd64.rpm \
|
2016-02-22 02:52:04 -08:00
|
|
|
&& yum clean all \
|
2016-04-07 15:00:26 +02:00
|
|
|
&& useradd --user-group heka \
|
|
|
|
&& mkdir /etc/heka
|
2016-02-03 11:06:47 +01:00
|
|
|
|
2016-03-25 16:45:19 +01:00
|
|
|
{% elif base_distro in ['ubuntu', 'debian'] %}
|
2016-02-03 11:06:47 +01:00
|
|
|
|
|
|
|
RUN curl --location https://github.com/mozilla-services/heka/releases/download/v0.10.0/heka_0.10.0_amd64.deb -o heka_0.10.0_amd64.deb \
|
|
|
|
&& dpkg -i heka_0.10.0_amd64.deb \
|
|
|
|
&& rm -f heka_0.10.0_amd64.deb
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
2016-02-05 10:52:07 +01:00
|
|
|
COPY plugins/modules /usr/share/heka/lua_modules/
|
|
|
|
COPY plugins/decoders /usr/share/heka/lua_decoders/
|
|
|
|
COPY plugins/encoders /usr/share/heka/lua_encoders/
|
|
|
|
|
2016-02-03 11:06:47 +01:00
|
|
|
COPY heka_sudoers /etc/sudoers.d/heka_sudoers
|
|
|
|
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
|
|
|
|
|
|
|
RUN usermod -a -G kolla heka \
|
2016-02-22 03:03:39 -08:00
|
|
|
&& chmod 440 /etc/sudoers.d/heka_sudoers \
|
2016-02-03 11:06:47 +01:00
|
|
|
&& chmod 755 /usr/local/bin/kolla_extend_start \
|
2016-04-07 15:00:26 +02:00
|
|
|
&& chown -R heka: /usr/share/heka /etc/heka
|
2016-02-03 11:06:47 +01:00
|
|
|
|
|
|
|
{{ include_footer }}
|
|
|
|
|
|
|
|
USER heka
|