From 2446cfd98106d4f0d7a29004355a8a208a80478b Mon Sep 17 00:00:00 2001 From: Brandt Kurowski Date: Mon, 16 Nov 2026 09:53:24 -0500 Subject: [PATCH 1/3] Download atuin via releases/latest/download URL The GitHub API lookup for the latest release hit the unauthenticated rate limit during a scheduled build, returning no assets and breaking the arm64 image build. The direct download URL redirects to the latest release without an API call. Co-Authored-By: Claude Opus 5.5 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a88be9d..e49d874 100644 --- a/Dockerfile +++ b/Dockerfile @@ -128,7 +128,7 @@ RUN curl -sS https://starship.rs/install.sh | sh -s -- --yes # RUN PATH="$HOME/.cargo/bin:$PATH" cargo install atuin # # # So instead we download the latest precompiled binary for our cpu architecture: -RUN curl -sL $(curl -s https://api.github.com/repos/atuinsh/atuin/releases/latest | jq -r '.assets[] | select(.name == "atuin-'`uname -m`'-unknown-linux-gnu.tar.gz") | .browser_download_url') | tar zx --no-same-owner --wildcards --absolute-names --transform 's,[^/]*,/usr/local/bin,' '*/atuin' +RUN curl -fsSL "https://github.com/atuinsh/atuin/releases/latest/download/atuin-$(uname -m)-unknown-linux-gnu.tar.gz" | tar zx --no-same-owner --wildcards --absolute-names --transform 's,[^/]*,/usr/local/bin,' '*/atuin' # Prepare the .claude directory to work as a mounted volume that can been altered # Works around a Docker named-volume issue: From 1ee2f3ea98c60f0d1033a0a29bbd7bb441927403 Mon Sep 17 00:00:00 2001 From: Brandt Kurowski Date: Mon, 16 Nov 2026 09:54:09 -0500 Subject: [PATCH 2/3] Download gh CLI without the GitHub API Resolve the latest version from the releases/latest redirect instead of the rate-limited API, since gh asset names include the version. Co-Authored-By: Claude Opus 5.5 --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e49d874..276a464 100644 --- a/Dockerfile +++ b/Dockerfile @@ -137,7 +137,10 @@ RUN curl -fsSL "https://github.com/atuinsh/atuin/releases/latest/download/atuin- RUN mkdir -p /home/vscode/.claude && chown vscode:vscode /home/vscode/.claude # Our base image has an ancient version of gh cli in apt, so we download the latest version instead -RUN curl -sL $(curl -s https://api.github.com/repos/cli/cli/releases/latest | jq -r '.assets[] | select(.name | endswith("_linux_'`uname -m | sed s/aarch64/arm64/ | sed s/x86_64/amd64/`'.tar.gz")) | .browser_download_url') | tar zx --no-same-owner --wildcards --absolute-names --transform 's,[^/]*,/usr/local,' '*/gh' +# (asset names include the version, so resolve it from the releases/latest redirect rather than the rate-limited API) +RUN ARCH=$(uname -m | sed -e s/aarch64/arm64/ -e s/x86_64/amd64/) \ + && VERSION=$(curl -fsSLI -o /dev/null -w '%{url_effective}' https://github.com/cli/cli/releases/latest | sed 's,.*/tag/v,,') \ + && curl -fsSL "https://github.com/cli/cli/releases/download/v${VERSION}/gh_${VERSION}_linux_${ARCH}.tar.gz" | tar zx --no-same-owner --wildcards --absolute-names --transform 's,[^/]*,/usr/local,' '*/gh' # Copy our scripts and template files COPY local /usr/local/ From 37d91d191560aaecdc84aeb50d336b1675149a3f Mon Sep 17 00:00:00 2001 From: Brandt Kurowski Date: Mon, 16 Nov 2026 09:57:29 -0500 Subject: [PATCH 3/3] Install arch-appropriate Neovim; fail fast on download errors Neovim was hard-coded to the x86_64 tarball, so arm64 images got a binary that can't run. Pick the tarball by architecture and extract it to a fixed /opt/nvim path. Also add curl -f to the Neovim and Terminus downloads so HTTP errors fail the build clearly. Co-Authored-By: Claude Opus 5.5 --- Dockerfile | 7 ++++--- local/etc/uceap.d/devcontainer_on_create.sh | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 276a464..c6c2124 100644 --- a/Dockerfile +++ b/Dockerfile @@ -76,8 +76,9 @@ RUN npm i @ast-grep/cli -g \ && npm i yarn -g # Install a newer Neovim than what Debian provides. -RUN curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux-x86_64.tar.gz \ - && tar -C /opt -xzf nvim-linux-x86_64.tar.gz +RUN mkdir -p /opt/nvim \ + && curl -fsSL "https://github.com/neovim/neovim/releases/latest/download/nvim-linux-$(uname -m | sed s/aarch64/arm64/).tar.gz" \ + | tar -C /opt/nvim --strip-components=1 -xz # Configure PHP, make memory_limit and upload_max_filesize match Pantheon RUN cp /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini \ @@ -100,7 +101,7 @@ RUN a2enmod expires headers rewrite RUN echo "umask 002" >> /etc/apache2/envvars # Install terminus -RUN curl -L https://github.com/pantheon-systems/terminus/releases/latest/download/terminus.phar --output /usr/local/bin/terminus \ +RUN curl -fsSL https://github.com/pantheon-systems/terminus/releases/latest/download/terminus.phar --output /usr/local/bin/terminus \ && chmod +x /usr/local/bin/terminus \ && terminus self:plugin:install terminus-secrets-manager-plugin diff --git a/local/etc/uceap.d/devcontainer_on_create.sh b/local/etc/uceap.d/devcontainer_on_create.sh index d6966db..d3fd219 100644 --- a/local/etc/uceap.d/devcontainer_on_create.sh +++ b/local/etc/uceap.d/devcontainer_on_create.sh @@ -74,7 +74,7 @@ function devcontainer_on_create() { claude plugin install uceap # Put neovim in the PATH for those who celebrate - ln -s /opt/nvim-linux-x86_64/bin/nvim ~/.local/bin + ln -s /opt/nvim/bin/nvim ~/.local/bin # Setup shell completion uceap completion bash | sudo sh -c "cat > /etc/bash_completion.d/uceap"