Skip to content

Commit

Permalink
[edpm_build_images] Run buildah command as a root
Browse files Browse the repository at this point in the history
In Downstream, we perform podman/buildah login as a root to pull
base containers.

Here we are building containers as a normal user. the buildah commands are
failing with base containers not found.

Running buildah command as a root fixes the issue.

Signed-off-by: Chandan Kumar <[email protected]>
  • Loading branch information
raukadah committed May 13, 2024
1 parent cb68d1f commit a87fe86
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/edpm_build_images/tasks/package.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
- name: Package edpm-hardened-uefi image inside container image
become: true
when:
- (cifmw_edpm_build_images_hardened_uefi | bool) or (cifmw_edpm_build_images_all | bool)
- cifmw_edpm_build_images_hardened_uefi_package | bool
Expand All @@ -14,6 +15,7 @@
--logfile {{ cifmw_edpm_build_images_basedir }}/logs/edpm_images/edpm_hardened_uefi_container_package.log
- name: Package ironic-python-agent image inside container image
become: true
when:
- (cifmw_edpm_build_images_ironic_python_agent | bool) or (cifmw_edpm_build_images_all | bool)
- cifmw_edpm_build_images_ironic_python_agent_package | bool
Expand Down

0 comments on commit a87fe86

Please sign in to comment.