Skip to content

Commit 34d4ad7

Browse files
committed
Container promote: Run container content tasks asynchronously
This should improve performance of promotion.
1 parent 02a1cdc commit 34d4ad7

File tree

3 files changed

+23
-9
lines changed

3 files changed

+23
-9
lines changed

ansible/dev-pulp-container-promote.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,4 @@
4444
{%- endfor -%}
4545
{%- endfor -%}
4646
{{ contents }}
47+
pulp_container_content_wait: false

docs/usage/content-workflows.md

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -165,22 +165,19 @@ In this example, the base and Skydive images have been tagged `wallaby-20220811T
165165

166166
Instructions for building Kolla container images manually are provided in the [StackHPC kayobe config README](https://github.com/stackhpc/stackhpc-kayobe-config/blob/bf1396b8564b79344e4b6cfb934eab865ff1ad09/README.rst#L226).
167167

168-
## Syncing container images
168+
## Publishing container images
169+
170+
The [Publish container repositories](https://github.com/stackhpc/stackhpc-release-train/actions/workflows/container-publish.yml) workflow runs after a push to the `main` branch of the `stackhpc-release-train` repository, when relevant files have changed.
169171

170-
The [Sync container repositories](https://github.com/stackhpc/stackhpc-release-train/actions/workflows/container-sync.yml) workflow runs after a successful [container image build](#building-container-images) workflow run, or on demand.
171172
It runs the following playbooks:
172173

173-
* `dev-pulp-container-publish.yml`: Configure access control for development container distributions on `ark`.
174-
* `test-pulp-container-sync.yml`: Synchronise `test` with container images from `stackhpc-dev` namespace on `ark`.
175-
* `test-pulp-container-publish.yml`: Create distributions on `test` Pulp server for any new container images.
174+
* `dev-pulp-container-publish.yml`: Configure access control for development and release container repositories and distributions on `ark`.
176175

177176
Use GitHub Actions to run this workflow, or to run it manually:
178177

179178
```
180179
ansible-playbook -i ansible/inventory \
181-
ansible/dev-pulp-container-publish.yml \
182-
ansible/test-pulp-container-sync.yml \
183-
ansible/test-pulp-container-publish.yml
180+
ansible/dev-pulp-container-publish.yml
184181
```
185182

186183
Configuration for container images is in:
@@ -191,6 +188,22 @@ Configuration for container images is in:
191188

192189
New images should be added to `kolla_container_images` in `ansible/inventory/group_vars/all/kolla`.
193190

191+
## Syncing container images
192+
193+
The [Sync container repositories](https://github.com/stackhpc/stackhpc-release-train/actions/workflows/container-sync.yml) workflow runs after a successful [container image build](#building-container-images) workflow run, or on demand.
194+
It runs the following playbooks:
195+
196+
* `test-pulp-container-sync.yml`: Synchronise `test` with container images from `stackhpc-dev` namespace on `ark`.
197+
* `test-pulp-container-publish.yml`: Create distributions on `test` Pulp server for any new container images.
198+
199+
Use GitHub Actions to run this workflow, or to run it manually:
200+
201+
```
202+
ansible-playbook -i ansible/inventory \
203+
ansible/test-pulp-container-sync.yml \
204+
ansible/test-pulp-container-publish.yml
205+
```
206+
194207
## Updating container image tags in Kayobe configuration
195208

196209
!!! note

requirements.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
collections:
22
- name: stackhpc.pulp
3-
version: 0.5.0
3+
version: 0.5.1
44
- name: community.crypto
55
version: 2.0.2
66
- name: pulp.squeezer

0 commit comments

Comments
 (0)