8468a18ae3
This patch adds image building process for OSH. Each root folder contains a 'kind' of images to build. Each folder will have its own parent job, inheriting from a 'openstack-helm-images-base' job. The folder 'parent job' is used for building distribution variants (centos_7, ubuntu_xenial, opensuse_15). Folders containing Dockerfiles (a different Dockerfiles per distribution) will use the docker building play (docker-build.yml). Dockerfiles come from openstack-helm-infra repository, with the following changes: * The deprecated "MAINTAINER" directive has been replaced with LABEL maintainer=<maintaineremail> * If Dockerfiles' default arguments were mismatching the documentation or Makefiles, they were adapted (see libvirt). * Relative paths to the openstack-helm-infra repo have been removed. Each folder is given a convenience build script (build.sh) which can be used to build a specific image manually. This script's content gets included in the documentation to avoid duplications of content. This patch focuses on each image separately. Another patch will be added to deal with a repo-wide image building process, whether for CI purposes, or for developer's purposes, with the help of a Makefile. Note: Kubeadm-aio image was not imported in this process due to circular dependencies: Image building currently requires the helm charts of openstack-helm-infra. Change-Id: I2d01e3f2c34d6dd7db4a1c3897dc4b994bf02623
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
---
|
|
# Copyright 2018, SUSE LINUX GmbH.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
- project:
|
|
check:
|
|
jobs:
|
|
- openstack-helm-images-mariadb-ubuntu_xenial
|
|
gate:
|
|
jobs:
|
|
- openstack-helm-images-mariadb-ubuntu_xenial
|
|
#experimental:
|
|
# jobs:
|
|
# - openstack-helm-infra-five-ubuntu
|
|
|
|
- job:
|
|
name: openstack-helm-images-mariadb
|
|
parent: openstack-helm-images-base
|
|
abstract: true
|
|
files:
|
|
- ^mariadb/.*
|
|
vars:
|
|
image_path: mariadb
|
|
|
|
- job:
|
|
name: openstack-helm-images-mariadb-ubuntu_xenial
|
|
parent: openstack-helm-images-mariadb
|
|
files:
|
|
- ^mariadb/build.sh
|
|
- ^mariadb/Dockerfile.ubuntu_xenial$
|
|
- ^zuul.d/mariadb.yaml
|
|
vars:
|
|
distro: "ubuntu_xenial"
|