Created
November 4, 2021 05:23
-
-
Save takekazuomi/c497bcdcfcbd0c2d66771aada99c2aa3 to your computer and use it in GitHub Desktop.
container-app-demo devcontainer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | |
// https://github.com/microsoft/vscode-dev-containers/tree/v0.205.0/containers/dapr-dotnet | |
{ | |
"name": "container-app-demo", | |
"dockerFile": "Dockerfile", | |
"build": { | |
"args": { | |
"VARIANT":"5.0", | |
"INSTALL_AZURE_CLI": "true" | |
} | |
}, | |
"runArgs": [ | |
"--init", | |
"--privileged" | |
], | |
"mounts": [ | |
"source=dind-var-lib-docker,target=/var/lib/docker,type=volume" | |
], | |
"overrideCommand": false, | |
// Use this environment variable if you need to bind mount your local source code into a new container. | |
"remoteEnv": { | |
"LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}", | |
"PATH": "/home/vscode/.dapr/bin/:/home/vscode/.dotnet/tools:$PATH${containerEnv:PATH}", | |
"INVENTORY_SERVICE_NAME": "go-app", | |
"ORDER_SERVICE_NAME": "python-app" | |
}, | |
// Set *default* container specific settings.json values on container create. | |
"settings": {}, | |
// Add the IDs of extensions you want installed when the container is created. | |
"extensions": [ | |
"ms-azuretools.vscode-dapr", | |
"ms-azuretools.vscode-docker", | |
"golang.go", | |
"ms-azuretools.vscode-bicep", | |
"ms-python.python" | |
], | |
// Use 'forwardPorts' to make a list of ports inside the container available locally. | |
// "forwardPorts": [], | |
// Ensure Dapr is running on opening the container | |
"postCreateCommand": "dapr uninstall --all && dapr init && sed -i 's/statestore/orders/g' ${HOME}/.dapr/components/statestore.yaml", | |
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. | |
"remoteUser": "vscode" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment