Add Dockerfile template for nova
Change-Id: I11fd26950f76be2200730e333e365ef74dfd5747 Partially-Implements: blueprint dockerfile-template
This commit is contained in:
parent
a760549e78
commit
b89575b419
16
docker_templates/nova/nova-api/Dockerfile.j2
Normal file
16
docker_templates/nova/nova-api/Dockerfile.j2
Normal file
@ -0,0 +1,16 @@
|
||||
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-nova-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-nova-api \
|
||||
&& yum clean all
|
||||
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
COPY start.sh /
|
||||
COPY config-external.sh /opt/kolla/
|
||||
|
||||
CMD ["/start.sh"]
|
1
docker_templates/nova/nova-api/config-external.sh
Symbolic link
1
docker_templates/nova/nova-api/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/nova/nova-api/config-external.sh
|
1
docker_templates/nova/nova-api/start.sh
Symbolic link
1
docker_templates/nova/nova-api/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/nova/nova-api/start.sh
|
52
docker_templates/nova/nova-base/Dockerfile.j2
Normal file
52
docker_templates/nova/nova-base/Dockerfile.j2
Normal file
@ -0,0 +1,52 @@
|
||||
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-nova-common \
|
||||
python-keystoneclient \
|
||||
python-cinderclient \
|
||||
python-nova \
|
||||
bridge-utils \
|
||||
&& 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' %}
|
||||
{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
|
||||
|
||||
RUN yum -y install \
|
||||
bridge-utils \
|
||||
&& yum clean all
|
||||
|
||||
{% elif base_distro in ['ubuntu', 'debian'] %}
|
||||
|
||||
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
||||
&& /bin/false
|
||||
|
||||
{% endif %}
|
||||
|
||||
RUN pip install \
|
||||
python-cinderclient \
|
||||
python-keystoneclient
|
||||
|
||||
ADD ./nova.tar /
|
||||
RUN ln -s /nova-* /nova
|
||||
|
||||
RUN cd /nova \
|
||||
&& useradd --user-group nova \
|
||||
&& pip install -r requirements.txt \
|
||||
&& pip install /nova \
|
||||
&& tox -egenconfig \
|
||||
&& mkdir /etc/nova /var/log/nova \
|
||||
&& cp -r /nova/etc/nova/* /etc/nova/ \
|
||||
&& chown -R nova: /etc/nova /var/log/nova \
|
||||
&& rm -rf /root/.cache
|
||||
|
||||
{% endif %}
|
27
docker_templates/nova/nova-compute/Dockerfile.j2
Normal file
27
docker_templates/nova/nova-compute/Dockerfile.j2
Normal file
@ -0,0 +1,27 @@
|
||||
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-nova-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-nova-compute \
|
||||
openvswitch \
|
||||
sysfsutils \
|
||||
&& yum clean all
|
||||
|
||||
{% endif %}
|
||||
{% elif install_type == 'source' %}
|
||||
|
||||
RUN yum -y install \
|
||||
sysfsutils \
|
||||
libvirt-python \
|
||||
&& yum clean all
|
||||
|
||||
{% endif %}
|
||||
|
||||
COPY start.sh /
|
||||
COPY config-external.sh /opt/kolla/
|
||||
|
||||
VOLUME [ "/sys/fs/cgroup" ]
|
||||
|
||||
CMD ["/start.sh"]
|
1
docker_templates/nova/nova-compute/config-external.sh
Symbolic link
1
docker_templates/nova/nova-compute/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/nova/nova-compute/config-external.sh
|
1
docker_templates/nova/nova-compute/start.sh
Symbolic link
1
docker_templates/nova/nova-compute/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/nova/nova-compute/start.sh
|
17
docker_templates/nova/nova-conductor/Dockerfile.j2
Normal file
17
docker_templates/nova/nova-conductor/Dockerfile.j2
Normal file
@ -0,0 +1,17 @@
|
||||
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-nova-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-nova-conductor \
|
||||
&& yum clean all
|
||||
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
COPY start.sh /
|
||||
COPY config-external.sh /opt/kolla/
|
||||
|
||||
CMD ["/start.sh"]
|
1
docker_templates/nova/nova-conductor/config-external.sh
Symbolic link
1
docker_templates/nova/nova-conductor/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/nova/nova-conductor/config-external.sh
|
1
docker_templates/nova/nova-conductor/start.sh
Symbolic link
1
docker_templates/nova/nova-conductor/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/nova/nova-conductor/start.sh
|
16
docker_templates/nova/nova-consoleauth/Dockerfile.j2
Normal file
16
docker_templates/nova/nova-consoleauth/Dockerfile.j2
Normal file
@ -0,0 +1,16 @@
|
||||
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-nova-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-nova-console \
|
||||
&& yum clean all
|
||||
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
COPY start.sh /
|
||||
COPY config-external.sh /opt/kolla/
|
||||
|
||||
CMD ["/start.sh"]
|
1
docker_templates/nova/nova-consoleauth/config-external.sh
Symbolic link
1
docker_templates/nova/nova-consoleauth/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/nova/nova-consoleauth/config-external.sh
|
1
docker_templates/nova/nova-consoleauth/start.sh
Symbolic link
1
docker_templates/nova/nova-consoleauth/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/nova/nova-consoleauth/start.sh
|
22
docker_templates/nova/nova-libvirt/Dockerfile.j2
Normal file
22
docker_templates/nova/nova-libvirt/Dockerfile.j2
Normal file
@ -0,0 +1,22 @@
|
||||
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-nova-base:{{ tag }}
|
||||
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
||||
|
||||
{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
|
||||
|
||||
RUN yum -y install \
|
||||
libvirt-daemon \
|
||||
libguestfs \
|
||||
qemu-system-x86 \
|
||||
libvirt-daemon-driver-nwfilter \
|
||||
libvirt-daemon-config-nwfilter \
|
||||
libvirt-daemon-driver-lxc \
|
||||
&& yum clean all
|
||||
|
||||
{% endif %}
|
||||
|
||||
COPY start.sh /
|
||||
COPY config-external.sh /opt/kolla/
|
||||
|
||||
VOLUME [ "/sys/fs/cgroup" ]
|
||||
|
||||
CMD ["/start.sh"]
|
1
docker_templates/nova/nova-libvirt/config-external.sh
Symbolic link
1
docker_templates/nova/nova-libvirt/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/nova/nova-libvirt/config-external.sh
|
1
docker_templates/nova/nova-libvirt/start.sh
Symbolic link
1
docker_templates/nova/nova-libvirt/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/nova/nova-libvirt/start.sh
|
26
docker_templates/nova/nova-network/Dockerfile.j2
Normal file
26
docker_templates/nova/nova-network/Dockerfile.j2
Normal file
@ -0,0 +1,26 @@
|
||||
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-nova-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-nova-network \
|
||||
bridge-utils \
|
||||
initscripts \
|
||||
&& yum clean all
|
||||
|
||||
{% endif %}
|
||||
{% elif install_type == 'source' %}
|
||||
{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
|
||||
|
||||
RUN yum -y install initscripts \
|
||||
&& yum clean all
|
||||
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
COPY start.sh /
|
||||
COPY config-external.sh /opt/kolla/
|
||||
|
||||
CMD ["/start.sh"]
|
1
docker_templates/nova/nova-network/config-external.sh
Symbolic link
1
docker_templates/nova/nova-network/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/nova/nova-network/config-external.sh
|
1
docker_templates/nova/nova-network/start.sh
Symbolic link
1
docker_templates/nova/nova-network/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/nova/nova-network/start.sh
|
27
docker_templates/nova/nova-novncproxy/Dockerfile.j2
Normal file
27
docker_templates/nova/nova-novncproxy/Dockerfile.j2
Normal file
@ -0,0 +1,27 @@
|
||||
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-nova-base:{{ tag }}
|
||||
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
||||
|
||||
{% if install_type == 'binary' %}
|
||||
{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
|
||||
|
||||
RUN yum -y install \
|
||||
novnc \
|
||||
openstack-nova-novncproxy \
|
||||
&& yum clean all
|
||||
|
||||
{% endif %}
|
||||
{% elif install_type == 'source' %}
|
||||
{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
|
||||
|
||||
RUN yum -y install \
|
||||
https://rdoproject.org/repos/openstack-kilo/rdo-release-kilo.rpm \
|
||||
novnc \
|
||||
&& yum clean all
|
||||
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
COPY start.sh /
|
||||
COPY config-external.sh /opt/kolla/
|
||||
|
||||
CMD ["/start.sh"]
|
1
docker_templates/nova/nova-novncproxy/config-external.sh
Symbolic link
1
docker_templates/nova/nova-novncproxy/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/nova/nova-novncproxy/config-external.sh
|
1
docker_templates/nova/nova-novncproxy/start.sh
Symbolic link
1
docker_templates/nova/nova-novncproxy/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/nova/nova-novncproxy/start.sh
|
16
docker_templates/nova/nova-scheduler/Dockerfile.j2
Normal file
16
docker_templates/nova/nova-scheduler/Dockerfile.j2
Normal file
@ -0,0 +1,16 @@
|
||||
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-nova-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-nova-scheduler \
|
||||
&& yum clean all
|
||||
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
COPY start.sh /
|
||||
COPY config-external.sh /opt/kolla/
|
||||
|
||||
CMD ["/start.sh"]
|
1
docker_templates/nova/nova-scheduler/config-external.sh
Symbolic link
1
docker_templates/nova/nova-scheduler/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/nova/nova-scheduler/config-external.sh
|
1
docker_templates/nova/nova-scheduler/start.sh
Symbolic link
1
docker_templates/nova/nova-scheduler/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/nova/nova-scheduler/start.sh
|
Loading…
Reference in New Issue
Block a user