From 1d3da4d8df039ba367f020ecb569cb5afac4c411 Mon Sep 17 00:00:00 2001 From: Phorcys <57866459+phorcys420@users.noreply.github.com> Date: Tue, 14 Jan 2025 19:54:49 +0100 Subject: [PATCH 1/2] chore(dogfood): add `doctl` --- dogfood/contents/Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dogfood/contents/Dockerfile b/dogfood/contents/Dockerfile index 089ed20b19fa6..f0eda499437c0 100644 --- a/dogfood/contents/Dockerfile +++ b/dogfood/contents/Dockerfile @@ -222,6 +222,13 @@ RUN LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygi curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz" && \ tar xf lazygit.tar.gz -C /usr/local/bin lazygit +# Install doctl +# See +RUN DOCTL_VERSION=$(curl -s "https://api.github.com/repos/digitalocean/doctl/releases/latest" | grep '"tag_name":' | sed -E 's/.*"v([^"]+)".*/\1/') && \ + curl -L https://github.com/digitalocean/doctl/releases/download/v${DOCTL_VERSION}/doctl-${DOCTL_VERSION}-linux-amd64.tar.gz -o doctl.tar.gz && \ + tar xf doctl.tar.gz -C /usr/local/bin doctl + + # Install frontend utilities ENV NVM_DIR=/usr/local/nvm ENV NODE_VERSION=20.16.0 From 2732bb9227b4b0711e49f110fce1189a80eee6e5 Mon Sep 17 00:00:00 2001 From: Phorcys <57866459+phorcys420@users.noreply.github.com> Date: Tue, 14 Jan 2025 19:56:07 +0100 Subject: [PATCH 2/2] chore: fix comment --- dogfood/contents/Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dogfood/contents/Dockerfile b/dogfood/contents/Dockerfile index f0eda499437c0..9af30b099773e 100644 --- a/dogfood/contents/Dockerfile +++ b/dogfood/contents/Dockerfile @@ -223,12 +223,11 @@ RUN LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygi tar xf lazygit.tar.gz -C /usr/local/bin lazygit # Install doctl -# See +# See https://docs.digitalocean.com/reference/doctl/how-to/install RUN DOCTL_VERSION=$(curl -s "https://api.github.com/repos/digitalocean/doctl/releases/latest" | grep '"tag_name":' | sed -E 's/.*"v([^"]+)".*/\1/') && \ curl -L https://github.com/digitalocean/doctl/releases/download/v${DOCTL_VERSION}/doctl-${DOCTL_VERSION}-linux-amd64.tar.gz -o doctl.tar.gz && \ tar xf doctl.tar.gz -C /usr/local/bin doctl - # Install frontend utilities ENV NVM_DIR=/usr/local/nvm ENV NODE_VERSION=20.16.0