Skip to content
Snippets Groups Projects
Commit 545d4033 authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "Add Dockerfile template for designate"

parents 45785410 491823b9
No related branches found
No related tags found
No related merge requests found
Showing
with 162 additions and 0 deletions
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"]
../../../docker/common/designate/designate-api/config-external.sh
\ No newline at end of file
../../../docker/common/designate/designate-api/start.sh
\ No newline at end of file
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net.kolla)
VOLUME [ "/var/named" ]
CMD [ "/bin/true" ]
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"]
../../../docker/common/designate/designate-backend-bind9/config-external.sh
\ No newline at end of file
../../../docker/common/designate/designate-backend-bind9/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 ['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 %}
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"]
../../../docker/common/designate/designate-central/config-external.sh
\ No newline at end of file
../../../docker/common/designate/designate-central/start.sh
\ No newline at end of file
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"]
../../../docker/common/designate/designate-mdns/config-external.sh
\ No newline at end of file
../../../docker/common/designate/designate-mdns/start.sh
\ No newline at end of file
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"]
../../../docker/common/designate/designate-poolmanager/config-external.sh
\ No newline at end of file
../../../docker/common/designate/designate-poolmanager/start.sh
\ No newline at end of file
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"]
../../../docker/common/designate/designate-sink/config-external.sh
\ No newline at end of file
../../../docker/common/designate/designate-sink/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