Configure .devcontainer to download primer/css on post-create
MODIFY
.devcontainer/devcontainer.json
.devcontainer/devcontainer.json
"wingrunr21.vscode-ruby",
"mutantdino.resourcemonitor"
],
- "forwardPorts": [4000, 5000, 5400],
- "appPort": [4000, 5000, 5400],
+ "forwardPorts": [
+ 4000,
+ 5000,
+ 5400
+ ],
+ "appPort": [
+ 4000,
+ 5000,
+ 5400
+ ],
"portsAttributes": {
"4000": {
"label": "web"
"5400": {
"label": "doctocat"
}
+ },
+ "codespaces": {
+ "repositories": [
+ {
+ "name": "primer/css",
+ "permissions": {
+ "contents": "read",
+ }
+ }
+ ]
}
}
\ No newline at end of file

MODIFY
.devcontainer/post-create-command.sh
.devcontainer/post-create-command.sh
sudo cp --force .devcontainer/welcome-message.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt
script/setup
+
+script_folder="$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)"
+workspaces_folder="$(cd "${script_folder}/.." && pwd)"
+
+cd "${workspaces_folder}"
+if [ ! -d "$1" ]; then
+ git clone "https://github.com/primer/css"
+else
+ echo "Already cloned $1"
+fi

Configure .devcontainer to download primer/css on post-create (#1089)