kolla-ansible/docker/cron/Dockerfile.j2
Serguei Bezverkhi 2df3d25019 Fixing crond crashing with centos/source
This PS address the issue encountered with the latest master, crond
container's docker file did not have any logic for source type of
installation as a result no binaries were install causing container's
constant restart. Fixing logic in cron's docker file.

Change-Id: I318aa9cb16517e21e0fe58393ee577701331b077
Closes-Bug: #1607336
2016-07-28 08:06:31 -04:00

25 lines
682 B
Django/Jinja

FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }}
MAINTAINER {{ maintainer }}
{% import "macros.j2" as macros with context %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
{% set cron_packages = [
'cronie',
'logrotate'
] %}
{% elif base_distro in ['ubuntu', 'debian'] %}
{% set cron_packages = [
'cron',
'logrotate'
] %}
{% endif %}
RUN {{ macros.install_packages(cron_packages | customizable("packages")) }}
COPY extend_start.sh /usr/local/bin/kolla_extend_start
RUN chmod 755 /usr/local/bin/kolla_extend_start
{% block cron_footer %}{% endblock %}
{% block footer %}{% endblock %}
{{ include_footer }}