Build OpenSUSE Leap 15 by default

This includes the building of OpenSUSE Leap 15 in checks/gates.

As the build of each project requires the building of the
requirements first, added to the fact that a new distro is added
into the jobs, this extends the timeout for the base job beyond
the maximum time for requirements, so that all the projects
(excluding requirements) have more time to complete.

Change-Id: I73b055b3942a6d80b8474544a9d65df0b3005e15
This commit is contained in:
Jean-Philippe Evrard 2018-10-17 14:34:25 +02:00
parent a4892664c8
commit f78e45c304
3 changed files with 26 additions and 1 deletions

View File

@ -3,4 +3,4 @@
pre-run: playbooks/setup-gate.yaml
run: playbooks/loci-builder.yaml
post-run: playbooks/post.yaml
timeout: 1200
timeout: 3600

View File

@ -0,0 +1,10 @@
ARG FROM=opensuse/leap:15
FROM ${FROM}
ARG PACKAGE_MIRROR=http://download.opensuse.org/
ARG PIP_INDEX_URL=https://pypi.python.org/simple/
ARG PIP_TRUSTED_HOST=pypi.python.org
ENV PIP_INDEX_URL=${PIP_INDEX_URL}
ENV PIP_TRUSTED_HOST=${PIP_TRUSTED_HOST}
RUN for filename in $(grep -Rl enabled=1 /etc/zypp/repos.d/); do sed -i "s|http://download.opensuse.org/|${PACKAGE_MIRROR}|" $filename; done && zypper refresh && zypper up -y && zypper install -y tar gzip which unzip

View File

@ -51,6 +51,21 @@ distros:
PROJECT: requirements
PROJECT_REPO: http://172.17.0.1/git/openstack/requirements
FROM: base:ubuntu
- name: leap15
buildargs:
base:
PACKAGE_MIRROR: "http://{{ zuul_site_mirror_fqdn }}/opensuse/"
PIP_INDEX_URL: http://{{ zuul_site_mirror_fqdn }}/pypi/simple
PIP_TRUSTED_HOST: "{{ zuul_site_mirror_fqdn }}"
project:
PROJECT: "{{ project }}"
PROJECT_REPO: http://172.17.0.1/git/openstack/{{ project }}
WHEELS: 172.17.0.1:5000/loci/requirements:{{ branch }}-leap15
FROM: base:leap15
requirements:
PROJECT: requirements
PROJECT_REPO: http://172.17.0.1/git/openstack/requirements
FROM: base:leap15
# - name: debian
# image: debian:stretch
# buildargs: