From 506641bc6a727e4f4051fe4190aaf15589f34070 Mon Sep 17 00:00:00 2001 From: Tom French <15848336+TomAFrench@users.noreply.github.com> Date: Wed, 29 Jan 2025 15:41:20 +0000 Subject: [PATCH] chore: update docs to use devcontainer feature (#7206) --- docs/docs/how_to/using-devcontainers.mdx | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/docs/docs/how_to/using-devcontainers.mdx b/docs/docs/how_to/using-devcontainers.mdx index 396db7e5d1a..4442f94dc4c 100644 --- a/docs/docs/how_to/using-devcontainers.mdx +++ b/docs/docs/how_to/using-devcontainers.mdx @@ -60,29 +60,15 @@ Github comes with a default codespace and you can use it to code your own devcon #### 3. Create a folder called `.devcontainer` in the root of your repository. -#### 4. Create a Dockerfile in that folder, and paste the following code: - -```docker -FROM --platform=linux/amd64 node:lts-bookworm-slim -SHELL ["/bin/bash", "-c"] -RUN apt update && apt install -y curl bash git tar gzip libc++-dev -RUN curl -L https://raw.githubusercontent.com/noir-lang/noirup/main/install | bash -ENV PATH="/root/.nargo/bin:$PATH" -RUN noirup -ENTRYPOINT ["nargo"] -``` -#### 5. Create a file called `devcontainer.json` in the same folder, and paste the following code: +#### 4. Create a file called `devcontainer.json` in the same folder, and paste the following code: ```json { "name": "Noir on Codespaces", - "build": { - "context": ".", - "dockerfile": "Dockerfile" - }, - "customizations": { - "vscode": { - "extensions": ["noir-lang.vscode-noir"] + "image": "mcr.microsoft.com/devcontainers/base:ubuntu", + "features": { + "ghcr.io/noir-lang/features/noir:latest": { + "version": "1.0.0-beta.1" } } }