Skip to content

Support synchronising custom container images #1076

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions doc/source/configuration/release-train.rst
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,33 @@ By default, HashiCorp images (Consul and Vault) are not synced from Docker Hub
to the local Pulp. To sync these images, set ``stackhpc_sync_hashicorp_images``
to ``true``.

Custom container images
-----------------------

A custom list of container images can be synced to the local Pulp using the
``stackhpc_pulp_repository_container_repos_extra`` and
``stackhpc_pulp_distribution_container_extra`` variables.

.. code-block:: yaml

# List of extra container image repositories.
stackhpc_pulp_repository_container_repos_extra:
- name: "certbot/certbot"
url: "https://registry-1.docker.io"
policy: on_demand
proxy_url: "{{ pulp_proxy_url }}"
state: present
include_tags: "nightly"
required: True

# List of extra container image distributions.
stackhpc_pulp_distribution_container_extra:
- name: certbot
repository: certbot/certbot
base_path: certbot/certbot
state: present
required: True

Usage
=====

Expand Down
12 changes: 10 additions & 2 deletions etc/kayobe/pulp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -821,14 +821,22 @@ stackhpc_pulp_distribution_container_hashicorp:
state: present
required: "{{ stackhpc_sync_hashicorp_images | bool }}"

# List of extra container image repositories.
stackhpc_pulp_repository_container_repos_extra: []

# List of extra container image distributions.
stackhpc_pulp_distribution_container_extra: []

# List of container image repositories.
stackhpc_pulp_repository_container_repos: >-
{{ (stackhpc_pulp_repository_container_repos_kolla +
stackhpc_pulp_repository_container_repos_ceph +
stackhpc_pulp_repository_container_repos_hashicorp) | selectattr('required') }}
stackhpc_pulp_repository_container_repos_hashicorp +
stackhpc_pulp_repository_container_repos_extra) | selectattr('required') }}

# List of container image distributions.
stackhpc_pulp_distribution_container: >-
{{ (stackhpc_pulp_distribution_container_kolla +
stackhpc_pulp_distribution_container_ceph +
stackhpc_pulp_distribution_container_hashicorp) | selectattr('required') }}
stackhpc_pulp_distribution_container_hashicorp +
stackhpc_pulp_distribution_container_extra) | selectattr('required') }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
features:
- |
Allows to synchronise a custom list of containers to Pulp using the
``stackhpc_pulp_repository_container_repos_extra`` and
``stackhpc_pulp_distribution_container_extra`` variables.
Loading