Add Dockerfile template for Gnocchi
Change-Id: I15e6a06645361aec979d7dad4794b45236c957e3 Partially-Implements: blueprint dockerfile-template
This commit is contained in:
parent
ac61653343
commit
8758435d40
18
docker_templates/gnocchi/gnocchi-api/Dockerfile.j2
Normal file
18
docker_templates/gnocchi/gnocchi-api/Dockerfile.j2
Normal file
@ -0,0 +1,18 @@
|
||||
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-gnocchi-base:{{ tag }}
|
||||
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
||||
|
||||
{% if install_type == 'binary' %}
|
||||
{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
|
||||
|
||||
RUN yum install -y openstack-gnocchi-api \
|
||||
openstack-gnocchi-carbonara \
|
||||
openstack-gnocchi-indexer-sqlalchemy \
|
||||
&& yum clean all
|
||||
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
COPY start.sh /
|
||||
COPY config-external.sh /opt/kolla/
|
||||
|
||||
CMD ["/start.sh"]
|
1
docker_templates/gnocchi/gnocchi-api/config-external.sh
Symbolic link
1
docker_templates/gnocchi/gnocchi-api/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/gnocchi/gnocchi-api/config-external.sh
|
1
docker_templates/gnocchi/gnocchi-api/start.sh
Symbolic link
1
docker_templates/gnocchi/gnocchi-api/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/gnocchi/gnocchi-api/start.sh
|
24
docker_templates/gnocchi/gnocchi-base/Dockerfile.j2
Normal file
24
docker_templates/gnocchi/gnocchi-base/Dockerfile.j2
Normal file
@ -0,0 +1,24 @@
|
||||
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-base:{{ tag }}
|
||||
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
||||
|
||||
{% if install_type == 'binary' %}
|
||||
{% if base_distro in ['ubuntu', 'debian'] %}
|
||||
|
||||
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
||||
&& /bin/false
|
||||
|
||||
{% endif %}
|
||||
{% elif install_type == 'source' %}
|
||||
|
||||
ADD ./gnocchi.tar /
|
||||
RUN ln -s /gnocchi-* /gnocchi
|
||||
|
||||
RUN cd /gnocchi \
|
||||
&& useradd --user-group gnocchi \
|
||||
&& pip install -r requirements.txt \
|
||||
&& pip install /gnocchi \
|
||||
&& mkdir /etc/gnocchi /var/log/gnocchi \
|
||||
&& cp -r /gnocchi/etc/* /etc/gnocchi/ \
|
||||
&& rm -rf /root/.cache
|
||||
|
||||
{% endif %}
|
16
docker_templates/gnocchi/gnocchi-statsd/Dockerfile.j2
Normal file
16
docker_templates/gnocchi/gnocchi-statsd/Dockerfile.j2
Normal file
@ -0,0 +1,16 @@
|
||||
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-gnocchi-base:{{ tag }}
|
||||
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
||||
|
||||
{% if install_type == 'binary' %}
|
||||
{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
|
||||
|
||||
RUN yum install -y openstack-gnocchi-statsd \
|
||||
&& yum clean all
|
||||
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
COPY start.sh /
|
||||
COPY config-external.sh /opt/kolla/
|
||||
|
||||
CMD ["/start.sh"]
|
1
docker_templates/gnocchi/gnocchi-statsd/config-external.sh
Symbolic link
1
docker_templates/gnocchi/gnocchi-statsd/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/gnocchi/gnocchi-statsd/config-external.sh
|
1
docker_templates/gnocchi/gnocchi-statsd/start.sh
Symbolic link
1
docker_templates/gnocchi/gnocchi-statsd/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/gnocchi/gnocchi-statsd/start.sh
|
Loading…
Reference in New Issue
Block a user