From f5a4a7842fbf3d380ca946403c49f7734f1ca6e7 Mon Sep 17 00:00:00 2001 From: Charlie Lye Date: Mon, 8 Jan 2024 15:31:06 +0000 Subject: [PATCH] feat: Launch the monorepo in a codespace. (#3829) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This adds a `.devcontainer/devcontainer.json` file to the monorepo. This allows one to launch a codespace terminal from github in browser. The *expected* outcome of this would a codespace ready to go, for actually developing our monorepo. A little bit like what our mainframe offers. And I think it could well be worth configuring an image with all the right tools to support this. But that wasn't really the goal of this PR. This actually just installs the latest master containers into a minimal codespace, that allows a developer to unbox a project and run it against a sandbox etc. It just makes it a bit easier to test this flow directly in the monorepo. Hey. I ❤️ monorepo. --- .devcontainer/devcontainer.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000000..50354b2b570 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,17 @@ +{ + "image": "node:lts-bookworm-slim", + "features": { + "ghcr.io/devcontainers/features/docker-in-docker:2": {} + }, + "postCreateCommand": "curl -s install.aztec.network | VERSION=master NON_INTERACTIVE=1 BIN_PATH=/usr/local/bin bash -s", + "customizations": { + "vscode": { + "settings": {}, + "extensions": [ + "noir-lang.vscode-noir" + ] + } + }, + "workspaceMount": "source=${localWorkspaceFolder},target=/root/workspace,type=bind", + "workspaceFolder": "/root/workspace" +}