2952d87f1d
* add a postCreateCommand to git-lfs Feature * debug passing locally but not in CI * update scenario * add GIT_LFS_SKIP_SMUDGE=1 to prevent fetching lfs arifacts in github actions * arguments should be booleans * move example repo to devcontainers org * place script literally anywhere other than /tmp
22 lines
874 B
JSON
22 lines
874 B
JSON
{
|
|
"autoPullEnabled": {
|
|
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
|
|
"initializeCommand": "(GIT_LFS_SKIP_SMUDGE=1 git clone https://github.com/devcontainers/git-lfs-example /tmp/testRepo-1 || true) && (cp -r /tmp/testRepo-1/.git* . && cp -r /tmp/testRepo-1/* .)",
|
|
"remoteUser": "vscode",
|
|
"features": {
|
|
"git-lfs": {
|
|
"autoPull": true
|
|
}
|
|
}
|
|
},
|
|
"autoPullDisabled": {
|
|
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
|
|
"initializeCommand": "(GIT_LFS_SKIP_SMUDGE=1 git clone https://github.com/devcontainers/git-lfs-example /tmp/testRepo-2 || true) && (cp -r /tmp/testRepo-2/.git* . && cp -r /tmp/testRepo-2/* .)",
|
|
"remoteUser": "vscode",
|
|
"features": {
|
|
"git-lfs": {
|
|
"autoPull": false
|
|
}
|
|
}
|
|
}
|
|
} |