Add Dockerfile template for designate
Change-Id: I740f1ccc5763b683a39957304a7cce3f43f2c588 Partially-Implements: blueprint dockerfile-template
This commit is contained in:
parent
28e7ac04d3
commit
491823b93b
17
docker_templates/designate/designate-api/Dockerfile.j2
Normal file
17
docker_templates/designate/designate-api/Dockerfile.j2
Normal file
@ -0,0 +1,17 @@
|
||||
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-designate-base:{{ tag }}
|
||||
MAINTAINER Kolla Project (https://launchpad.net.kolla)
|
||||
|
||||
{% if install_type == 'binary' %}
|
||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux'] %}
|
||||
|
||||
RUN yum install -y \
|
||||
openstack-designate-api \
|
||||
&& yum clean all
|
||||
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
COPY start.sh /start.sh
|
||||
COPY config-external.sh /opt/kolla/
|
||||
|
||||
CMD ["/start.sh"]
|
1
docker_templates/designate/designate-api/config-external.sh
Symbolic link
1
docker_templates/designate/designate-api/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/designate/designate-api/config-external.sh
|
1
docker_templates/designate/designate-api/start.sh
Symbolic link
1
docker_templates/designate/designate-api/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/designate/designate-api/start.sh
|
@ -0,0 +1,6 @@
|
||||
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-base:{{ tag }}
|
||||
MAINTAINER Kolla Project (https://launchpad.net.kolla)
|
||||
|
||||
VOLUME [ "/var/named" ]
|
||||
|
||||
CMD [ "/bin/true" ]
|
@ -0,0 +1,17 @@
|
||||
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-designate-base:{{ tag }}
|
||||
MAINTAINER Kolla Project (https://launchpad.net.kolla)
|
||||
|
||||
{% if install_type == 'binary' %}
|
||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux'] %}
|
||||
|
||||
RUN yum install -y bind \
|
||||
&& yum clean all \
|
||||
&& cp -pr /var/named /opt/kolla/var-named
|
||||
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
COPY start.sh /start.sh
|
||||
COPY config-external.sh /opt/kolla/
|
||||
|
||||
CMD ["/start.sh"]
|
@ -0,0 +1 @@
|
||||
../../../docker/common/designate/designate-backend-bind9/config-external.sh
|
1
docker_templates/designate/designate-backend-bind9/start.sh
Symbolic link
1
docker_templates/designate/designate-backend-bind9/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/designate/designate-backend-bind9/start.sh
|
40
docker_templates/designate/designate-base/Dockerfile.j2
Normal file
40
docker_templates/designate/designate-base/Dockerfile.j2
Normal file
@ -0,0 +1,40 @@
|
||||
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-base:{{ tag }}
|
||||
MAINTAINER Kolla Project (https://launchpad.net.kolla)
|
||||
|
||||
{% if install_type == 'binary' %}
|
||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux'] %}
|
||||
|
||||
# Install designate-api because of /etc/designate/policy.json, which
|
||||
# is needed in all services. This is probably a packaging bug. We do
|
||||
# need the complete policy file because of some of the containers'
|
||||
# requiring it. Remove the package when the file is moved though.
|
||||
RUN yum install -y \
|
||||
MySQL-python \
|
||||
openstack-designate-api \
|
||||
openstack-designate-common \
|
||||
python-tooz \
|
||||
&& yum clean all \
|
||||
&& cp /etc/designate/policy.json /tmp/ \
|
||||
&& rpm -e openstack-designate-api \
|
||||
&& mv /tmp/policy.json /etc/designate/
|
||||
|
||||
{% elif base_distro in ['ubuntu', 'debian'] %}
|
||||
|
||||
RUN echo '{{ install_type}} not yet available for {{ base_distro }}' \
|
||||
&& /bin/false
|
||||
|
||||
{% endif %}
|
||||
{% elif install_type == 'source' %}
|
||||
|
||||
ADD ./designate.tar /
|
||||
RUN ln -s /designate-* /designate
|
||||
|
||||
RUN cd /designate \
|
||||
&& useradd --user-group designate \
|
||||
&& pip install -r requirements.txt \
|
||||
&& pip install /designate \
|
||||
&& mkdir /etc/designate /var/log/designate \
|
||||
&& cp -r /designate/etc/designate/* /etc/designate/ \
|
||||
&& rm -rf /root/.cache
|
||||
|
||||
{% endif %}
|
17
docker_templates/designate/designate-central/Dockerfile.j2
Normal file
17
docker_templates/designate/designate-central/Dockerfile.j2
Normal file
@ -0,0 +1,17 @@
|
||||
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-designate-base:{{ tag }}
|
||||
MAINTAINER Kolla Project (https://launchpad.net.kolla)
|
||||
|
||||
{% if install_type == 'binary' %}
|
||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux'] %}
|
||||
|
||||
RUN yum install -y \
|
||||
openstack-designate-central \
|
||||
&& yum clean all
|
||||
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
COPY start.sh /start.sh
|
||||
COPY config-external.sh /opt/kolla/
|
||||
|
||||
CMD ["/start.sh"]
|
1
docker_templates/designate/designate-central/config-external.sh
Symbolic link
1
docker_templates/designate/designate-central/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/designate/designate-central/config-external.sh
|
1
docker_templates/designate/designate-central/start.sh
Symbolic link
1
docker_templates/designate/designate-central/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/designate/designate-central/start.sh
|
16
docker_templates/designate/designate-mdns/Dockerfile.j2
Normal file
16
docker_templates/designate/designate-mdns/Dockerfile.j2
Normal file
@ -0,0 +1,16 @@
|
||||
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-designate-base:{{ tag }}
|
||||
MAINTAINER Kolla Project (https://launchpad.net.kolla)
|
||||
|
||||
{% if install_type == 'binary' %}
|
||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux'] %}
|
||||
|
||||
RUN yum install -y openstack-designate-mdns \
|
||||
&& yum clean all
|
||||
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
COPY start.sh /start.sh
|
||||
COPY config-external.sh /opt/kolla/
|
||||
|
||||
CMD ["/start.sh"]
|
1
docker_templates/designate/designate-mdns/config-external.sh
Symbolic link
1
docker_templates/designate/designate-mdns/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/designate/designate-mdns/config-external.sh
|
1
docker_templates/designate/designate-mdns/start.sh
Symbolic link
1
docker_templates/designate/designate-mdns/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/designate/designate-mdns/start.sh
|
@ -0,0 +1,19 @@
|
||||
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-designate-base:{{ tag }}
|
||||
MAINTAINER Kolla Project (https://launchpad.net.kolla)
|
||||
|
||||
{% if install_type == 'binary' %}
|
||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux'] %}
|
||||
|
||||
# The bind9 package here is only to provide the rndc binary.
|
||||
RUN yum install -y \
|
||||
openstack-designate-pool-manager \
|
||||
bind \
|
||||
&& yum clean all
|
||||
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
COPY start.sh /start.sh
|
||||
COPY config-external.sh /opt/kolla/
|
||||
|
||||
CMD ["/start.sh"]
|
@ -0,0 +1 @@
|
||||
../../../docker/common/designate/designate-poolmanager/config-external.sh
|
1
docker_templates/designate/designate-poolmanager/start.sh
Symbolic link
1
docker_templates/designate/designate-poolmanager/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/designate/designate-poolmanager/start.sh
|
18
docker_templates/designate/designate-sink/Dockerfile.j2
Normal file
18
docker_templates/designate/designate-sink/Dockerfile.j2
Normal file
@ -0,0 +1,18 @@
|
||||
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-designate-base:{{ tag }}
|
||||
MAINTAINER Kolla Project (https://launchpad.net.kolla)
|
||||
|
||||
{% if install_type == 'binary' %}
|
||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux'] %}
|
||||
|
||||
RUN yum install -y \
|
||||
openstack-designate-sink \
|
||||
python-designateclient \
|
||||
&& yum clean all
|
||||
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
COPY start.sh /start.sh
|
||||
COPY config-external.sh /opt/kolla/
|
||||
|
||||
CMD ["/start.sh"]
|
1
docker_templates/designate/designate-sink/config-external.sh
Symbolic link
1
docker_templates/designate/designate-sink/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/designate/designate-sink/config-external.sh
|
1
docker_templates/designate/designate-sink/start.sh
Symbolic link
1
docker_templates/designate/designate-sink/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/designate/designate-sink/start.sh
|
Loading…
Reference in New Issue
Block a user