Skip to content

Commit

Permalink
Add /usr/local/bin to the path for krkn images
Browse files Browse the repository at this point in the history
This is needed to ensure oc and kubectl binaries under /usr/local/bin
are accessible.

Signed-off-by: Naga Ravi Chaitanya Elluri <[email protected]>
  • Loading branch information
chaitanyaenr committed Mar 4, 2024
1 parent 7e7a917 commit ba6a844
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions containers/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ FROM mcr.microsoft.com/azure-cli:latest as azure-cli
FROM registry.access.redhat.com/ubi8/ubi:latest

ENV KUBECONFIG /root/.kube/config
ENV PATH=$PATH:/usr/local/bin

# Copy azure client binary from azure-cli image
COPY --from=azure-cli /usr/local/bin/az /usr/bin/az
Expand Down
1 change: 1 addition & 0 deletions containers/Dockerfile-ppc64le
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ FROM mcr.microsoft.com/azure-cli:latest as azure-cli
LABEL org.opencontainers.image.authors="Red Hat OpenShift Chaos Engineering"

ENV KUBECONFIG /root/.kube/config
ENV PATH=$PATH:/usr/local/bin

# Copy azure client binary from azure-cli image
COPY --from=azure-cli /usr/local/bin/az /usr/bin/az
Expand Down

0 comments on commit ba6a844

Please sign in to comment.