From 9c277dc8d60236d46202a9331489f5f7a39415f3 Mon Sep 17 00:00:00 2001 From: MrTango Date: Mon, 25 May 2026 21:58:39 +0300 Subject: [PATCH] Fix devcontainer copier-templates mount and $HOME build warning - Use a single read-write bind of the host dev clone (~/develop/plone/src/copier-templates) into the path plonecli reads (~/.copier-templates/plone-copier-templates), replacing the broken non-existent mount and the redundant readonly mount. - Update initializeCommand to ensure the dev path exists. - Use explicit /home/node instead of undefined $HOME in Dockerfile PATH. --- .devcontainer/Dockerfile | 2 +- .devcontainer/devcontainer.json | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 6890019..613e708 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -82,7 +82,7 @@ USER node # Install global packages ENV NPM_CONFIG_PREFIX=/usr/local/share/npm-global -ENV PATH=$HOME/.local/bin:$PATH:/usr/local/share/npm-global/bin +ENV PATH=/home/node/.local/bin:$PATH:/usr/local/share/npm-global/bin # Set the default shell to zsh rather than sh ENV SHELL=/bin/zsh diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 92b3807..05be780 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -13,7 +13,7 @@ "ghcr.io/devcontainers/features/docker-in-docker:2": {} }, - "initializeCommand": "mkdir -p \"$HOME/.claude\" \"$HOME/.copier-templates\"", + "initializeCommand": "mkdir -p \"$HOME/.claude\" \"$HOME/develop/plone/src/copier-templates\"", "runArgs": ["--cap-add=NET_ADMIN", "--cap-add=NET_RAW"], "customizations": { "vscode": { @@ -48,8 +48,7 @@ "source=claude-code-bashhistory-${devcontainerId},target=/commandhistory,type=volume", "source=claude-code-config-${devcontainerId},target=/home/node/.claude,type=volume", "source=${localEnv:HOME}/.claude,target=/host-claude-config,type=bind,readonly", - "source=${localEnv:HOME}/.copier-templates,target=/home/node/.copier-templates,type=bind,readonly", - "source=${localEnv:HOME}/develop/plone/src/copier-templates,target=/home/node/develop/plone/src/copier-templates,type=bind,consistency=delegated" + "source=${localEnv:HOME}/develop/plone/src/copier-templates,target=/home/node/.copier-templates/plone-copier-templates,type=bind,consistency=delegated" ], "containerEnv": { "CLAUDE_CONFIG_DIR": "/home/node/.claude",