Skip to content

Commit

Permalink
add cilium cli
Browse files Browse the repository at this point in the history
  • Loading branch information
evgenyKharitonov committed Sep 2, 2024
1 parent a525d9e commit 1447f15
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM alpine:3.18.2

FROM alpine:3.20.2

RUN apk update && apk add \
postgresql-client \
curl \
tar \
coreutils \
nmap \
netcat-openbsd \
tcpdump \
Expand All @@ -20,5 +21,13 @@ RUN apk update && apk add \
go

## Cilium
RUN CILIUM_CLI_VERSION=$(curl -s https://raw.githubusercontent.com/cilium/cilium-cli/main/stable.txt) && \
CLI_ARCH=amd64 && \
if [ "$(uname -m)" = "aarch64" ]; then CLI_ARCH=arm64; fi && \
curl -L --fail --remote-name-all https://github.com/cilium/cilium-cli/releases/download/${CILIUM_CLI_VERSION}/cilium-linux-${CLI_ARCH}.tar.gz && \
curl -L --fail --remote-name-all https://github.com/cilium/cilium-cli/releases/download/${CILIUM_CLI_VERSION}/cilium-linux-${CLI_ARCH}.tar.gz.sha256sum && \
sha256sum -c cilium-linux-${CLI_ARCH}.tar.gz.sha256sum && \
tar xzvfC cilium-linux-${CLI_ARCH}.tar.gz /usr/local/bin && \
rm cilium-linux-${CLI_ARCH}.tar.gz cilium-linux-${CLI_ARCH}.tar.gz.sha256sum

CMD ["/bin/bash"]

0 comments on commit 1447f15

Please sign in to comment.