From 86fcdfde27a2fda2e38857611085931262075044 Mon Sep 17 00:00:00 2001 From: Finn Stutzenstein Date: Wed, 21 Oct 2026 08:36:57 +0000 Subject: [PATCH] Devcontainer: enable bash-completion and set UTF-8 locale Co-Authored-By: Claude Opus 5.5 --- .devcontainer/Dockerfile | 10 +++++++--- .devcontainer/devcontainer.json | 3 ++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 571ee5f..ee5edb5 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -7,17 +7,21 @@ ARG USER_GID=$USER_UID # git + openssh-client: git over the host's forwarded SSH agent # gcc, libc-dev, libpq-dev: build psycopg2 from requirements.txt -# postgresql-client, wait-for-it: scripts/db-setup.sh, scripts/psql.sh +# postgresql-client, wait-for-it: database scripts # curl, ca-certificates: Claude Code installer -# vim: personal preferences +# vim, bash-completion: personal preferences RUN apt-get -y update && \ apt-get install --no-install-recommends -y \ git openssh-client make curl ca-certificates sudo \ gcc libc-dev libpq-dev \ postgresql-client wait-for-it \ - vim && \ + vim bash-completion && \ apt-get clean && rm -rf /var/lib/apt/lists/* +# Load bash-completion in every interactive shell (e.g. `make `). Not in +# ~/.bashrc, since the home dir is a volume (see devcontainer.json). +RUN echo '. /usr/share/bash-completion/bash_completion' >> /etc/bash.bashrc + RUN groupadd --gid $USER_GID $USERNAME && \ useradd --uid $USER_UID --gid $USER_GID -m -s /bin/bash $USERNAME && \ echo "$USERNAME ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/$USERNAME && \ diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 5a5b8b9..27b891a 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -13,7 +13,8 @@ // Bind mounts are resolved by the host's daemon, so they need host paths: // use ${LOCAL_WORKSPACE_FOLDER} instead of paths inside this container. "remoteEnv": { - "LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}" + "LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}", + "LANG": "C.UTF-8" }, "postCreateCommand": "pip install -U pip && pip install -U -r requirements.txt -r requirements-dev.txt", "forwardPorts": [