kolla/docker/chronos/Dockerfile.j2
Swapnil Kulkarni (coolsvap) ccba149fc2 Update chronos dockerfile for formatting
Change-Id: I690e1ae8c199be3f6ff86f56ebd9498843414a70
Partial-Bug:#1569417
2016-04-21 17:14:19 +05:30

25 lines
544 B
Django/Jinja

FROM {{ namespace }}/{{ image_prefix }}mesos-base:{{ tag }}
MAINTAINER {{ maintainer }}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
RUN yum -y install \
chronos \
&& yum clean all
{% elif base_distro in ['ubuntu', 'debian'] %}
RUN apt-get install -y --no-install-recommends \
chronos \
&& apt-get clean
{% endif %}
RUN useradd --user-group chronos
CMD chronos run_jar --http_port $CHRONOS_HTTP_PORT --master $CHRONOS_MASTER --zk_hosts $CHRONOS_ZK_HOSTS
{{ include_footer }}
USER chronos