259266ceb8
Change-Id: I6c9b8f8b0cf254c2c3333ca789c5da364c7d5c73 Partially-Implements: blueprint monasca-containers
33 lines
875 B
Django/Jinja
33 lines
875 B
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }}
|
|
MAINTAINER {{ maintainer }}
|
|
|
|
{% block kafka_header %}{% endblock %}
|
|
|
|
{% import "macros.j2" as macros with context %}
|
|
|
|
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
|
|
|
|
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|
&& /bin/false
|
|
|
|
{% elif base_distro in ['ubuntu', 'debian'] %}
|
|
{% set kafka_packages = [
|
|
'default-jre',
|
|
] %}
|
|
{% endif %}
|
|
|
|
{{ macros.install_packages(kafka_packages | customizable("packages")) }}
|
|
|
|
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
|
ADD kafka-archive /
|
|
RUN ln -s kafka* kafka \
|
|
&& useradd --user-group --home-dir /kafka kafka \
|
|
&& chmod 755 /usr/local/bin/kolla_extend_start \
|
|
&& usermod -a -G kolla kafka \
|
|
&& chown -R kafka: /kafka
|
|
|
|
{% block kafka_footer %}{% endblock %}
|
|
{% block footer %}{% endblock %}
|
|
|
|
USER kafka
|