Skip to content
Snippets Groups Projects
Commit 02bb5f90 authored by Sam Yaple's avatar Sam Yaple
Browse files

Add Dockerfile template for glance

Change-Id: I984940ec9251bf65ddd1448425909a2c9108afd8
Partially-Implements: blueprint dockerfile-template
parent 16223ff6
No related branches found
No related tags found
No related merge requests found
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"]
../../../docker/common/glance/glance-api/config-external.sh
\ No newline at end of file
../../../docker/common/glance/glance-api/start.sh
\ No newline at end of file
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 %}
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"]
../../../docker/common/glance/glance-registry/config-external.sh
\ No newline at end of file
../../../docker/common/glance/glance-registry/start.sh
\ No newline at end of file
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