Add Dockerfile template for glance

Change-Id: I984940ec9251bf65ddd1448425909a2c9108afd8
Partially-Implements: blueprint dockerfile-template
This commit is contained in:
Sam Yaple 2015-08-12 06:50:55 +00:00
parent 16223ff639
commit 02bb5f9000
7 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,7 @@
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-glance-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla)
COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]

View File

@ -0,0 +1 @@
../../../docker/common/glance/glance-api/config-external.sh

View File

@ -0,0 +1 @@
../../../docker/common/glance/glance-api/start.sh

View File

@ -0,0 +1,31 @@
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla)
{% if install_type == 'binary' %}
{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
RUN yum -y install \
openstack-glance \
python-oslo-i18n \
&& yum clean all
{% elif base_distro in ['ubuntu', 'debian'] %}
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
&& /bin/false
{% endif %}
{% elif install_type == 'source' %}
ADD ./glance.tar /
RUN ln -s /glance-* /glance
RUN cd /glance \
&& useradd --user-group glance \
&& pip install -r requirements.txt \
&& pip install /glance \
&& mkdir /etc/glance /var/log/glance \
&& cp -r /glance/etc/* /etc/glance/ \
&& rm -rf /root/.cache
{% endif %}

View File

@ -0,0 +1,7 @@
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-glance-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla)
COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]

View File

@ -0,0 +1 @@
../../../docker/common/glance/glance-registry/config-external.sh

View File

@ -0,0 +1 @@
../../../docker/common/glance/glance-registry/start.sh