Skip to content
Snippets Groups Projects
Commit 42c8fec7 authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "Drop root for ironic"

parents 36523657 44251da0
No related branches found
No related tags found
No related merge requests found
...@@ -14,3 +14,5 @@ COPY extend_start.sh /usr/local/bin/kolla_extend_start ...@@ -14,3 +14,5 @@ COPY extend_start.sh /usr/local/bin/kolla_extend_start
RUN chmod 755 /usr/local/bin/kolla_extend_start RUN chmod 755 /usr/local/bin/kolla_extend_start
{{ include_footer }} {{ include_footer }}
USER ironic
...@@ -3,6 +3,6 @@ ...@@ -3,6 +3,6 @@
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases # Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
# of the KOLLA_BOOTSTRAP variable being set, including empty. # of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
sudo -H -u ironic ironic-dbsync upgrade ironic-dbsync upgrade
exit 0 exit 0
fi fi
...@@ -26,3 +26,5 @@ RUN ln -s ironic-base-source/* ironic \ ...@@ -26,3 +26,5 @@ RUN ln -s ironic-base-source/* ironic \
&& chown -R ironic: /etc/ironic /var/log/ironic /home/ironic && chown -R ironic: /etc/ironic /var/log/ironic /home/ironic
{% endif %} {% endif %}
RUN usermod -a -G kolla ironic
...@@ -11,3 +11,5 @@ RUN yum -y install openstack-ironic-conductor \ ...@@ -11,3 +11,5 @@ RUN yum -y install openstack-ironic-conductor \
{% endif %} {% endif %}
{{ include_footer }} {{ include_footer }}
USER ironic
...@@ -14,3 +14,5 @@ RUN pip install ironic-discoverd ...@@ -14,3 +14,5 @@ RUN pip install ironic-discoverd
{% endif %} {% endif %}
{{ include_footer }} {{ include_footer }}
USER ironic
...@@ -25,3 +25,5 @@ RUN apt-get install -y --no-install-recommends \ ...@@ -25,3 +25,5 @@ RUN apt-get install -y --no-install-recommends \
COPY tftp-map-file /tftpboot/map-file COPY tftp-map-file /tftpboot/map-file
{{ include_footer }} {{ include_footer }}
USER ironic
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment