Skip to content

Commit

Permalink
Fixing git config for cloning repos in dev containers (#3047)
Browse files Browse the repository at this point in the history
Co-authored-by: José Simões <[email protected]>
  • Loading branch information
Ellerbach and josesimoes authored Dec 6, 2024
1 parent 538d5bc commit 429ba2c
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/All/Dockerfile.All
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM ghcr.io/nanoframework/dev-container-all:v2.54
FROM ghcr.io/nanoframework/dev-container-all:v2.55
6 changes: 3 additions & 3 deletions .devcontainer/All/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
2 changes: 1 addition & 1 deletion .devcontainer/AzureRTOS/Dockerfile.AzureRTOS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM ghcr.io/nanoframework/dev-container-azure-rtos:v1.31
FROM ghcr.io/nanoframework/dev-container-azure-rtos:v1.32
6 changes: 3 additions & 3 deletions .devcontainer/AzureRTOS/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
2 changes: 1 addition & 1 deletion .devcontainer/ChibiOS/Dockerfile.ChibiOS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM ghcr.io/nanoframework/dev-container-chibios:v1.32
FROM ghcr.io/nanoframework/dev-container-chibios:v1.33
7 changes: 4 additions & 3 deletions .devcontainer/ChibiOS/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
2 changes: 1 addition & 1 deletion .devcontainer/ESP32/Dockerfile.ESP32
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM ghcr.io/nanoframework/dev-container-esp32:v2.34
FROM ghcr.io/nanoframework/dev-container-esp32:v2.35
6 changes: 3 additions & 3 deletions .devcontainer/ESP32/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
2 changes: 1 addition & 1 deletion .devcontainer/FreeRTOS-NXP/Dockerfile.FreeRTOS-NXP
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM ghcr.io/nanoframework/dev-container-freertos-nxp:v1.04
FROM ghcr.io/nanoframework/dev-container-freertos-nxp:v1.05
6 changes: 3 additions & 3 deletions .devcontainer/FreeRTOS-NXP/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
2 changes: 1 addition & 1 deletion .devcontainer/TI/Dockerfile.TI
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM ghcr.io/nanoframework/dev-container-ti:v1.25
FROM ghcr.io/nanoframework/dev-container-ti:v1.26
6 changes: 3 additions & 3 deletions .devcontainer/TI/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit 429ba2c

Please sign in to comment.