diff options
| author | Jenkins <jenkins@review.openstack.org> | 2015-09-28 09:42:43 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2015-09-28 09:42:43 +0000 |
| commit | 5b482b68c289948a747a21b6a1510990bf337990 (patch) | |
| tree | 62187c7b7c8e7a4efe44382cce3966abb383e94f /docker/base | |
| parent | 385658b77662a06ae7b0eb7320897be13065cbd0 (diff) | |
| parent | 39aba34b2a884887cab117ff233469051cc2ec22 (diff) | |
| download | kolla-5b482b68c289948a747a21b6a1510990bf337990.tar.gz kolla-5b482b68c289948a747a21b6a1510990bf337990.zip | |
Merge "Remove all fail sections for Ubuntu"
Diffstat (limited to 'docker/base')
| -rw-r--r-- | docker/base/Dockerfile.j2 | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/docker/base/Dockerfile.j2 b/docker/base/Dockerfile.j2 index a3dae428a..362387247 100644 --- a/docker/base/Dockerfile.j2 +++ b/docker/base/Dockerfile.j2 @@ -1,6 +1,29 @@ FROM {{ base_distro }}:{{ base_distro_tag }} MAINTAINER Kolla Project (https://launchpad.net/kolla) +# Early failure for bases and types +{% if base_distro in ['fedora', 'centos', 'oraclelinux', 'rhel'] %} + {% if install_type not in ['source', 'binary', 'rdo', 'rhel'] %} + +RUN echo 'ERROR: {{ install_type }} is unavailable for {{ base_distro }}' \ + && /bin/false + + {% endif %} +{% elif base_distro in ['ubuntu', 'debian'] %} + {% if install_type not in ['source'] %} + +RUN echo 'ERROR: {{ install_type }} is unavailable for {{ base_distro }}' \ + && /bin/false + + {% endif %} +{% else %} + +RUN echo 'ERROR: The specified distro has no Kolla images to build: "{{ base_distro }}"' \ + && /bin/false + +{% endif %} + + {{ include_header }} ENV KOLLA_BASE_DISTRO {{ base_distro }} |
