aboutsummaryrefslogtreecommitdiff
path: root/docker_templates
diff options
context:
space:
mode:
Diffstat (limited to 'docker_templates')
-rw-r--r--docker_templates/ironic/ironic-base/Dockerfile.j221
1 files changed, 15 insertions, 6 deletions
diff --git a/docker_templates/ironic/ironic-base/Dockerfile.j2 b/docker_templates/ironic/ironic-base/Dockerfile.j2
index 02e00f409..1e3361d47 100644
--- a/docker_templates/ironic/ironic-base/Dockerfile.j2
+++ b/docker_templates/ironic/ironic-base/Dockerfile.j2
@@ -8,10 +8,10 @@ MAINTAINER Kolla Project (https://launchpad.net/kolla)
# api: policy
# conductor:MySQL-python
RUN yum -y install \
- python-oslo-log \
- python-oslo-concurrency \
- python-oslo-policy \
- MySQL-python \
+ python-oslo-log \
+ python-oslo-concurrency \
+ python-oslo-policy \
+ MySQL-python \
&& yum clean all
{% elif base_distro in ['ubuntu', 'debian'] %}
@@ -22,7 +22,16 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
{% endif %}
{% elif install_type == 'source' %}
-RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
- && /bin/false
+ADD ironic.tar /
+RUN ln -s /ironic-* /ironic
+
+RUN cd /ironic \
+ && useradd --user-group ironic \
+ && pip install -r requirements.txt \
+ && pip install --install-option="--install-scripts=/usr/bin" /ironic \
+ && mkdir -p /etc/ironic /var/log/ironic /home/ironic \
+ && cp -r /ironic/etc/* /etc/ironic/ \
+ && chown -R ironic: /etc/ironic /var/log/ironic /home/ironic \
+ && rm -rf /root/.cache
{% endif %}