63c5e77e04
Change-Id: Ic75140f89ad193479416036743e7c9330298a18d Partial-Bug:#1569417
32 lines
782 B
Django/Jinja
32 lines
782 B
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}mesosphere-base:{{ tag }}
|
|
MAINTAINER {{ maintainer }}
|
|
|
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
|
|
|
RUN yum -y install \
|
|
mesosphere-zookeeper \
|
|
&& yum clean all
|
|
|
|
RUN useradd --user-group zookeeper
|
|
|
|
{% elif base_distro in ['ubuntu', 'debian'] %}
|
|
|
|
RUN apt-get install -y --no-install-recommends \
|
|
zookeeper \
|
|
&& apt-get clean
|
|
|
|
{% endif %}
|
|
|
|
COPY zookeeper_sudoers /etc/sudoers.d/zookeeper_sudoers
|
|
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
|
RUN chmod 755 /usr/local/bin/kolla_extend_start \
|
|
&& chmod 750 /etc/sudoers.d \
|
|
&& chmod 440 /etc/sudoers.d/zookeeper_sudoers \
|
|
&& usermod -a -G kolla zookeeper
|
|
|
|
ENV ZOOCFGDIR=/etc/zookeeper/conf
|
|
|
|
{{ include_footer }}
|
|
|
|
USER zookeeper
|