Devcontainer allows you to develop in an isolated container with all required software pre-installed.
How to set up a devcontainer?
- Ensure Docker is installed and running
- Install vscode and
Dev Containers
extension - Install
code
cli tool: LaunchCommand Palette
and runInstall 'code' command in PATH
- Now open this project in vscode: in your Mac terminal run
code /path/to/project
- Start a devcontainer for the project: Launch
Command Palette
again and run eitherReopen in Container
orRebuild Container
.
-
Launch vscode terminal
-
Run lint and test
make lint make test
-
Run the following docker-compose command to start the service on
localhost:8080
make service-up