
Zun compute needs to access the docker socket for API call. The socket is owned by 'docker' group and the zun-compute process is owned by 'zun' user. In order to allow the access, this commit add zun user to docker group. Change-Id: Ifa7d399242dddf8d07f8b495b344752131a0f110
24 lines
671 B
Django/Jinja
24 lines
671 B
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}zun-base:{{ tag }}
|
|
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
|
|
|
|
{% block zun_compute_header %}{% endblock %}
|
|
|
|
{% if install_type == 'binary' %}
|
|
|
|
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|
&& /bin/false
|
|
|
|
{% endif %}
|
|
|
|
COPY zun_sudoers /etc/sudoers.d/kolla_zun_sudoers
|
|
COPY extend_start.sh /usr/local/bin/kolla_zun_extend_start
|
|
|
|
RUN chmod 755 /usr/local/bin/kolla_zun_extend_start \
|
|
&& chmod 750 /etc/sudoers.d \
|
|
&& chmod 640 /etc/sudoers.d/kolla_zun_sudoers
|
|
|
|
{% block zun_compute_footer %}{% endblock %}
|
|
{% block footer %}{% endblock %}
|
|
|
|
USER zun
|