Ansible job definitions for Zuul
Go to file
Ian Wienand 2cbb80a923 build-docker-image: add option to install siblings
When you build from a Dockerfile, it runs in a given "context"; that
is the directory the Dockerfile is in and the directories below it.
It can not access anything outside that context during the build.

When building a container for a project in the gate, you may wish to
install sibling projects that Zuul has checked-out into your container
(i.e. so that Depends-On works).  As mentioned, because
/home/zuul/src/<project> is not in the context of the current project,
you will not be able to access this source code during the container
build.

So to help facilitate dependencies, add a siblings: tag which can copy
some or all of the required-projects already specified for the job
into a special sub-directory of the current source.

Because all the code is now in the same context, this will allow build
scripts to be written that look for directories in .zuul-siblings and
can install the source code from there.  To further help the scripts,
the ZUUL_SIBLINGS arg is set for the docker build giving the copied
paths.

The test is updated with some paths to test the copy.

Change-Id: I079d823e7194e15b1b496aea0f53f70f6b563f02
2019-12-03 13:26:30 +11:00
doc Role to install podman 2019-11-08 08:51:58 +01:00
playbooks Merge "Switch to fetch-sphinx-tarball for tox-docs" 2019-09-09 16:46:34 +00:00
roles build-docker-image: add option to install siblings 2019-12-03 13:26:30 +11:00
test-playbooks build-docker-image: add option to install siblings 2019-12-03 13:26:30 +11:00
tests Add a python unit test framework 2018-07-25 09:11:25 -07:00
tools Make opensuse-15 job voting again 2019-11-25 08:27:54 +01:00
zuul-tests.d Make opensuse-15 job voting again 2019-11-25 08:27:54 +01:00
zuul.d Fixes generation of documentation for jobvars 2019-10-24 17:43:58 +02:00
.gitignore Add a python unit test framework 2018-07-25 09:11:25 -07:00
.gitreview OpenDev Migration Patch 2019-04-19 19:25:30 +00:00
.stestr.conf Add a python unit test framework 2018-07-25 09:11:25 -07:00
LICENSE Add initial license, docs, and other config 2017-06-08 14:01:21 -07:00
README.rst Add installation/deprecation documentation 2018-04-11 08:03:57 -07:00
bindep.txt Updated bindep to cover for MacOS requirements 2018-10-27 16:31:33 +00:00
setup.cfg Add initial license, docs, and other config 2017-06-08 14:01:21 -07:00
setup.py Add initial license, docs, and other config 2017-06-08 14:01:21 -07:00
test-requirements.txt Be consistent about spaces before and after vars 2019-08-07 20:17:41 +01:00
tox.ini Be consistent about spaces before and after vars 2019-08-07 20:17:41 +01:00

README.rst

Zuul Jobs

This repo contains a set of Zuul jobs and Ansible roles suitable for use by any Zuul system.