Add Dockerfile template for glance
Change-Id: I984940ec9251bf65ddd1448425909a2c9108afd8 Partially-Implements: blueprint dockerfile-template
This commit is contained in:
parent
16223ff639
commit
02bb5f9000
7
docker_templates/glance/glance-api/Dockerfile.j2
Normal file
7
docker_templates/glance/glance-api/Dockerfile.j2
Normal 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"]
|
1
docker_templates/glance/glance-api/config-external.sh
Symbolic link
1
docker_templates/glance/glance-api/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/glance/glance-api/config-external.sh
|
1
docker_templates/glance/glance-api/start.sh
Symbolic link
1
docker_templates/glance/glance-api/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/glance/glance-api/start.sh
|
31
docker_templates/glance/glance-base/Dockerfile.j2
Normal file
31
docker_templates/glance/glance-base/Dockerfile.j2
Normal 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 %}
|
7
docker_templates/glance/glance-registry/Dockerfile.j2
Normal file
7
docker_templates/glance/glance-registry/Dockerfile.j2
Normal 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"]
|
1
docker_templates/glance/glance-registry/config-external.sh
Symbolic link
1
docker_templates/glance/glance-registry/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/glance/glance-registry/config-external.sh
|
1
docker_templates/glance/glance-registry/start.sh
Symbolic link
1
docker_templates/glance/glance-registry/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/glance/glance-registry/start.sh
|
Loading…
Reference in New Issue
Block a user