From a8a6310ecf3a3fa4c0aa414c81eda83b5cb0fce3 Mon Sep 17 00:00:00 2001 From: Brandt Kurowski Date: Mon, 16 Nov 2026 09:57:29 -0500 Subject: [PATCH] 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 9ecb905..c29e2f8 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"