Enable Debian gate build and fix mirrors related issues
Also fixes related issue with distutils installation for Debian Stretch and Ubuntu Xenial with py3: unlike in Bionic, distutils is installed with python3 and python3-distutils package is not available in these distributions. Run Debian build with py3 against stable/train, as master requires at least python3.6, not available for distribution out of box. Also increases job timeout to 5400 due to increased amount of builds. Change-Id: I04c9253af80d941afb45231bee20f7bb1c4a96d4
This commit is contained in:
parent
0157128488
commit
3e5730cd53
@ -3,4 +3,4 @@
|
||||
pre-run: playbooks/setup-gate.yaml
|
||||
run: playbooks/loci-builder.yaml
|
||||
post-run: playbooks/post.yaml
|
||||
timeout: 3600
|
||||
timeout: 5400
|
||||
|
@ -12,7 +12,7 @@
|
||||
- job:
|
||||
name: loci-requirements
|
||||
parent: loci-base
|
||||
timeout: 2400
|
||||
timeout: 3600
|
||||
vars:
|
||||
project: requirements
|
||||
required-projects:
|
||||
|
@ -87,10 +87,10 @@ $ docker build https://opendev.org/openstack/loci.git \
|
||||
|
||||
For more advanced building you can use docker build arguments to define:
|
||||
* `FROM` The base Docker image to build from. Currently supported are
|
||||
`ubuntu:bionic`, `ubuntu:xenial`, `centos:7`, `opensuse/leap:15`, or
|
||||
a base image derived from one of those distributions. Dockerfiles to
|
||||
bootstrap the base images can be found in the `dockerfiles` directory,
|
||||
and are a good starting point for customizing a base image.
|
||||
`ubuntu:bionic`, `ubuntu:xenial`, `centos:7`, `opensuse/leap:15`,
|
||||
`debian:stretch`, or a base image derived from one of those distributions.
|
||||
Dockerfiles to bootstrap the base images can be found in the `dockerfiles`
|
||||
directory, and are a good starting point for customizing a base image.
|
||||
* `PROJECT` The name of the project to install.
|
||||
* `PROJECT_REPO` The git repo containing the OpenStack project the container
|
||||
should contain
|
||||
|
@ -2,7 +2,7 @@ ARG FROM=debian:stretch
|
||||
FROM ${FROM}
|
||||
|
||||
ARG DEBIAN_URL=http://deb.debian.org/debian/
|
||||
ARG DEBIAN_SECURITY_URL=http://security.debian.org/
|
||||
ARG DEBIAN_SECURITY_URL=http://security.debian.org/debian-security/
|
||||
ARG DEBIAN_SECURITY_DISTRIBUTION=stretch/updates
|
||||
ARG CEPH_URL=http://download.ceph.com/debian-nautilus/
|
||||
ARG ALLOW_UNAUTHENTICATED=false
|
||||
|
@ -101,24 +101,30 @@ distros:
|
||||
PROJECT_REPO: http://172.17.0.1/git/openstack/requirements
|
||||
FROM: base:leap15
|
||||
PYTHON3: yes
|
||||
# - name: debian
|
||||
# image: debian:stretch
|
||||
# buildargs:
|
||||
# base:
|
||||
# DEBIAN_URL: http://{{ zuul_site_mirror_fqdn }}/debian/
|
||||
# DEBIAN_SECURITY_URL: http://{{ zuul_site_mirror_fqdn }}/debian/
|
||||
# DEBIAN_SECURITY_DISTRIBUTION: stretch-security
|
||||
# CEPH_URL: http://{{ zuul_site_mirror_fqdn }}/ceph-deb-luminous/
|
||||
# ALLOW_UNAUTHENTICATED: "true"
|
||||
# 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 }}
|
||||
# PROJECT_REF: "{{ project_reference }}"
|
||||
# WHEELS: 172.17.0.1:5000/loci/requirements:master-debian
|
||||
# FROM: base:debian
|
||||
# requirements:
|
||||
# PROJECT: requirements
|
||||
# PROJECT_REPO: http://172.17.0.1/git/openstack/requirements
|
||||
# FROM: base:debian
|
||||
- name: debian
|
||||
image: debian:stretch
|
||||
release: train
|
||||
buildargs:
|
||||
base:
|
||||
DEBIAN_URL: http://{{ zuul_site_mirror_fqdn }}/debian/
|
||||
DEBIAN_SECURITY_URL: http://{{ zuul_site_mirror_fqdn }}/debian-security/
|
||||
DEBIAN_SECURITY_DISTRIBUTION: stretch/updates
|
||||
CEPH_URL: http://{{ zuul_site_mirror_fqdn }}/ceph-deb-nautilus/
|
||||
ALLOW_UNAUTHENTICATED: "true"
|
||||
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 }}
|
||||
PROJECT_REF: "stable/train"
|
||||
PROJECT_RELEASE: "train"
|
||||
WHEELS: 172.17.0.1:5000/loci/requirements:train-debian
|
||||
FROM: base:debian
|
||||
PYTHON3: yes
|
||||
requirements:
|
||||
PROJECT: requirements
|
||||
PROJECT_REPO: http://172.17.0.1/git/openstack/requirements
|
||||
PROJECT_REF: "stable/train"
|
||||
PROJECT_RELEASE: "train"
|
||||
FROM: base:debian
|
||||
PYTHON3: yes
|
||||
|
@ -11,7 +11,7 @@ if [[ "${PYTHON3}" == "no" ]]; then
|
||||
python3=""
|
||||
python_version=2
|
||||
else
|
||||
dpkg_python_packages=("python3" "python3-virtualenv" "python3-distutils")
|
||||
dpkg_python_packages=("python3" "python3-virtualenv")
|
||||
rpm_python_packages=("python3")
|
||||
python3="python3"
|
||||
python_version=3
|
||||
@ -21,6 +21,9 @@ case ${distro} in
|
||||
debian|ubuntu)
|
||||
export LC_CTYPE=C.UTF-8
|
||||
apt-get update
|
||||
if [[ ! -z "$(apt-cache search ^${python3}-distutils$)" ]]; then
|
||||
dpkg_python_packages+=("python3-distutils")
|
||||
fi
|
||||
apt-get upgrade -y
|
||||
apt-get install -y --no-install-recommends \
|
||||
git \
|
||||
|
Loading…
x
Reference in New Issue
Block a user