From 429ba2c8eb218886bad4e89e16d8b367fa89b566 Mon Sep 17 00:00:00 2001 From: Laurent Ellerbach Date: Fri, 6 Dec 2024 15:47:14 +0100 Subject: [PATCH] Fixing git config for cloning repos in dev containers (#3047) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: José Simões --- .devcontainer/All/Dockerfile.All | 2 +- .devcontainer/All/devcontainer.json | 6 +++--- .devcontainer/AzureRTOS/Dockerfile.AzureRTOS | 2 +- .devcontainer/AzureRTOS/devcontainer.json | 6 +++--- .devcontainer/ChibiOS/Dockerfile.ChibiOS | 2 +- .devcontainer/ChibiOS/devcontainer.json | 7 ++++--- .devcontainer/ESP32/Dockerfile.ESP32 | 2 +- .devcontainer/ESP32/devcontainer.json | 6 +++--- .devcontainer/FreeRTOS-NXP/Dockerfile.FreeRTOS-NXP | 2 +- .devcontainer/FreeRTOS-NXP/devcontainer.json | 6 +++--- .devcontainer/TI/Dockerfile.TI | 2 +- .devcontainer/TI/devcontainer.json | 6 +++--- 12 files changed, 25 insertions(+), 24 deletions(-) diff --git a/.devcontainer/All/Dockerfile.All b/.devcontainer/All/Dockerfile.All index c916e6a413..32cf48ba94 100644 --- a/.devcontainer/All/Dockerfile.All +++ b/.devcontainer/All/Dockerfile.All @@ -1 +1 @@ -FROM ghcr.io/nanoframework/dev-container-all:v2.54 +FROM ghcr.io/nanoframework/dev-container-all:v2.55 diff --git a/.devcontainer/All/devcontainer.json b/.devcontainer/All/devcontainer.json index 2e10fe7514..9d0e0a02a4 100644 --- a/.devcontainer/All/devcontainer.json +++ b/.devcontainer/All/devcontainer.json @@ -36,13 +36,13 @@ "xaver.clang-format" ] } - } + }, // You can pull all the repos with the latest changes, this is only valid if you are using the ./sources/Dockerfile.All containers // "postAttachCommand": "/usr/local/git-pull-repos.sh" // Use 'forwardPorts' to make a list of ports inside the container available locally. // "forwardPorts": [], - // Use 'postCreateCommand' to run commands after the container is created. - // "postCreateCommand": "terraform --version", + // This is needed to allow cloning repositories like the STM32 hal driver ones + "postCreateCommand": "git config --global safe.directory '*'" // Uncomment to connect as a non-root user. See https: //aka.ms/vscode-remote/containers/non-root. // ,"remoteUser": "vscode" } diff --git a/.devcontainer/AzureRTOS/Dockerfile.AzureRTOS b/.devcontainer/AzureRTOS/Dockerfile.AzureRTOS index eb0c234415..b701faac63 100644 --- a/.devcontainer/AzureRTOS/Dockerfile.AzureRTOS +++ b/.devcontainer/AzureRTOS/Dockerfile.AzureRTOS @@ -1 +1 @@ -FROM ghcr.io/nanoframework/dev-container-azure-rtos:v1.31 +FROM ghcr.io/nanoframework/dev-container-azure-rtos:v1.32 diff --git a/.devcontainer/AzureRTOS/devcontainer.json b/.devcontainer/AzureRTOS/devcontainer.json index 3d99e0e14b..2f0772841b 100644 --- a/.devcontainer/AzureRTOS/devcontainer.json +++ b/.devcontainer/AzureRTOS/devcontainer.json @@ -36,13 +36,13 @@ "xaver.clang-format" ] } - } + }, // You can pull all the repos with the latest changes, this is only valid if you are using the ./sources/Dockerfile.All containers // "postAttachCommand": "/usr/local/git-pull-repos.sh" // Use 'forwardPorts' to make a list of ports inside the container available locally. // "forwardPorts": [], - // Use 'postCreateCommand' to run commands after the container is created. - // "postCreateCommand": "terraform --version", + // This is needed to allow cloning repositories like the STM32 hal driver ones + "postCreateCommand": "git config --global safe.directory '*'" // Uncomment to connect as a non-root user. See https: //aka.ms/vscode-remote/containers/non-root. // ,"remoteUser": "vscode" } diff --git a/.devcontainer/ChibiOS/Dockerfile.ChibiOS b/.devcontainer/ChibiOS/Dockerfile.ChibiOS index 9e61290c4f..d8dc9ff90f 100644 --- a/.devcontainer/ChibiOS/Dockerfile.ChibiOS +++ b/.devcontainer/ChibiOS/Dockerfile.ChibiOS @@ -1 +1 @@ -FROM ghcr.io/nanoframework/dev-container-chibios:v1.32 +FROM ghcr.io/nanoframework/dev-container-chibios:v1.33 diff --git a/.devcontainer/ChibiOS/devcontainer.json b/.devcontainer/ChibiOS/devcontainer.json index 27f71f2f7f..af40fa922d 100644 --- a/.devcontainer/ChibiOS/devcontainer.json +++ b/.devcontainer/ChibiOS/devcontainer.json @@ -36,13 +36,14 @@ "xaver.clang-format" ] } - } + }, // You can pull all the repos with the latest changes, this is only valid if you are using the ./sources/Dockerfile.All containers // "postAttachCommand": "/usr/local/git-pull-repos.sh" // Use 'forwardPorts' to make a list of ports inside the container available locally. - // "forwardPorts": [], + // "forwardPorts": [], // Use 'postCreateCommand' to run commands after the container is created. - // "postCreateCommand": "terraform --version", + // This is needed to allow cloning repositories like the STM32 hal driver ones + "postCreateCommand": "git config --global safe.directory '*'" // Uncomment to connect as a non-root user. See https: //aka.ms/vscode-remote/containers/non-root. // ,"remoteUser": "vscode" } diff --git a/.devcontainer/ESP32/Dockerfile.ESP32 b/.devcontainer/ESP32/Dockerfile.ESP32 index 7f556feeb2..8269826ac5 100644 --- a/.devcontainer/ESP32/Dockerfile.ESP32 +++ b/.devcontainer/ESP32/Dockerfile.ESP32 @@ -1 +1 @@ -FROM ghcr.io/nanoframework/dev-container-esp32:v2.34 +FROM ghcr.io/nanoframework/dev-container-esp32:v2.35 diff --git a/.devcontainer/ESP32/devcontainer.json b/.devcontainer/ESP32/devcontainer.json index 987eac7827..2572e79d69 100644 --- a/.devcontainer/ESP32/devcontainer.json +++ b/.devcontainer/ESP32/devcontainer.json @@ -36,13 +36,13 @@ "xaver.clang-format" ] } - } + }, // You can pull all the repos with the latest changes, this is only valid if you are using the ./sources/Dockerfile.All containers // "postAttachCommand": "/usr/local/git-pull-repos.sh" // Use 'forwardPorts' to make a list of ports inside the container available locally. // "forwardPorts": [], - // Use 'postCreateCommand' to run commands after the container is created. - // "postCreateCommand": "terraform --version", + // This is needed to allow cloning repositories like the STM32 hal driver ones + "postCreateCommand": "git config --global safe.directory '*'" // Uncomment to connect as a non-root user. See https: //aka.ms/vscode-remote/containers/non-root. // ,"remoteUser": "vscode" } diff --git a/.devcontainer/FreeRTOS-NXP/Dockerfile.FreeRTOS-NXP b/.devcontainer/FreeRTOS-NXP/Dockerfile.FreeRTOS-NXP index 419005ad34..62ef405149 100644 --- a/.devcontainer/FreeRTOS-NXP/Dockerfile.FreeRTOS-NXP +++ b/.devcontainer/FreeRTOS-NXP/Dockerfile.FreeRTOS-NXP @@ -1 +1 @@ -FROM ghcr.io/nanoframework/dev-container-freertos-nxp:v1.04 +FROM ghcr.io/nanoframework/dev-container-freertos-nxp:v1.05 diff --git a/.devcontainer/FreeRTOS-NXP/devcontainer.json b/.devcontainer/FreeRTOS-NXP/devcontainer.json index 7be0828ab6..38422669e8 100644 --- a/.devcontainer/FreeRTOS-NXP/devcontainer.json +++ b/.devcontainer/FreeRTOS-NXP/devcontainer.json @@ -36,13 +36,13 @@ "xaver.clang-format" ] } - } + }, // You can pull all the repos with the latest changes, this is only valid if you are using the ./sources/Dockerfile.All containers // "postAttachCommand": "/usr/local/git-pull-repos.sh" // Use 'forwardPorts' to make a list of ports inside the container available locally. // "forwardPorts": [], - // Use 'postCreateCommand' to run commands after the container is created. - // "postCreateCommand": "terraform --version", + // This is needed to allow cloning repositories like the STM32 hal driver ones + "postCreateCommand": "git config --global safe.directory '*'" // Uncomment to connect as a non-root user. See https: //aka.ms/vscode-remote/containers/non-root. // ,"remoteUser": "vscode" } diff --git a/.devcontainer/TI/Dockerfile.TI b/.devcontainer/TI/Dockerfile.TI index f9b647eeb8..030c60aa4f 100644 --- a/.devcontainer/TI/Dockerfile.TI +++ b/.devcontainer/TI/Dockerfile.TI @@ -1 +1 @@ -FROM ghcr.io/nanoframework/dev-container-ti:v1.25 +FROM ghcr.io/nanoframework/dev-container-ti:v1.26 diff --git a/.devcontainer/TI/devcontainer.json b/.devcontainer/TI/devcontainer.json index 7aa3122ef3..cfd9d5530d 100644 --- a/.devcontainer/TI/devcontainer.json +++ b/.devcontainer/TI/devcontainer.json @@ -36,13 +36,13 @@ "xaver.clang-format" ] } - } + }, // You can pull all the repos with the latest changes, this is only valid if you are using the ./sources/Dockerfile.All containers // "postAttachCommand": "/usr/local/git-pull-repos.sh" // Use 'forwardPorts' to make a list of ports inside the container available locally. // "forwardPorts": [], - // Use 'postCreateCommand' to run commands after the container is created. - // "postCreateCommand": "terraform --version", + // This is needed to allow cloning repositories like the STM32 hal driver ones + "postCreateCommand": "git config --global safe.directory '*'" // Uncomment to connect as a non-root user. See https: //aka.ms/vscode-remote/containers/non-root. // ,"remoteUser": "vscode" }