New CI job: add settings for containers registries
Support pulling containers from provider job registry. Change-Id: Ib85f3a61f20c60865362eea4d14e5ae6ab0ae46f
This commit is contained in:
@@ -18,3 +18,9 @@ local_registry_ip: 127.0.0.1
|
||||
local_registry_port: 5001
|
||||
container_registry_namespace: tripleomaster
|
||||
container_tag: current-tripleo
|
||||
docker_prep_prefix: >-
|
||||
{% if job.build_container_images|default(false)|bool and not job.provider_job|default(false)|bool -%}
|
||||
openstack
|
||||
{%- else -%}
|
||||
{{ ansible_distribution | lower }}-binary
|
||||
{%- endif -%}
|
||||
|
||||
@@ -19,12 +19,19 @@
|
||||
podman_container:
|
||||
name: docker_registry
|
||||
image: registry:2
|
||||
net: host
|
||||
publish:
|
||||
- "{{ local_registry_port }}:{{ local_registry_port }}"
|
||||
env:
|
||||
REGISTRY_HTTP_ADDR: "{{ local_registry_ip }}:{{ local_registry_port }}"
|
||||
REGISTRY_HTTP_ADDR: "0.0.0.0:{{ local_registry_port }}"
|
||||
tags:
|
||||
- skip_ansible_lint
|
||||
|
||||
- name: Open port for local registry
|
||||
become: true
|
||||
command: >-
|
||||
iptables -I INPUT -p tcp --dport {{ local_registry_port }} -j ACCEPT
|
||||
changed_when: true
|
||||
|
||||
- name: Set container_image_build_volumes fact
|
||||
set_fact:
|
||||
container_image_build_volumes:
|
||||
@@ -56,3 +63,4 @@
|
||||
tripleo_container_image_build_registry: "{{ local_registry_ip }}:{{ local_registry_port }}"
|
||||
tripleo_container_image_build_volumes: "{{ container_image_build_volumes }}"
|
||||
tripleo_container_image_build_work_dir: "{{ working_dir }}/container-builds"
|
||||
tripleo_container_image_build_prefix: "{{ docker_prep_prefix }}"
|
||||
|
||||
Reference in New Issue
Block a user