Skip to content

Commit

Permalink
chore: add devcontainer (#8220)
Browse files Browse the repository at this point in the history
This will allow developers to set up a dev environment in VSCode very
easily even in a web browser.

Signed-off-by: Ali Caglayan <[email protected]>
  • Loading branch information
Alizter authored Aug 2, 2023
1 parent 8a4da2f commit dfb6330
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "OCaml",
"image": "mcr.microsoft.com/devcontainers/base:bullseye",
"features": { "ghcr.io/avsm/ocaml-devcontainers-feature/ocaml:latest": {} },
"postCreateCommand": "opam init -ay --disable-sandboxing && sudo chown vscode _build && sudo apt-get update && make dev-switch && sudo apt install -y file npm",
"mounts": ["source=${localWorkspaceFolderBasename}-ocaml-build,target=${containerWorkspaceFolder}/_build,type=volume"],
"remoteUser": "vscode"
}

0 comments on commit dfb6330

Please sign in to comment.