Skip to content

Commit

Permalink
provision: install Cilium CLI
Browse files Browse the repository at this point in the history
Install Cilium's CLI when building the images. This will be mainly used
to collect sysdumps in the Jenkins artifacts.

This was previously attempted in 430530b ("provision: install Cilium
CLI"), but was reverted because the binary conflicted with the
cilium-agent binary when running the agent without its own container.
This commit works around that issue by renaming the CLI's binary to
cilium-cli.

Signed-off-by: Quentin Monnet <quentin@isovalent.com>
Signed-off-by: Paul Chaignon <paul@cilium.io>
  • Loading branch information
pchaigno committed Apr 19, 2023
1 parent cb16892 commit 577d0d9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions provision/ubuntu/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,14 @@ sha256sum --check hubble-linux-amd64.tar.gz.sha256sum || exit 1
sudo tar -xf "hubble-linux-amd64.tar.gz" -C /usr/bin hubble
sudo bash -c "echo 'HUBBLE_SERVER=unix:///var/run/cilium/hubble.sock' >> /etc/environment"

# Install Cilium's CLI
cd /tmp/
curl -L --remote-name-all https://github.com/cilium/cilium-cli/releases/latest/download/cilium-linux-${ARCH}.tar.gz{,.sha256sum}
sha256sum --check --strict cilium-linux-${ARCH}.tar.gz.sha256sum
sudo tar xzfC cilium-linux-${ARCH}.tar.gz /tmp
mv /tmp/cilium /usr/local/bin/cilium-cli
rm cilium-linux-${ARCH}.tar.gz{,.sha256sum}

# Clean all downloaded packages
sudo apt-get -y clean
sudo apt-get -y autoclean
Expand Down

0 comments on commit 577d0d9

Please sign in to comment.