27 lines
1.1 KiB
JSON
27 lines
1.1 KiB
JSON
{
|
|
"name": "Codespace to bootstrap valet in a Codespace",
|
|
//Use base codespace image then pull Valet on postCreateCommand,
|
|
"image": "mcr.microsoft.com/vscode/devcontainers/universal:linux",
|
|
"remoteUser": "codespace",
|
|
"overrideCommand": false,
|
|
"mounts": ["source=codespaces-linux-var-lib-docker,target=/var/lib/docker,type=volume"],
|
|
"runArgs": [
|
|
"--cap-add=SYS_PTRACE",
|
|
"--security-opt",
|
|
"seccomp=unconfined",
|
|
"--privileged",
|
|
"--init"
|
|
],
|
|
|
|
// Add the IDs of extensions you want installed when the container is created.
|
|
"extensions": [
|
|
"GitHub.vscode-pull-request-github",
|
|
"ms-vscode.azure-account",
|
|
"ms-vscode.azurecli",
|
|
"ms-azure-devops.azure-pipelines",
|
|
"ms-azuretools.vscode-docker",
|
|
"ms-vscode.powershell"
|
|
],
|
|
"postCreateCommand": "docker login ghcr.io/valet-customers --username ${GITHUB_USER} --password ${VALET_PASSWORD} && docker pull ghcr.io/valet-customers/valet-cli:latest && chmod +x ./valet/valet-update && chmod +x ./valet/valet && pwsh ./azure_devops/bootstrap/updateEnvs.ps1 -ghPAT ${VALET_PASSWORD} -azdoPAT ${AZDO_TOKEN} -org ${AZDO_ORG} -proj ${AZDO_PROJECT} || echo 'Could not auto-build. Skipping.' "
|
|
}
|