Skip to content

Commit

Permalink
Add ansible-galaxy requirements to SGO
Browse files Browse the repository at this point in the history
This change [0] in the ansible-operator introduced the
removal of both k8s and operator_sdk.util from the base image.
This means we now need to add the dependendencies ourselves
when building SGO.

[0] operator-framework/operator-sdk#6483
  • Loading branch information
vkmc committed Oct 29, 2024
1 parent 514f85e commit 0bb156e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ USER 0
# -- cleans up the cached data from dnf to keep the image as small as possible
RUN dnf update -y --exclude=ansible* && dnf clean all && rm -rf /var/cache/dnf

COPY requirements.yml ${HOME}/requirements.yml
RUN ansible-galaxy collection install -r ${HOME}/requirements.yml \
&& chmod -R ug+rwx ${HOME}/.ansible

# switch back to user 1001 when running the base image (non-root)
USER 1001

Expand Down

0 comments on commit 0bb156e

Please sign in to comment.