This guide will walk you through the steps to set up and use the devcontainer configuration in this directory to start a VSCode devcontainer.
Note: This is confirmed working on Apple M series chips. Need to confirm it works on Intel but it should...
Before you begin, make sure you have the following installed/configured on your machine:
- Docker
- AWS Credentials (Make sure it is in the standard location)
To get started with the devcontainer, follow these steps:
-
Open Visual Studio Code.
-
If prompted, install the recommended extensions for the devcontainer.
-
Press
Ctrl+Shift+P
(orCmd+Shift+P
on macOS) to open the command palette. -
Type
Dev Containers: Reopen in Container
and selectdolma-container
from the list. -
Wait for the devcontainer to build and start. This may take a few minutes the first time you build the image.
-
Once the devcontainer is up and running, you can start working on your project inside the devcontainer.
-
Open a terminal within VSCode for all cli related tasks. (ie:
make test
) Simplest option isCtrl+Shift+P
(orCmd+Shift+P
on macOS) and selectTerminal: Create New Terminal
-
To run a profiler in the devcontainer, you'll need to add the line ' "runArgs": ["--privileged","--cap-add=SYS_ADMIN"] ' to devcontainer.json before building.
If you need to customize the devcontainer configuration, you can modify the .devcontainer/devcontainer.json
file in this directory. Refer to the VSCode Remote - Containers documentation for more information on configuring devcontainers. Just be selective about merging changes that might impact correctness across platforms/OS.
Happy hacking!