Add native variable to locally build containers
atm there is an option to turn on local container builds for standalone that is defined in zuul only. ATM we are considering turning this on for all standalone master jobs to reduce the load on docker.io This change updates the release vars to to switch it on for master. By default in standalone role master and ussuri will build locally. Depends-On: https://review.opendev.org/#/c/743691/ Partial-Bug: #1889122 Change-Id: I32793b94525ece1e64f7924f3f29a7dc2655a588
This commit is contained in:
parent
031aa65b26
commit
bde0d0084c
|
@ -6,7 +6,20 @@ distro_ver: centos8
|
|||
distro_deps_repo_name: deps
|
||||
dlrn_hash_tag: current-tripleo
|
||||
dlrn_hash_tag_newest: current
|
||||
docker_registry_host: "{{ job.build_container_images|default(false)|bool | ternary('127.0.0.1:5001', 'docker.io') }}"
|
||||
|
||||
# job.build_container_images is defined in zuul as a
|
||||
# direct var. adding build_container_images as tqe
|
||||
# var so that we can turn this on/off per release w/o
|
||||
# changing zuul and breaking jobs via inheritance.
|
||||
docker_registry_host: >-
|
||||
{% if job is defined and
|
||||
job.build_container_images is defined and
|
||||
job.build_container_images|default(false)|bool or
|
||||
build_container_images|default(false)|bool -%}
|
||||
127.0.0.1:5001
|
||||
{%- else -%}
|
||||
docker.io
|
||||
{%- endif -%}
|
||||
docker_registry_namespace: "tripleo{{ release }}"
|
||||
docker_image_tag: "{{ dlrn_hash|default(dlrn_hash_tag) }}"
|
||||
docker_openshift_tag: v3.11.0
|
||||
|
|
|
@ -6,7 +6,15 @@ distro_ver: centos8
|
|||
distro_deps_repo_name: deps
|
||||
dlrn_hash_tag: current-tripleo
|
||||
dlrn_hash_tag_newest: current
|
||||
docker_registry_host: "{{ job.build_container_images|default(false)|bool | ternary('127.0.0.1:5001', 'docker.io') }}"
|
||||
docker_registry_host: >-
|
||||
{% if job is defined and
|
||||
job.build_container_images is defined and
|
||||
job.build_container_images|default(false)|bool or
|
||||
build_container_images|default(false)|bool -%}
|
||||
127.0.0.1:5001
|
||||
{%- else -%}
|
||||
docker.io
|
||||
{%- endif -%}
|
||||
# note.. namespace tripleoussuri has been
|
||||
# squatted on by another owner
|
||||
# for ussuri release please use 'tripleou'
|
||||
|
|
Loading…
Reference in New Issue