Skip to content

Commit

Permalink
fix: add websocat to custodian to avoid having to wget it every time
Browse files Browse the repository at this point in the history
  • Loading branch information
starpit committed Apr 28, 2023
1 parent aefc221 commit 2334b1d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions deploy/custodian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ FROM alpine/helm:3.11.3

LABEL org.opencontainers.image.source https://github.com/project-codeflare/codeflare-cli

RUN if [[ $(uname -m) = aarch64 ]]; then KUBECTL_ARCH=arm64; else KUBECTL_ARCH=amd64; fi; curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/$KUBECTL_ARCH/kubectl" && \
RUN if [[ $(uname -m) = aarch64 ]]; then KUBECTL_ARCH=arm64; else KUBECTL_ARCH=amd64; fi; \
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/$KUBECTL_ARCH/kubectl" && \
chmod a+rx kubectl && \
mv kubectl /usr/local/bin
mv kubectl /usr/local/bin && \
wget -q -O /tmp/websocat https://github.com/vi/websocat/releases/download/v1.11.0/websocat.$(uname -m)-unknown-linux-musl && \
chmod a+rx /tmp/websocat && \
mv /tmp/websocat /usr/local/bin

ENTRYPOINT bash

0 comments on commit 2334b1d

Please sign in to comment.