Skip to content

Commit

Permalink
fix: creation of /.ansible folder in builder dockerfile
Browse files Browse the repository at this point in the history
the automation for releases stopped working because of error
with folder permission.
By changing the command to RUN mkdir -m 777 -p /.ansible/tmp
the release automation started working.

Signed-off-by: Karel Simon <[email protected]>
  • Loading branch information
ksimon1 authored and kubevirt-bot committed Nov 28, 2024
1 parent 3022175 commit 5bb4e96
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions builder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ RUN dnf install -y jq ansible python3-gobject python3-openshift libosinfo intlto

# Allow writes to /etc/passwd so a user for ansible can be added by CI commands
RUN chmod a+w /etc/passwd

# Create ansible tmp folder and set permissions
RUN mkdir -p /.ansible/tmp && \
chmod -R 777 /.ansible
RUN mkdir -m 777 -p /.ansible/tmp

# Download latest stable oc client binary
RUN curl -L https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/stable/openshift-client-linux.tar.gz | tar -C /usr/local/bin -xzf - oc && \
Expand Down

0 comments on commit 5bb4e96

Please sign in to comment.