Use install-pip macro in most source images
1. Enable customization of pip packages in source branch of most images 2. All pip packages install uniformly through install-pip macro, user can easily customize his own pip command (For example using a mirror) Co-Authored-By: Mauricio Lima <mauriciolimab@gmail.com> Change-Id: If09582039f690fa4136e8f33200d5da15e092da7
This commit is contained in:
parent
dab3b8e8b9
commit
961224c6cf
@ -63,8 +63,13 @@ RUN mkdir -p /var/www/cgi-bin/aodh \
|
|||||||
|
|
||||||
ADD aodh-base-archive /aodh-base-source
|
ADD aodh-base-archive /aodh-base-source
|
||||||
|
|
||||||
|
{% set aodh_base_pip_packages = [
|
||||||
|
'pymongo',
|
||||||
|
'/aodh'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s aodh-base-source/* aodh \
|
RUN ln -s aodh-base-source/* aodh \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt pymongo /aodh \
|
&& {{ macros.install_pip(aodh_base_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& mkdir -p /etc/aodh /var/www/cgi-bin/aodh \
|
&& mkdir -p /etc/aodh /var/www/cgi-bin/aodh \
|
||||||
&& cp -r /aodh/etc/aodh/* /etc/aodh/ \
|
&& cp -r /aodh/etc/aodh/* /etc/aodh/ \
|
||||||
&& cp /aodh/aodh/api/app.wsgi /var/www/cgi-bin/aodh \
|
&& cp /aodh/aodh/api/app.wsgi /var/www/cgi-bin/aodh \
|
||||||
|
@ -25,9 +25,17 @@ MAINTAINER {{ maintainer }}
|
|||||||
|
|
||||||
{{ macros.install_packages(barbican_base_packages | customizable("packages")) }}
|
{{ macros.install_packages(barbican_base_packages | customizable("packages")) }}
|
||||||
|
|
||||||
|
{% set barbican_base_pip_packages = [
|
||||||
|
'pastedeploy',
|
||||||
|
'uwsgi',
|
||||||
|
'MySQL-python' ,
|
||||||
|
'python-barbicanclient' ,
|
||||||
|
'/barbican'
|
||||||
|
] %}
|
||||||
|
|
||||||
ADD barbican-base-archive /barbican-base-source
|
ADD barbican-base-archive /barbican-base-source
|
||||||
RUN ln -s barbican-base-source/* barbican \
|
RUN ln -s barbican-base-source/* barbican \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt pastedeploy uwsgi MySQL-python python-barbicanclient /barbican \
|
&& {{ macros.install_pip(barbican_base_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& mkdir -p /etc/barbican \
|
&& mkdir -p /etc/barbican \
|
||||||
&& cp -r /barbican/etc/barbican/* /etc/barbican/ \
|
&& cp -r /barbican/etc/barbican/* /etc/barbican/ \
|
||||||
&& chown -R barbican: /etc/barbican
|
&& chown -R barbican: /etc/barbican
|
||||||
|
@ -15,10 +15,14 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' && /bin/fa
|
|||||||
|
|
||||||
ENV VENV /var/lib/kolla/venv
|
ENV VENV /var/lib/kolla/venv
|
||||||
|
|
||||||
|
{% set bifrost_base_pip_packages = [
|
||||||
|
'/bifrost'
|
||||||
|
] %}
|
||||||
|
|
||||||
ADD bifrost-base-archive /bifrost-base-source
|
ADD bifrost-base-archive /bifrost-base-source
|
||||||
COPY build_arg.yml /tmp/build_arg.yml
|
COPY build_arg.yml /tmp/build_arg.yml
|
||||||
RUN ln -s bifrost-base-source/* bifrost \
|
RUN ln -s bifrost-base-source/* bifrost \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /bifrost
|
&& {{ macros.install_pip(bifrost_base_pip_packages | customizable("pip_packages")) }}
|
||||||
|
|
||||||
WORKDIR /bifrost
|
WORKDIR /bifrost
|
||||||
|
|
||||||
|
@ -27,9 +27,13 @@ MAINTAINER {{ maintainer }}
|
|||||||
|
|
||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
|
{% set ceilometer_base_pip_packages = [
|
||||||
|
'/ceilometer[gnocchi,mongo,mysql]'
|
||||||
|
] %}
|
||||||
|
|
||||||
ADD ceilometer-base-archive /ceilometer-base-source
|
ADD ceilometer-base-archive /ceilometer-base-source
|
||||||
RUN ln -s ceilometer-base-source/* ceilometer \
|
RUN ln -s ceilometer-base-source/* ceilometer \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /ceilometer[gnocchi,mongo,mysql] \
|
&& {{ macros.install_pip(ceilometer_base_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& mkdir -p /etc/ceilometer \
|
&& mkdir -p /etc/ceilometer \
|
||||||
&& cp -r /ceilometer/etc/ceilometer/* /etc/ceilometer/ \
|
&& cp -r /ceilometer/etc/ceilometer/* /etc/ceilometer/ \
|
||||||
&& chown -R ceilometer: /etc/ceilometer \
|
&& chown -R ceilometer: /etc/ceilometer \
|
||||||
|
@ -32,7 +32,12 @@ MAINTAINER {{ maintainer }}
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{{ macros.install_packages(ceilometer_compute_packages | customizable("packages")) }}
|
{{ macros.install_packages(ceilometer_compute_packages | customizable("packages")) }}
|
||||||
RUN /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt libvirt-python
|
|
||||||
|
{% set ceilometer_compute_pip_packages = [
|
||||||
|
'libvirt-python'
|
||||||
|
] %}
|
||||||
|
|
||||||
|
RUN {{ macros.install_pip(ceilometer_compute_pip_packages | customizable("pip_packages")) }}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@ -40,9 +40,13 @@ MAINTAINER {{ maintainer }}
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{{ macros.install_packages(cinder_base_packages | customizable("packages")) }}
|
{{ macros.install_packages(cinder_base_packages | customizable("packages")) }}
|
||||||
|
|
||||||
|
{% set cinder_base_pip_packages = [
|
||||||
|
'/cinder'
|
||||||
|
] %}
|
||||||
|
|
||||||
ADD cinder-base-archive /cinder-base-source
|
ADD cinder-base-archive /cinder-base-source
|
||||||
RUN ln -s cinder-base-source/* cinder \
|
RUN ln -s cinder-base-source/* cinder \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /cinder \
|
&& {{ macros.install_pip(cinder_base_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& mkdir -p /etc/cinder \
|
&& mkdir -p /etc/cinder \
|
||||||
&& cp -r /cinder/etc/cinder/* /etc/cinder/ \
|
&& cp -r /cinder/etc/cinder/* /etc/cinder/ \
|
||||||
&& chown -R cinder: /etc/cinder \
|
&& chown -R cinder: /etc/cinder \
|
||||||
|
@ -25,9 +25,13 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|||||||
|
|
||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
|
{% set cloudkitty_base_pip_packages = [
|
||||||
|
'/cloudkitty'
|
||||||
|
] %}
|
||||||
|
|
||||||
ADD cloudkitty-base-archive /cloudkitty-base-source
|
ADD cloudkitty-base-archive /cloudkitty-base-source
|
||||||
RUN ln -s cloudkitty-base-source/* cloudkitty \
|
RUN ln -s cloudkitty-base-source/* cloudkitty \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /cloudkitty \
|
&& {{ macros.install_pip(cloudkitty_base_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& mkdir -p /etc/cloudkitty \
|
&& mkdir -p /etc/cloudkitty \
|
||||||
&& cp -r /cloudkitty/etc/cloudkitty/* /etc/cloudkitty/ \
|
&& cp -r /cloudkitty/etc/cloudkitty/* /etc/cloudkitty/ \
|
||||||
&& chown -R cloudkitty: /etc/cloudkitty
|
&& chown -R cloudkitty: /etc/cloudkitty
|
||||||
|
@ -27,9 +27,13 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|||||||
|
|
||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
|
{% set congress_base_pip_packages = [
|
||||||
|
'/congress'
|
||||||
|
] %}
|
||||||
|
|
||||||
ADD congress-base-archive /congress-base-source
|
ADD congress-base-archive /congress-base-source
|
||||||
RUN ln -s congress-base-source/* congress \
|
RUN ln -s congress-base-source/* congress \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /congress \
|
&& {{ macros.install_pip(congress_base_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& mkdir -p /etc/congress \
|
&& mkdir -p /etc/congress \
|
||||||
&& cp -r /congress/etc/* /etc/congress/ \
|
&& cp -r /congress/etc/* /etc/congress/ \
|
||||||
&& chown -R congress: /etc/congress
|
&& chown -R congress: /etc/congress
|
||||||
|
@ -39,9 +39,13 @@ RUN cp /etc/designate/policy.json /tmp/ \
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
|
{% set designate_base_pip_packages = [
|
||||||
|
'/designate'
|
||||||
|
] %}
|
||||||
|
|
||||||
ADD designate-base-archive /designate-base-source
|
ADD designate-base-archive /designate-base-source
|
||||||
RUN ln -s designate-base-source/* designate \
|
RUN ln -s designate-base-source/* designate \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /designate \
|
&& {{ macros.install_pip(designate_base_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& mkdir -p /etc/designate \
|
&& mkdir -p /etc/designate \
|
||||||
&& cp -r /designate/etc/designate/* /etc/designate/ \
|
&& cp -r /designate/etc/designate/* /etc/designate/ \
|
||||||
&& mv /etc/designate/rootwrap.conf.sample /etc/designate/rootwrap.conf \
|
&& mv /etc/designate/rootwrap.conf.sample /etc/designate/rootwrap.conf \
|
||||||
|
@ -19,7 +19,12 @@ RUN /bin/true
|
|||||||
'openssh-server'
|
'openssh-server'
|
||||||
] %}
|
] %}
|
||||||
{{ macros.install_packages(dind_packages | customizable("packages")) }}
|
{{ macros.install_packages(dind_packages | customizable("packages")) }}
|
||||||
RUN pip --no-cache-dir install --upgrade docker-py
|
|
||||||
|
{% set dind_pip_packages = [
|
||||||
|
'docker-py'
|
||||||
|
] %}
|
||||||
|
|
||||||
|
RUN {{ macros.install_pip(dind_pip_packages | customizable("pip_packages"), constraints = false) }}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@ -33,8 +33,13 @@ RUN echo > /etc/apache2/ports.conf
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
ADD freezer-api-archive /freezer-api-source
|
ADD freezer-api-archive /freezer-api-source
|
||||||
|
|
||||||
|
{% set freezer_api_pip_packages = [
|
||||||
|
'/freezer-api'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s freezer-api-source/* freezer-api \
|
RUN ln -s freezer-api-source/* freezer-api \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /freezer-api \
|
&& {{ macros.install_pip(freezer_api_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& cp -r /freezer-api/etc/freezer/* /etc/freezer/
|
&& cp -r /freezer-api/etc/freezer/* /etc/freezer/
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -15,10 +15,15 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
ADD freezer-base-archive /freezer-base-source
|
ADD freezer-base-archive /freezer-base-source
|
||||||
|
|
||||||
|
{% set freezer_base_pip_packages = [
|
||||||
|
'/freezer'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s freezer-base-source/* freezer \
|
RUN ln -s freezer-base-source/* freezer \
|
||||||
&& mkdir -p /etc/freezer \
|
&& mkdir -p /etc/freezer \
|
||||||
&& chown -R freezer: /etc/freezer \
|
&& chown -R freezer: /etc/freezer \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /freezer \
|
&& {{ macros.install_pip(freezer_base_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& cp -r /freezer/etc/* /etc/freezer
|
&& cp -r /freezer/etc/* /etc/freezer
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -33,8 +33,13 @@ MAINTAINER {{ maintainer }}
|
|||||||
{{ macros.install_packages(glance_base_packages | customizable("packages")) }}
|
{{ macros.install_packages(glance_base_packages | customizable("packages")) }}
|
||||||
|
|
||||||
ADD glance-base-archive /glance-base-source
|
ADD glance-base-archive /glance-base-source
|
||||||
|
|
||||||
|
{% set glance_base_pip_packages = [
|
||||||
|
'/glance[cinder]'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s glance-base-source/* glance \
|
RUN ln -s glance-base-source/* glance \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /glance[cinder] \
|
&& {{ macros.install_pip(glance_base_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& mkdir -p /etc/glance \
|
&& mkdir -p /etc/glance \
|
||||||
&& cp -r /glance/etc/* /etc/glance/ \
|
&& cp -r /glance/etc/* /etc/glance/ \
|
||||||
&& chown -R glance: /etc/glance
|
&& chown -R glance: /etc/glance
|
||||||
|
@ -61,8 +61,13 @@ RUN truncate -s 0 /etc/apache2/ports.conf
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
ADD gnocchi-base-archive /gnocchi-base-source
|
ADD gnocchi-base-archive /gnocchi-base-source
|
||||||
|
|
||||||
|
{% set gnocchi_base_pip_packages = [
|
||||||
|
'gnocchiclient',
|
||||||
|
'/gnocchi[keystone,mysql,file,ceph]'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s gnocchi-base-source/* gnocchi \
|
RUN ln -s gnocchi-base-source/* gnocchi \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /gnocchi[keystone,mysql,file,ceph] \
|
&& {{ macros.install_pip(gnocchi_base_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& mkdir -p /etc/gnocchi \
|
&& mkdir -p /etc/gnocchi \
|
||||||
&& chown -R gnocchi: /etc/gnocchi
|
&& chown -R gnocchi: /etc/gnocchi
|
||||||
|
|
||||||
|
@ -19,8 +19,13 @@ MAINTAINER {{ maintainer }}
|
|||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
ADD heat-base-archive /heat-base-source
|
ADD heat-base-archive /heat-base-source
|
||||||
|
|
||||||
|
{% set heat_base_pip_packages = [
|
||||||
|
'/heat'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s heat-base-source/* heat \
|
RUN ln -s heat-base-source/* heat \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /heat \
|
&& {{ macros.install_pip(heat_base_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& mkdir -p /etc/heat \
|
&& mkdir -p /etc/heat \
|
||||||
&& cp -r /heat/etc/heat/* /etc/heat/ \
|
&& cp -r /heat/etc/heat/* /etc/heat/ \
|
||||||
&& chown -R heat: /etc/heat
|
&& chown -R heat: /etc/heat
|
||||||
|
@ -38,7 +38,11 @@ RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
|
|||||||
&& python get-pip.py \
|
&& python get-pip.py \
|
||||||
&& rm get-pip.py
|
&& rm get-pip.py
|
||||||
|
|
||||||
RUN pip install pyyaml
|
{% set helm_repository_pip_packages = [
|
||||||
|
'pyyaml'
|
||||||
|
] %}
|
||||||
|
|
||||||
|
RUN {{ macros.install_pip(helm_repository_pip_packages | customizable("pip_packages"), constraints = false) }}
|
||||||
|
|
||||||
RUN curl -Lo /tmp/helm-v${helm_version}-linux-amd64.tar.gz http://storage.googleapis.com/kubernetes-helm/helm-v${helm_version}-linux-amd64.tar.gz \
|
RUN curl -Lo /tmp/helm-v${helm_version}-linux-amd64.tar.gz http://storage.googleapis.com/kubernetes-helm/helm-v${helm_version}-linux-amd64.tar.gz \
|
||||||
&& sudo tar --strip-components 1 -C /usr/bin linux-amd64/helm -zxvf /tmp/helm-v${helm_version}-linux-amd64.tar.gz \
|
&& sudo tar --strip-components 1 -C /usr/bin linux-amd64/helm -zxvf /tmp/helm-v${helm_version}-linux-amd64.tar.gz \
|
||||||
|
@ -108,15 +108,24 @@ RUN echo > /etc/apache2/ports.conf \
|
|||||||
|
|
||||||
ADD horizon-archive /horizon-source
|
ADD horizon-archive /horizon-source
|
||||||
ADD plugins-archive /
|
ADD plugins-archive /
|
||||||
|
|
||||||
|
{% set horizon_pip_packages = [
|
||||||
|
'/horizon'
|
||||||
|
] %}
|
||||||
|
|
||||||
|
{% set horizon_plugins_pip_packages = [
|
||||||
|
'/plugins/*'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s horizon-source/* horizon \
|
RUN ln -s horizon-source/* horizon \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /horizon \
|
&& {{ macros.install_pip(horizon_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& mkdir -p /etc/openstack-dashboard \
|
&& mkdir -p /etc/openstack-dashboard \
|
||||||
&& ln -s /etc/openstack-dashboard/local_settings /var/lib/kolla/venv/lib/python2.7/site-packages/openstack_dashboard/local/local_settings.py \
|
&& ln -s /etc/openstack-dashboard/local_settings /var/lib/kolla/venv/lib/python2.7/site-packages/openstack_dashboard/local/local_settings.py \
|
||||||
&& cp -r /horizon/openstack_dashboard/conf/* /etc/openstack-dashboard/ \
|
&& cp -r /horizon/openstack_dashboard/conf/* /etc/openstack-dashboard/ \
|
||||||
&& cp /horizon/openstack_dashboard/local/local_settings.py.example /etc/openstack-dashboard/local_settings \
|
&& cp /horizon/openstack_dashboard/local/local_settings.py.example /etc/openstack-dashboard/local_settings \
|
||||||
&& cp /horizon/manage.py /var/lib/kolla/venv/bin/manage.py \
|
&& cp /horizon/manage.py /var/lib/kolla/venv/bin/manage.py \
|
||||||
&& if [ "$(ls /plugins)" ]; then \
|
&& if [ "$(ls /plugins)" ]; then \
|
||||||
pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /plugins/*; \
|
{{ macros.install_pip(horizon_plugins_pip_packages) }}; \
|
||||||
fi \
|
fi \
|
||||||
&& (cd /var/lib/kolla/venv/lib/python2.7/site-packages/horizon && /var/lib/kolla/venv/bin/python /var/lib/kolla/venv/bin/manage.py compilemessages) \
|
&& (cd /var/lib/kolla/venv/lib/python2.7/site-packages/horizon && /var/lib/kolla/venv/bin/python /var/lib/kolla/venv/bin/manage.py compilemessages) \
|
||||||
&& (cd /var/lib/kolla/venv/lib/python2.7/site-packages/openstack_dashboard && /var/lib/kolla/venv/bin/python /var/lib/kolla/venv/bin/manage.py compilemessages) \
|
&& (cd /var/lib/kolla/venv/lib/python2.7/site-packages/openstack_dashboard && /var/lib/kolla/venv/bin/python /var/lib/kolla/venv/bin/manage.py compilemessages) \
|
||||||
|
@ -19,8 +19,13 @@ MAINTAINER {{ maintainer }}
|
|||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
ADD ironic-base-archive /ironic-base-source
|
ADD ironic-base-archive /ironic-base-source
|
||||||
|
|
||||||
|
{% set ironic_base_pip_packages = [
|
||||||
|
'/ironic'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s ironic-base-source/* ironic \
|
RUN ln -s ironic-base-source/* ironic \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /ironic \
|
&& {{ macros.install_pip(ironic_base_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& mkdir -p /etc/ironic \
|
&& mkdir -p /etc/ironic \
|
||||||
&& cp -r /ironic/etc/ironic/* /etc/ironic/ \
|
&& cp -r /ironic/etc/ironic/* /etc/ironic/ \
|
||||||
&& chown -R ironic: /etc/ironic \
|
&& chown -R ironic: /etc/ironic \
|
||||||
|
@ -71,7 +71,12 @@ MAINTAINER {{ maintainer }}
|
|||||||
'parted'
|
'parted'
|
||||||
] %}
|
] %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
RUN /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt -r /ironic/driver-requirements.txt
|
|
||||||
|
{% set ironic_conductor_pip_packages = [
|
||||||
|
'-r /ironic/driver-requirements.txt'
|
||||||
|
] %}
|
||||||
|
|
||||||
|
RUN {{ macros.install_pip(ironic_conductor_pip_packages | customizable("pip_packages")) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{{ macros.install_packages(ironic_conductor_packages | customizable("packages")) }}
|
{{ macros.install_packages(ironic_conductor_packages | customizable("packages")) }}
|
||||||
|
@ -25,9 +25,14 @@ MAINTAINER {{ maintainer }}
|
|||||||
{{ macros.install_packages(ironic_inspector_packages | customizable("packages")) }}
|
{{ macros.install_packages(ironic_inspector_packages | customizable("packages")) }}
|
||||||
|
|
||||||
ADD ironic-inspector-archive /ironic-inspector-source
|
ADD ironic-inspector-archive /ironic-inspector-source
|
||||||
|
|
||||||
|
{% set ironic_inspector_pip_packages = [
|
||||||
|
'/ironic-inspector'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s ironic-inspector-source/* ironic-inspector \
|
RUN ln -s ironic-inspector-source/* ironic-inspector \
|
||||||
&& mv /etc/ironic /etc/ironic-inspector \
|
&& mv /etc/ironic /etc/ironic-inspector \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /ironic-inspector \
|
&& {{ macros.install_pip(ironic_inspector_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& cp /ironic-inspector/rootwrap.conf /etc/ironic-inspector/ \
|
&& cp /ironic-inspector/rootwrap.conf /etc/ironic-inspector/ \
|
||||||
&& cp -r /ironic-inspector/rootwrap.d/ /etc/ironic-inspector/ \
|
&& cp -r /ironic-inspector/rootwrap.d/ /etc/ironic-inspector/ \
|
||||||
&& sed -i 's|^exec_dirs.*|exec_dirs=/var/lib/kolla/venv/bin,/sbin,/usr/sbin,/bin,/usr/bin,/usr/local/bin,/usr/local/sbin|g' /etc/ironic-inspector/rootwrap.conf
|
&& sed -i 's|^exec_dirs.*|exec_dirs=/var/lib/kolla/venv/bin,/sbin,/usr/sbin,/bin,/usr/bin,/usr/local/bin,/usr/local/sbin|g' /etc/ironic-inspector/rootwrap.conf
|
||||||
|
@ -15,8 +15,13 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
ADD karbor-base-archive /karbor-base-source
|
ADD karbor-base-archive /karbor-base-source
|
||||||
|
|
||||||
|
{% set karbor_base_pip_packages = [
|
||||||
|
'/karbor'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s karbor-base-source/* karbor \
|
RUN ln -s karbor-base-source/* karbor \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /karbor \
|
&& {{ macros.install_pip(karbor_base_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& mkdir -p /etc/karbor \
|
&& mkdir -p /etc/karbor \
|
||||||
&& cp -r /karbor/etc/* /etc/karbor/ \
|
&& cp -r /karbor/etc/* /etc/karbor/ \
|
||||||
&& chown -R karbor: /etc/karbor
|
&& chown -R karbor: /etc/karbor
|
||||||
|
@ -62,8 +62,13 @@ RUN echo > /etc/apache2/ports.conf
|
|||||||
|
|
||||||
{% block keystone_source_install %}
|
{% block keystone_source_install %}
|
||||||
ADD keystone-base-archive /keystone-base-source
|
ADD keystone-base-archive /keystone-base-source
|
||||||
|
|
||||||
|
{% set keystone_base_pip_packages = [
|
||||||
|
'/keystone'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s keystone-base-source/* keystone \
|
RUN ln -s keystone-base-source/* keystone \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /keystone \
|
&& {{ macros.install_pip(keystone_base_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& mkdir -p /etc/keystone /var/www/cgi-bin/keystone \
|
&& mkdir -p /etc/keystone /var/www/cgi-bin/keystone \
|
||||||
&& cp -r /keystone/etc/* /etc/keystone/ \
|
&& cp -r /keystone/etc/* /etc/keystone/ \
|
||||||
&& cp /var/lib/kolla/venv/bin/keystone-wsgi-admin /var/www/cgi-bin/keystone/admin \
|
&& cp /var/lib/kolla/venv/bin/keystone-wsgi-admin /var/www/cgi-bin/keystone/admin \
|
||||||
|
@ -3,12 +3,19 @@ MAINTAINER {{ maintainer }}
|
|||||||
|
|
||||||
{% block keystone_header %}{% endblock %}
|
{% block keystone_header %}{% endblock %}
|
||||||
|
|
||||||
|
{% import "macros.j2" as macros with context %}
|
||||||
|
|
||||||
ADD plugins-archive /
|
ADD plugins-archive /
|
||||||
COPY keystone_bootstrap.sh /usr/local/bin/kolla_keystone_bootstrap
|
COPY keystone_bootstrap.sh /usr/local/bin/kolla_keystone_bootstrap
|
||||||
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
||||||
|
|
||||||
|
{% set keystone_plugins_pip_packages = [
|
||||||
|
'/plugins/*'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN chmod 755 /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_keystone_bootstrap \
|
RUN chmod 755 /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_keystone_bootstrap \
|
||||||
&& if [ "$(ls /plugins)" ]; then \
|
&& if [ "$(ls /plugins)" ]; then \
|
||||||
pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /plugins/*; \
|
{{ macros.install_pip(keystone_plugins_pip_packages | customizable("pip_packages")) }}; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
{% block keystone_footer %}{% endblock %}
|
{% block keystone_footer %}{% endblock %}
|
||||||
|
@ -56,13 +56,16 @@ RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
|
|||||||
&& rm get-pip.py
|
&& rm get-pip.py
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
RUN pip --no-cache-dir install \
|
{% set kolla_toolbox_pip_packages = [
|
||||||
pytz \
|
'pytz',
|
||||||
ansible==2.1.1.0 \
|
'ansible==2.1.1.0',
|
||||||
MySQL-python \
|
'MySQL-python',
|
||||||
os-client-config==1.16.0 \
|
'os-client-config==1.16.0',
|
||||||
pyudev \
|
'pyudev',
|
||||||
shade==1.5.0
|
'shade==1.5.0'
|
||||||
|
] %}
|
||||||
|
|
||||||
|
RUN {{ macros.install_pip(kolla_toolbox_pip_packages | customizable("pip_packages"), constraints = false) }}
|
||||||
|
|
||||||
RUN mkdir -p /etc/ansible /usr/share/ansible \
|
RUN mkdir -p /etc/ansible /usr/share/ansible \
|
||||||
&& echo 'localhost ansible_connection=local' > /etc/ansible/hosts \
|
&& echo 'localhost ansible_connection=local' > /etc/ansible/hosts \
|
||||||
|
@ -3,6 +3,8 @@ MAINTAINER {{ maintainer }}
|
|||||||
|
|
||||||
{% block kuryr_base_header %}{% endblock %}
|
{% block kuryr_base_header %}{% endblock %}
|
||||||
|
|
||||||
|
{% import "macros.j2" as macros with context %}
|
||||||
|
|
||||||
{% if install_type == 'binary' %}
|
{% if install_type == 'binary' %}
|
||||||
|
|
||||||
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
||||||
@ -11,11 +13,16 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
ADD kuryr-base-archive /kuryr-base-source
|
ADD kuryr-base-archive /kuryr-base-source
|
||||||
|
|
||||||
|
{% set kuryr_base_pip_packages = [
|
||||||
|
'/kuryr-base'
|
||||||
|
] %}
|
||||||
|
|
||||||
# NOTE(Jeffrey4l): remove kuryr-lib constraint in upper-constraints.txt file.
|
# NOTE(Jeffrey4l): remove kuryr-lib constraint in upper-constraints.txt file.
|
||||||
# Otherwise, it will be failed.
|
# Otherwise, it will be failed.
|
||||||
RUN ln -s kuryr-base-source/* kuryr-base \
|
RUN ln -s kuryr-base-source/* kuryr-base \
|
||||||
&& sed -i 's|^kuryr-lib===.*$||g' requirements/upper-constraints.txt \
|
&& sed -i 's|^kuryr-lib===.*$||g' requirements/upper-constraints.txt \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /kuryr-base
|
&& {{ macros.install_pip(kuryr_base_pip_packages | customizable("pip_packages")) }}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@ -3,6 +3,8 @@ MAINTAINER {{ maintainer }}
|
|||||||
|
|
||||||
{% block kuryr_libnetwork_header %}{% endblock %}
|
{% block kuryr_libnetwork_header %}{% endblock %}
|
||||||
|
|
||||||
|
{% import "macros.j2" as macros with context %}
|
||||||
|
|
||||||
{% if install_type == 'binary' %}
|
{% if install_type == 'binary' %}
|
||||||
|
|
||||||
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
||||||
@ -11,8 +13,13 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
ADD kuryr-libnetwork-archive /kuryr-libnetwork-source
|
ADD kuryr-libnetwork-archive /kuryr-libnetwork-source
|
||||||
|
|
||||||
|
{% set kuryr_libnetwork_pip_packages = [
|
||||||
|
'/kuryr-libnetwork'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s kuryr-libnetwork-source/* kuryr-libnetwork \
|
RUN ln -s kuryr-libnetwork-source/* kuryr-libnetwork \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /kuryr-libnetwork
|
&& {{ macros.install_pip(kuryr_libnetwork_pip_packages | customizable("pip_packages")) }}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@ -14,8 +14,14 @@
|
|||||||
{%- endmacro %}
|
{%- endmacro %}
|
||||||
|
|
||||||
|
|
||||||
{% macro install_pip(packages) %}
|
{% macro install_pip(packages, constraints = true) %}
|
||||||
RUN /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt {% for package in packages %}{{ package }} {% endfor %}
|
{%- if packages is sequence and packages|length > 0 -%}
|
||||||
|
pip --no-cache-dir install --upgrade{{ ' ' }}
|
||||||
|
{%- if constraints %}-c requirements/upper-constraints.txt {% endif -%}
|
||||||
|
{{ packages | join(' ') }}
|
||||||
|
{%- else -%}
|
||||||
|
true
|
||||||
|
{%- endif -%}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
|
|
||||||
|
@ -18,8 +18,13 @@ MAINTAINER {{ maintainer }}
|
|||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
ADD magnum-base-archive /magnum-base-source
|
ADD magnum-base-archive /magnum-base-source
|
||||||
|
|
||||||
|
{% set magnum_base_pip_packages = [
|
||||||
|
'/magnum[osprofiler]'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s magnum-base-source/* magnum \
|
RUN ln -s magnum-base-source/* magnum \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /magnum[osprofiler] \
|
&& {{ macros.install_pip(magnum_base_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& mkdir -p /etc/magnum \
|
&& mkdir -p /etc/magnum \
|
||||||
&& cp -r /magnum/etc/magnum/* /etc/magnum \
|
&& cp -r /magnum/etc/magnum/* /etc/magnum \
|
||||||
&& chown -R magnum: /etc/magnum
|
&& chown -R magnum: /etc/magnum
|
||||||
|
@ -40,8 +40,13 @@ MAINTAINER {{ maintainer }}
|
|||||||
{{ macros.install_packages(manila_base_packages | customizable("packages")) }}
|
{{ macros.install_packages(manila_base_packages | customizable("packages")) }}
|
||||||
|
|
||||||
ADD manila-base-archive /manila-base-source
|
ADD manila-base-archive /manila-base-source
|
||||||
|
|
||||||
|
{% set manila_base_pip_packages = [
|
||||||
|
'/manila'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s manila-base-source/* manila \
|
RUN ln -s manila-base-source/* manila \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /manila \
|
&& {{ macros.install_pip(manila_base_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& mkdir -p /etc/manila /var/cache/manila \
|
&& mkdir -p /etc/manila /var/cache/manila \
|
||||||
&& cp -r /manila/etc/manila/* /etc/manila/ \
|
&& cp -r /manila/etc/manila/* /etc/manila/ \
|
||||||
&& chown -R manila: /etc/manila /var/cache/manila \
|
&& chown -R manila: /etc/manila /var/cache/manila \
|
||||||
|
@ -19,8 +19,13 @@ MAINTAINER {{ maintainer }}
|
|||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
ADD mistral-base-archive /mistral-base-source
|
ADD mistral-base-archive /mistral-base-source
|
||||||
|
|
||||||
|
{% set mistral_base_pip_packages = [
|
||||||
|
'/mistral'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s mistral-base-source/* mistral \
|
RUN ln -s mistral-base-source/* mistral \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install /mistral \
|
&& {{ macros.install_pip(mistral_base_pip_packages | customizable("pip_packages"), constraints = false) }} \
|
||||||
&& mkdir -p /etc/mistral \
|
&& mkdir -p /etc/mistral \
|
||||||
&& cp -r /mistral/etc/* /etc/mistral/ \
|
&& cp -r /mistral/etc/* /etc/mistral/ \
|
||||||
&& chown -R mistral: /etc/mistral
|
&& chown -R mistral: /etc/mistral
|
||||||
|
@ -13,8 +13,13 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
ADD monasca-api-archive /monasca-api-source
|
ADD monasca-api-archive /monasca-api-source
|
||||||
|
|
||||||
|
{% set monasca_api_pip_packages = [
|
||||||
|
'/monasca-api'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s monasca-api-source/* monasca-api \
|
RUN ln -s monasca-api-source/* monasca-api \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /monasca-api
|
&& {{ macros.install_pip(monasca_api_pip_packages | customizable("pip_packages")) }}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|||||||
|
|
||||||
ADD monasca-log-api-archive /monasca-log-api-source
|
ADD monasca-log-api-archive /monasca-log-api-source
|
||||||
RUN ln -s monasca-log-api-source/* monasca-log \
|
RUN ln -s monasca-log-api-source/* monasca-log \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /monasca-log
|
&& {{ macros.install_pip(['/monasca-log'] | customizable("pip_packages")) }}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@ -13,8 +13,13 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
ADD monasca-notification-archive /monasca-notification-source
|
ADD monasca-notification-archive /monasca-notification-source
|
||||||
|
|
||||||
|
{% set monasca_notification_pip_packages = [
|
||||||
|
'/monasca-notification'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s monasca-notification-source/* monasca-notification \
|
RUN ln -s monasca-notification-source/* monasca-notification \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /monasca-notification
|
&& {{ macros.install_pip(monasca_notification_pip_packages | customizable("pip_packages")) }}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@ -13,8 +13,13 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
ADD monasca-persister-archive /monasca-persister-source
|
ADD monasca-persister-archive /monasca-persister-source
|
||||||
|
|
||||||
|
{% set monasca_persister_pip_packages = [
|
||||||
|
'/monasca-persister'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s monasca-persister-source/* monasca-persister \
|
RUN ln -s monasca-persister-source/* monasca-persister \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /monasca-persister
|
&& {{ macros.install_pip(monasca_persister_pip_packages | customizable("pip_packages")) }}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@ -13,10 +13,15 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
ADD monasca-statsd-archive /monasca-statsd-source
|
ADD monasca-statsd-archive /monasca-statsd-source
|
||||||
|
|
||||||
|
{% set monasca_statsd_pip_packages = [
|
||||||
|
'/monasca-statsd'
|
||||||
|
] %}
|
||||||
|
|
||||||
# NOTE(SamYaple): <=1.3.0 do not have any packages in requirements.txt and that
|
# NOTE(SamYaple): <=1.3.0 do not have any packages in requirements.txt and that
|
||||||
# breaks pip. So removing constraints file.
|
# breaks pip. So removing constraints file.
|
||||||
RUN ln -s monasca-statsd-source/* monasca-statsd \
|
RUN ln -s monasca-statsd-source/* monasca-statsd \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade /monasca-statsd
|
&& {{ macros.install_pip(monasca_statsd_pip_packages | customizable("pip_packages"), constraints = false) }}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@ -20,8 +20,13 @@ MAINTAINER {{ maintainer }}
|
|||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
ADD murano-base-archive /murano-base-source
|
ADD murano-base-archive /murano-base-source
|
||||||
|
|
||||||
|
{% set murano_base_pip_packages = [
|
||||||
|
'/murano'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s murano-base-source/* murano \
|
RUN ln -s murano-base-source/* murano \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /murano \
|
&& {{ macros.install_pip(murano_base_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& mkdir -p /etc/murano \
|
&& mkdir -p /etc/murano \
|
||||||
&& cp -r /murano/etc/murano/* /etc/murano/ \
|
&& cp -r /murano/etc/murano/* /etc/murano/ \
|
||||||
&& chown -R murano: /etc/murano \
|
&& chown -R murano: /etc/murano \
|
||||||
|
@ -82,8 +82,17 @@ RUN mkdir -p /usr/share/neutron \
|
|||||||
|
|
||||||
ADD neutron-base-archive /neutron-base-source
|
ADD neutron-base-archive /neutron-base-source
|
||||||
ADD plugins-archive /
|
ADD plugins-archive /
|
||||||
|
|
||||||
|
{% set neutron_base_pip_packages = [
|
||||||
|
'/neutron'
|
||||||
|
] %}
|
||||||
|
|
||||||
|
{% set neutron_base_plugins_pip_packages = [
|
||||||
|
'/plugins/*'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s neutron-base-source/* neutron \
|
RUN ln -s neutron-base-source/* neutron \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /neutron \
|
&& {{ macros.install_pip(neutron_base_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& mkdir -p /etc/neutron /usr/share/neutron \
|
&& mkdir -p /etc/neutron /usr/share/neutron \
|
||||||
&& cp -r /neutron/etc/* /etc/neutron/ \
|
&& cp -r /neutron/etc/* /etc/neutron/ \
|
||||||
&& cp -r /neutron/etc/neutron/* /etc/neutron/ \
|
&& cp -r /neutron/etc/neutron/* /etc/neutron/ \
|
||||||
@ -92,7 +101,7 @@ RUN ln -s neutron-base-source/* neutron \
|
|||||||
&& chown -R neutron: /etc/neutron /usr/share/neutron \
|
&& chown -R neutron: /etc/neutron /usr/share/neutron \
|
||||||
&& sed -i 's|^exec_dirs.*|exec_dirs=/var/lib/kolla/venv/bin,/sbin,/usr/sbin,/bin,/usr/bin,/usr/local/bin,/usr/local/sbin|g' /etc/neutron/rootwrap.conf \
|
&& sed -i 's|^exec_dirs.*|exec_dirs=/var/lib/kolla/venv/bin,/sbin,/usr/sbin,/bin,/usr/bin,/usr/local/bin,/usr/local/sbin|g' /etc/neutron/rootwrap.conf \
|
||||||
&& if [ "$(ls /plugins)" ]; then \
|
&& if [ "$(ls /plugins)" ]; then \
|
||||||
pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /plugins/*; \
|
{{ macros.install_pip(neutron_base_plugins_pip_packages) }}; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -33,8 +33,13 @@ MAINTAINER {{ maintainer }}
|
|||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
ADD neutron-lbaas-agent-archive /neutron-lbaas-agent-source
|
ADD neutron-lbaas-agent-archive /neutron-lbaas-agent-source
|
||||||
|
|
||||||
|
{% set neutron_lbaas_agent_pip_packages = [
|
||||||
|
'/neutron_lbaas'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s neutron-lbaas-agent-source/* neutron_lbaas \
|
RUN ln -s neutron-lbaas-agent-source/* neutron_lbaas \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /neutron_lbaas \
|
&& {{ macros.install_pip(neutron_lbaas_agent_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& cp /neutron_lbaas/etc/neutron/rootwrap.d/* /etc/neutron/rootwrap.d \
|
&& cp /neutron_lbaas/etc/neutron/rootwrap.d/* /etc/neutron/rootwrap.d \
|
||||||
&& sed -i 's|^exec_dirs.*|exec_dirs=/var/lib/kolla/venv/bin,/sbin,/usr/sbin,/bin,/usr/bin,/usr/local/bin,/usr/local/sbin|g' /etc/neutron/rootwrap.conf
|
&& sed -i 's|^exec_dirs.*|exec_dirs=/var/lib/kolla/venv/bin,/sbin,/usr/sbin,/bin,/usr/bin,/usr/local/bin,/usr/local/sbin|g' /etc/neutron/rootwrap.conf
|
||||||
|
|
||||||
|
@ -27,10 +27,15 @@ MAINTAINER {{ maintainer }}
|
|||||||
{{ macros.install_packages(neutron_server_packages | customizable("packages")) }}
|
{{ macros.install_packages(neutron_server_packages | customizable("packages")) }}
|
||||||
|
|
||||||
ADD plugins-archive /
|
ADD plugins-archive /
|
||||||
|
|
||||||
|
{% set neutron_server_plugins_pip_packages = [
|
||||||
|
'/plugins/*'
|
||||||
|
] %}
|
||||||
|
|
||||||
COPY extend_start.sh /usr/local/bin/kolla_neutron_extend_start
|
COPY extend_start.sh /usr/local/bin/kolla_neutron_extend_start
|
||||||
RUN chmod 755 /usr/local/bin/kolla_neutron_extend_start \
|
RUN chmod 755 /usr/local/bin/kolla_neutron_extend_start \
|
||||||
&& if [ "$(ls /plugins)" ]; then \
|
&& if [ "$(ls /plugins)" ]; then \
|
||||||
pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /plugins/*; \
|
{{ macros.install_pip(neutron_server_plugins_pip_packages | customizable("pip_packages")) }}; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
{% block neutron_server_footer %}{% endblock %}
|
{% block neutron_server_footer %}{% endblock %}
|
||||||
|
@ -3,6 +3,8 @@ MAINTAINER {{ maintainer }}
|
|||||||
|
|
||||||
{% block neutron_networking_sfc_agent_header %}{% endblock %}
|
{% block neutron_networking_sfc_agent_header %}{% endblock %}
|
||||||
|
|
||||||
|
{% import "macros.j2" as macros with context %}
|
||||||
|
|
||||||
{% if install_type == 'binary' %}
|
{% if install_type == 'binary' %}
|
||||||
|
|
||||||
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
||||||
@ -11,8 +13,13 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
ADD neutron-sfc-agent-archive /neutron-sfc-agent-source
|
ADD neutron-sfc-agent-archive /neutron-sfc-agent-source
|
||||||
|
|
||||||
|
{% set neutron_sfc_agent_pip_packages = [
|
||||||
|
'/neutron-sfc-agent'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s neutron-sfc-agent-source/* neutron-sfc-agent \
|
RUN ln -s neutron-sfc-agent-source/* neutron-sfc-agent \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /neutron-sfc-agent
|
&& {{ macros.install_pip(neutron_sfc_agent_pip_packages | customizable("pip_packages")) }}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@ -35,8 +35,13 @@ MAINTAINER {{ maintainer }}
|
|||||||
{{ macros.install_packages(neutron_vpnaas_agent_packages | customizable("packages")) }}
|
{{ macros.install_packages(neutron_vpnaas_agent_packages | customizable("packages")) }}
|
||||||
|
|
||||||
ADD neutron-vpnaas-agent-archive /neutron-vpnaas-agent-source
|
ADD neutron-vpnaas-agent-archive /neutron-vpnaas-agent-source
|
||||||
|
|
||||||
|
{% set neutron_vpnaas_agent_pip_packages = [
|
||||||
|
'/neutron_vpnaas'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s neutron-vpnaas-agent-source/* neutron_vpnaas \
|
RUN ln -s neutron-vpnaas-agent-source/* neutron_vpnaas \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /neutron_vpnaas \
|
&& {{ macros.install_pip(neutron_vpnaas_agent_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& cp /neutron_vpnaas/etc/neutron/rootwrap.d/* /etc/neutron/rootwrap.d
|
&& cp /neutron_vpnaas/etc/neutron/rootwrap.d/* /etc/neutron/rootwrap.d
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -57,8 +57,13 @@ MAINTAINER {{ maintainer }}
|
|||||||
{{ macros.install_packages(nova_base_packages | customizable("packages")) }}
|
{{ macros.install_packages(nova_base_packages | customizable("packages")) }}
|
||||||
|
|
||||||
ADD nova-base-archive /nova-base-source
|
ADD nova-base-archive /nova-base-source
|
||||||
|
|
||||||
|
{% set nova_base_pip_packages = [
|
||||||
|
'/nova'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s nova-base-source/* nova \
|
RUN ln -s nova-base-source/* nova \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /nova \
|
&& {{ macros.install_pip(nova_base_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& mkdir -p /etc/nova/ \
|
&& mkdir -p /etc/nova/ \
|
||||||
&& cp -r /nova/etc/nova/* /etc/nova/ \
|
&& cp -r /nova/etc/nova/* /etc/nova/ \
|
||||||
&& chown -R nova: /etc/nova/ \
|
&& chown -R nova: /etc/nova/ \
|
||||||
|
@ -84,7 +84,7 @@ RUN mkdir -p /etc/ceph
|
|||||||
]
|
]
|
||||||
%}
|
%}
|
||||||
|
|
||||||
{{ macros.install_pip(nova_compute_pip_packages | customizable("pip_packages")) }}
|
RUN {{ macros.install_pip(nova_compute_pip_packages | customizable("pip_packages")) }}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@ -21,8 +21,13 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|||||||
|
|
||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
ADD octavia-base-archive /octavia-base-source
|
ADD octavia-base-archive /octavia-base-source
|
||||||
|
|
||||||
|
{% set octavia_base_pip_packages = [
|
||||||
|
'/octavia'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s /octavia-base-source/* octavia \
|
RUN ln -s /octavia-base-source/* octavia \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /octavia \
|
&& {{ macros.install_pip(octavia_base_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& mkdir -p /etc/octavia \
|
&& mkdir -p /etc/octavia \
|
||||||
&& cp -r /octavia/etc/* /etc/octavia/ \
|
&& cp -r /octavia/etc/* /etc/octavia/ \
|
||||||
&& chown -R octavia: /etc/octavia
|
&& chown -R octavia: /etc/octavia
|
||||||
|
@ -350,11 +350,13 @@ RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
|
|||||||
ADD openstack-base-archive /openstack-base-source
|
ADD openstack-base-archive /openstack-base-source
|
||||||
RUN ln -s openstack-base-source/* /requirements \
|
RUN ln -s openstack-base-source/* /requirements \
|
||||||
&& mkdir -p /var/lib/kolla \
|
&& mkdir -p /var/lib/kolla \
|
||||||
&& pip --no-cache-dir install -U virtualenv \
|
&& {{ macros.install_pip(['virtualenv'], constraints = false)}} \
|
||||||
&& virtualenv --system-site-packages /var/lib/kolla/venv
|
&& virtualenv --system-site-packages /var/lib/kolla/venv
|
||||||
{{ macros.install_pip(openstack_base_pip_packages | customizable("pip_packages")) }}
|
|
||||||
ENV PATH /var/lib/kolla/venv/bin:$PATH
|
ENV PATH /var/lib/kolla/venv/bin:$PATH
|
||||||
|
|
||||||
|
RUN {{ macros.install_pip(openstack_base_pip_packages | customizable("pip_packages")) }}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% block openstack_base_footer %}{% endblock %}
|
{% block openstack_base_footer %}{% endblock %}
|
||||||
|
@ -50,8 +50,12 @@ RUN truncate -s 0 /etc/apache2/ports.conf
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
ADD panko-base-archive /panko-base-source
|
ADD panko-base-archive /panko-base-source
|
||||||
|
|
||||||
|
{% set panko_base_pip_packages = [
|
||||||
|
'/panko'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s panko-base-source/* panko \
|
RUN ln -s panko-base-source/* panko \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /panko \
|
&& {{ macros.install_pip(panko_base_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& mkdir -p /etc/panko \
|
&& mkdir -p /etc/panko \
|
||||||
&& cp -r /panko/etc/panko/* /etc/panko/ \
|
&& cp -r /panko/etc/panko/* /etc/panko/ \
|
||||||
&& chown -R panko: /etc/panko
|
&& chown -R panko: /etc/panko
|
||||||
|
@ -18,11 +18,15 @@ MAINTAINER {{ maintainer }}
|
|||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
ADD rally-archive /rally-source
|
ADD rally-archive /rally-source
|
||||||
|
|
||||||
|
{% set rally_pip_packages = [
|
||||||
|
'/rally'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s rally-source/* rally \
|
RUN ln -s rally-source/* rally \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /rally \
|
&& {{ macros.install_pip(rally_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& mkdir -p /etc/rally \
|
&& mkdir -p /etc/rally \
|
||||||
&& chown -R rally: /etc/rally
|
&& chown -R rally: /etc/rally
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
||||||
|
@ -19,8 +19,13 @@ MAINTAINER {{ maintainer }}
|
|||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
ADD sahara-base-archive /sahara-base-source
|
ADD sahara-base-archive /sahara-base-source
|
||||||
|
|
||||||
|
{% set sahara_base_pip_packages = [
|
||||||
|
'/sahara'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s sahara-base-source/* sahara \
|
RUN ln -s sahara-base-source/* sahara \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /sahara \
|
&& {{ macros.install_pip(sahara_base_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& mkdir -p /etc/sahara \
|
&& mkdir -p /etc/sahara \
|
||||||
&& cp -r /sahara/etc/sahara/* /etc/sahara/ \
|
&& cp -r /sahara/etc/sahara/* /etc/sahara/ \
|
||||||
&& chown -R sahara: /etc/sahara \
|
&& chown -R sahara: /etc/sahara \
|
||||||
|
@ -15,8 +15,13 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
ADD searchlight-base-archive /searchlight-base-source
|
ADD searchlight-base-archive /searchlight-base-source
|
||||||
|
|
||||||
|
{% set searchlight_base_pip_packages = [
|
||||||
|
'/searchlight'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s searchlight-base-source/* searchlight \
|
RUN ln -s searchlight-base-source/* searchlight \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /searchlight \
|
&& {{ macros.install_pip(searchlight_base_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& mkdir -p /etc/searchlight \
|
&& mkdir -p /etc/searchlight \
|
||||||
&& cp -r /searchlight/etc/* /etc/searchlight \
|
&& cp -r /searchlight/etc/* /etc/searchlight \
|
||||||
&& chown -R searchlight: /etc/searchlight
|
&& chown -R searchlight: /etc/searchlight
|
||||||
|
@ -15,8 +15,13 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
ADD senlin-base-archive /senlin-base-source
|
ADD senlin-base-archive /senlin-base-source
|
||||||
|
|
||||||
|
{% set senlin_base_pip_packages = [
|
||||||
|
'/senlin'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s senlin-base-source/* senlin \
|
RUN ln -s senlin-base-source/* senlin \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /senlin \
|
&& {{ macros.install_pip(senlin_base_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& mkdir -p /etc/senlin \
|
&& mkdir -p /etc/senlin \
|
||||||
&& cp -r /senlin/etc/senlin/* /etc/senlin \
|
&& cp -r /senlin/etc/senlin/* /etc/senlin \
|
||||||
&& chown -R senlin: /etc/senlin
|
&& chown -R senlin: /etc/senlin
|
||||||
|
@ -15,8 +15,13 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
ADD solum-base-archive /solum-base-source
|
ADD solum-base-archive /solum-base-source
|
||||||
|
|
||||||
|
{% set solum_base_pip_packages = [
|
||||||
|
'/solum'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s solum-base-source/* solum \
|
RUN ln -s solum-base-source/* solum \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /solum \
|
&& {{ macros.install_pip(solum_base_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& mkdir -p /etc/solum \
|
&& mkdir -p /etc/solum \
|
||||||
&& cp -r /solum/etc/solum/* /etc/solum/ \
|
&& cp -r /solum/etc/solum/* /etc/solum/ \
|
||||||
&& chown -R solum: /etc/solum
|
&& chown -R solum: /etc/solum
|
||||||
|
@ -31,8 +31,13 @@ MAINTAINER {{ maintainer }}
|
|||||||
{{ macros.install_packages(swift_base_packages | customizable("packages")) }}
|
{{ macros.install_packages(swift_base_packages | customizable("packages")) }}
|
||||||
|
|
||||||
ADD swift-base-archive /swift-base-source
|
ADD swift-base-archive /swift-base-source
|
||||||
|
|
||||||
|
{% set swift_base_pip_packages = [
|
||||||
|
'/swift'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s swift-base-source/* swift \
|
RUN ln -s swift-base-source/* swift \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /swift \
|
&& {{ macros.install_pip(swift_base_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& mkdir -p /etc/swift /var/cache/swift \
|
&& mkdir -p /etc/swift /var/cache/swift \
|
||||||
&& cp -r /swift/etc/* /etc/swift/ \
|
&& cp -r /swift/etc/* /etc/swift/ \
|
||||||
&& chown -R swift: /etc/swift /var/cache/swift
|
&& chown -R swift: /etc/swift /var/cache/swift
|
||||||
|
@ -15,8 +15,13 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
ADD tacker-archive /tacker-source
|
ADD tacker-archive /tacker-source
|
||||||
|
|
||||||
|
{% set tacker_pip_packages = [
|
||||||
|
'/tacker'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s tacker-source/* tacker \
|
RUN ln -s tacker-source/* tacker \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /tacker \
|
&& {{ macros.install_pip(tacker_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& mkdir -p /etc/tacker \
|
&& mkdir -p /etc/tacker \
|
||||||
&& cp -r /tacker/etc/tacker/* /etc/tacker \
|
&& cp -r /tacker/etc/tacker/* /etc/tacker \
|
||||||
&& chown -R tacker: /etc/tacker
|
&& chown -R tacker: /etc/tacker
|
||||||
|
@ -23,11 +23,16 @@ RUN ln -sf /var/lib/tempest /tempest
|
|||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
ADD tempest-archive /tempest-source
|
ADD tempest-archive /tempest-source
|
||||||
|
|
||||||
|
{% set tempest_pip_packages = [
|
||||||
|
'/tempest'
|
||||||
|
] %}
|
||||||
|
|
||||||
# NOTE(Jeffrey4l): remove the tempest version constraint in the
|
# NOTE(Jeffrey4l): remove the tempest version constraint in the
|
||||||
# upper-constrains.txt file. Otherwise, it will be failed.
|
# upper-constrains.txt file. Otherwise, it will be failed.
|
||||||
RUN ln -s tempest-source/* tempest \
|
RUN ln -s tempest-source/* tempest \
|
||||||
&& sed -i 's/^tempest===.*$//' requirements/upper-constraints.txt \
|
&& sed -i 's/^tempest===.*$//' requirements/upper-constraints.txt \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /tempest \
|
&& {{ macros.install_pip(tempest_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& mkdir -p /etc/tempest /var/log/tempest /etc/tempest/tempest_lock
|
&& mkdir -p /etc/tempest /var/log/tempest /etc/tempest/tempest_lock
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -21,8 +21,13 @@ MAINTAINER {{ maintainer }}
|
|||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
ADD trove-base-archive /trove-base-source
|
ADD trove-base-archive /trove-base-source
|
||||||
|
|
||||||
|
{% set trove_base_pip_packages = [
|
||||||
|
'/trove'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s trove-base-source/* trove \
|
RUN ln -s trove-base-source/* trove \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /trove \
|
&& {{ macros.install_pip(trove_base_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& mkdir -p /etc/trove \
|
&& mkdir -p /etc/trove \
|
||||||
&& cp -r /trove/etc/trove/* /etc/trove/ \
|
&& cp -r /trove/etc/trove/* /etc/trove/ \
|
||||||
&& chown -R trove: /etc/trove
|
&& chown -R trove: /etc/trove
|
||||||
|
@ -14,9 +14,13 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|||||||
|
|
||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
|
{% set vitrage_base_pip_packages = [
|
||||||
|
'/vitrage'
|
||||||
|
] %}
|
||||||
|
|
||||||
ADD vitrage-base-archive /vitrage-base-source
|
ADD vitrage-base-archive /vitrage-base-source
|
||||||
RUN ln -s vitrage-base-source/* vitrage \
|
RUN ln -s vitrage-base-source/* vitrage \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /vitrage \
|
&& {{ macros.install_pip(vitrage_base_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& mkdir -p /etc/vitrage \
|
&& mkdir -p /etc/vitrage \
|
||||||
&& cp -r /vitrage/etc/vitrage/* /etc/vitrage/ \
|
&& cp -r /vitrage/etc/vitrage/* /etc/vitrage/ \
|
||||||
&& chown -R vitrage: /etc/vitrage
|
&& chown -R vitrage: /etc/vitrage
|
||||||
|
@ -14,7 +14,11 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|||||||
|
|
||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
RUN pip install vmtp
|
{% set vmtp_pip_packages = [
|
||||||
|
'vmtp'
|
||||||
|
] %}
|
||||||
|
|
||||||
|
RUN {{ macros.install_pip(vmtp_pip_packages | customizable("pip_packages"), constraints = false) }}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@ -18,8 +18,13 @@ MAINTAINER {{ maintainer }}
|
|||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
ADD watcher-base-archive /watcher-base-source
|
ADD watcher-base-archive /watcher-base-source
|
||||||
|
|
||||||
|
{% set watcher_base_pip_packages = [
|
||||||
|
'/watcher'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s watcher-base-source/* watcher \
|
RUN ln -s watcher-base-source/* watcher \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /watcher \
|
&& {{ macros.install_pip(watcher_base_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& mkdir -p /etc/watcher \
|
&& mkdir -p /etc/watcher \
|
||||||
&& cp -r /watcher/etc/watcher/* /etc/watcher/ \
|
&& cp -r /watcher/etc/watcher/* /etc/watcher/ \
|
||||||
&& chown -R watcher: /etc/watcher
|
&& chown -R watcher: /etc/watcher
|
||||||
|
@ -21,8 +21,14 @@ MAINTAINER {{ maintainer }}
|
|||||||
|
|
||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
ADD zaqar-archive /zaqar-source
|
ADD zaqar-archive /zaqar-source
|
||||||
|
|
||||||
|
{% set zaqar_pip_packages = [
|
||||||
|
'pymongo',
|
||||||
|
'/zaqar'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s zaqar-source/* zaqar \
|
RUN ln -s zaqar-source/* zaqar \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt pymongo /zaqar \
|
&& {{ macros.install_pip(zaqar_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& mkdir -p /etc/zaqar \
|
&& mkdir -p /etc/zaqar \
|
||||||
&& cp -r /zaqar/etc/* /etc/zaqar/ \
|
&& cp -r /zaqar/etc/* /etc/zaqar/ \
|
||||||
&& mv /etc/zaqar/policy.json.sample /etc/zaqar/policy.json \
|
&& mv /etc/zaqar/policy.json.sample /etc/zaqar/policy.json \
|
||||||
|
@ -3,6 +3,8 @@ MAINTAINER {{ maintainer }}
|
|||||||
|
|
||||||
{% block zun_base_header %}{% endblock %}
|
{% block zun_base_header %}{% endblock %}
|
||||||
|
|
||||||
|
{% import "macros.j2" as macros with context %}
|
||||||
|
|
||||||
{% if install_type == 'binary' %}
|
{% if install_type == 'binary' %}
|
||||||
|
|
||||||
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
||||||
@ -11,9 +13,14 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
ADD zun-base-archive /zun-base-source
|
ADD zun-base-archive /zun-base-source
|
||||||
|
|
||||||
|
{% set zun_base_pip_packages = [
|
||||||
|
'/zun'
|
||||||
|
] %}
|
||||||
|
|
||||||
RUN ln -s zun-base-source/* zun \
|
RUN ln -s zun-base-source/* zun \
|
||||||
&& useradd --user-group --create-home --home-dir /var/lib/zun zun \
|
&& useradd --user-group --create-home --home-dir /var/lib/zun zun \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /zun \
|
&& {{ macros.install_pip(zun_base_pip_packages | customizable("pip_packages")) }} \
|
||||||
&& mkdir -p /etc/zun \
|
&& mkdir -p /etc/zun \
|
||||||
&& cp -r /zun/etc/* /etc/zun/ \
|
&& cp -r /zun/etc/* /etc/zun/ \
|
||||||
&& chown -R zun: /etc/zun
|
&& chown -R zun: /etc/zun
|
||||||
|
Loading…
Reference in New Issue
Block a user