Merge "Drop root for ironic"

This commit is contained in:
Jenkins 2015-11-24 17:17:27 +00:00 committed by Gerrit Code Review
commit 42c8fec79c
6 changed files with 11 additions and 1 deletions
docker/ironic
ironic-api
ironic-base
ironic-conductor
ironic-discoverd
ironic-pxe

@ -14,3 +14,5 @@ COPY extend_start.sh /usr/local/bin/kolla_extend_start
RUN chmod 755 /usr/local/bin/kolla_extend_start
{{ include_footer }}
USER ironic

@ -3,6 +3,6 @@
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
# of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
sudo -H -u ironic ironic-dbsync upgrade
ironic-dbsync upgrade
exit 0
fi

@ -26,3 +26,5 @@ RUN ln -s ironic-base-source/* ironic \
&& chown -R ironic: /etc/ironic /var/log/ironic /home/ironic
{% endif %}
RUN usermod -a -G kolla ironic

@ -11,3 +11,5 @@ RUN yum -y install openstack-ironic-conductor \
{% endif %}
{{ include_footer }}
USER ironic

@ -14,3 +14,5 @@ RUN pip install ironic-discoverd
{% endif %}
{{ include_footer }}
USER ironic

@ -25,3 +25,5 @@ RUN apt-get install -y --no-install-recommends \
COPY tftp-map-file /tftpboot/map-file
{{ include_footer }}
USER ironic