Developing Dapr applications with remote dev containers
How to setup a remote dev container environment with Dapr
The Visual Studio Code Remote Containers extension lets you use a Docker container as a full-featured development environment without installing any additional frameworks or packages to your local filesystem.
Dapr has pre-built Docker remote containers for NodeJS and C#. You can pick the one of your choice for a ready made environment. Note these pre-built containers automatically update to the latest Dapr release.
Setup a remote dev container
Prerequisites
Create remote Dapr container
- Open your application workspace in VS Code
- In the command command palette (
CTRL+SHIFT+P
) type and selectRemote-Containers: Add Development Container Configuration Files...
- Type
dapr
to filter the list to available Dapr remote containers and choose the language container that matches your application. Note you may need to selectShow All Definitions...
- Follow the prompts to rebuild your application in container.
Example
Watch this video on how to use the Dapr VS Code Remote Containers with your application.
Last modified August 2, 2021 : Fix Java SDK link (#1695) (2c67fd1)