Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing git config for cloning repos in dev containers #3047

Merged
merged 2 commits into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 '*'"
Ellerbach marked this conversation as resolved.
Show resolved Hide resolved
// 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"
}
Loading