2015-10-23 15:06:01 +00:00
|
|
|
FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
|
2017-05-02 07:23:09 +00:00
|
|
|
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
|
2015-10-23 15:06:01 +00:00
|
|
|
|
2016-09-07 17:15:01 +00:00
|
|
|
{% block tempest_header %}{% endblock %}
|
|
|
|
|
2016-08-11 21:01:29 +00:00
|
|
|
{% import "macros.j2" as macros with context %}
|
|
|
|
|
2015-10-23 15:06:01 +00:00
|
|
|
{% if install_type == 'binary' %}
|
2016-11-03 09:37:21 +00:00
|
|
|
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
|
2016-08-11 21:01:29 +00:00
|
|
|
{% set tempest_packages = ['openstack-tempest'] %}
|
2016-11-24 18:12:11 +00:00
|
|
|
|
|
|
|
{{ macros.install_packages(tempest_packages | customizable("packages")) }}
|
|
|
|
RUN ln -sf /usr/share/openstack-tempest-* /tempest
|
|
|
|
|
2017-02-12 17:36:51 +00:00
|
|
|
{% elif base_distro in ['debian', 'ubuntu'] %}
|
2016-08-11 21:01:29 +00:00
|
|
|
{% set tempest_packages = ['tempest'] %}
|
2016-02-08 06:12:02 +00:00
|
|
|
|
2016-08-11 22:24:11 +00:00
|
|
|
{{ macros.install_packages(tempest_packages | customizable("packages")) }}
|
2016-11-24 18:12:11 +00:00
|
|
|
RUN ln -sf /var/lib/tempest /tempest
|
|
|
|
|
|
|
|
{% endif %}
|
2016-02-08 06:12:02 +00:00
|
|
|
|
2015-10-23 15:06:01 +00:00
|
|
|
{% elif install_type == 'source' %}
|
|
|
|
|
|
|
|
ADD tempest-archive /tempest-source
|
2017-01-17 08:49:13 +00:00
|
|
|
|
|
|
|
{% set tempest_pip_packages = [
|
2017-04-24 03:17:38 +00:00
|
|
|
'/tempest',
|
|
|
|
'nose'
|
2017-01-17 08:49:13 +00:00
|
|
|
] %}
|
|
|
|
|
2016-04-02 13:23:34 +00:00
|
|
|
# NOTE(Jeffrey4l): remove the tempest version constraint in the
|
|
|
|
# upper-constrains.txt file. Otherwise, it will be failed.
|
2015-10-23 15:06:01 +00:00
|
|
|
RUN ln -s tempest-source/* tempest \
|
2016-04-02 13:23:34 +00:00
|
|
|
&& sed -i 's/^tempest===.*$//' requirements/upper-constraints.txt \
|
2017-01-17 08:49:13 +00:00
|
|
|
&& {{ macros.install_pip(tempest_pip_packages | customizable("pip_packages")) }} \
|
2015-10-23 15:06:01 +00:00
|
|
|
&& mkdir -p /etc/tempest /var/log/tempest /etc/tempest/tempest_lock
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
2016-11-24 18:12:11 +00:00
|
|
|
WORKDIR /tempest
|
|
|
|
|
2016-05-26 12:58:03 +00:00
|
|
|
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
|
|
|
RUN chmod 755 /usr/local/bin/kolla_extend_start
|
|
|
|
|
2016-08-11 21:01:29 +00:00
|
|
|
{% block tempest_footer %}{% endblock %}
|
|
|
|
{% block footer %}{% endblock %}
|