From c46a3c38c43d9917eea246cb992686c5acb24b2a Mon Sep 17 00:00:00 2001 From: Zhang Xiaofeng Date: Mon, 2 Mar 2026 03:55:20 +0000 Subject: [PATCH] add devcontainer postCreateCommand to chown mount volumn --- .devcontainer/devcontainer.json | 3 ++- .devcontainer/post_create_command.sh | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100755 .devcontainer/post_create_command.sh diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 415b42241..aadb12a2c 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -32,5 +32,6 @@ "label=disable" ], // Configure tool-specific properties. - "features": {} + "features": {}, + "postCreateCommand": "./.devcontainer/post_create_command.sh" } diff --git a/.devcontainer/post_create_command.sh b/.devcontainer/post_create_command.sh new file mode 100755 index 000000000..e130a9ab2 --- /dev/null +++ b/.devcontainer/post_create_command.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +# change owner for mounted volumes +sudo chown code:code /home/code/.conan2/p +sudo chown code:code /home/code/.ccache