Skip to content

Commit 9c106ad

Browse files
committed
setting hard dep
1 parent 816d93b commit 9c106ad

File tree

4 files changed

+24
-56
lines changed

4 files changed

+24
-56
lines changed

README.md

Lines changed: 3 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -6,58 +6,12 @@ This repository contains [Dev Container Features](https://containers.dev/impleme
66

77
This repository provides the following features:
88

9-
### 1. Nargo CLI (`nargo`)
10-
11-
Installs the Noir language compiler and toolchain.
12-
13-
- **ID**: `nargo`
14-
- **Description**: Installs the Nargo CLI tool and its installer `noirup`
15-
- **Options**:
16-
- `version`: The version of Nargo to install (default: `latest`, can be set to `nightly` or a specific version)
17-
18-
### 2. Barretenberg (`bb`)
19-
20-
Installs the Barretenberg prover backend for Noir.
21-
22-
- **ID**: `bb`
23-
- **Description**: Installs the Barretenberg CLI tool and its installer `bbup`
24-
- **Options**:
25-
- `version`: The version of Barretenberg to install (default: `nargo`, meaning it will match with an existing Nargo installation)
9+
- Nargo CLI and Noirup
10+
- BB CLI and BBup
2611

2712
## Usage
2813

29-
Add these features to your `devcontainer.json` file:
30-
31-
```json
32-
"features": {
33-
"ghcr.io/yourusername/feature-starter/nargo:1.0.0": {},
34-
"ghcr.io/yourusername/feature-starter/bb:1.0.0": {}
35-
}
36-
```
37-
38-
### Examples
39-
40-
Install the latest stable Nargo and Barretenberg:
41-
42-
```json
43-
"features": {
44-
"ghcr.io/signorecello/feature-starter/nargo:1.0.0": {},
45-
"ghcr.io/signorecello/feature-starter/bb:1.0.0": {}
46-
}
47-
```
48-
49-
Install the nightly version of Nargo and a specific version of Barretenberg:
50-
51-
```json
52-
"features": {
53-
"ghcr.io/signorecello/feature-starter/nargo:1.0.0": {
54-
"version": "nightly"
55-
},
56-
"ghcr.io/signorecello/feature-starter/bb:1.0.0": {
57-
"version": "0.80.0"
58-
}
59-
}
60-
```
14+
Check the READMEs in `src/barretenberg` and `src/noir` for usage instructions
6115

6216
## Development
6317

src/barretenberg/devcontainer-feature.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,7 @@
1010
"description": "The version of Barretenberg to install. Defaults to the latest Nargo compatible version."
1111
}
1212
},
13-
"installsAfter": ["./noir"]
13+
"dependsOn": {
14+
"ghcr.io/signorecello/noir-bb-devcontainer-feature/noir:1": {}
15+
}
1416
}

src/barretenberg/install.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ fi
1010

1111
apt update && apt install -y curl bash git tar gzip libc++-dev unzip jq
1212

13-
echo "curl -L https://raw.githubusercontent.com/AztecProtocol/aztec-packages/refs/heads/master/barretenberg/bbup/install | bash" >> /etc/profile.d/noir.sh
14-
echo "\$HOME/.bb/bbup ${VERSION}" >> /etc/profile.d/noir.sh
15-
echo "PATH=\$HOME/.bb/bin:$PATH" >> /etc/profile.d/noir.sh
13+
cat >> /etc/profile.d/noir.sh << EOF
14+
15+
curl -L https://raw.githubusercontent.com/AztecProtocol/aztec-packages/refs/heads/master/barretenberg/bbup/install | bash
16+
chmod +x /etc/profile.d/noir.sh
17+
18+
\$HOME/.bb/bbup ${VERSION}
19+
PATH=\$HOME/.bb/bin:\$PATH
20+
21+
EOF

src/noir/install.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ fi
1212

1313
apt update && apt install -y curl bash git tar gzip libc++-dev unzip jq
1414

15-
echo "curl -L https://raw.githubusercontent.com/noir-lang/noirup/refs/heads/main/install | bash" >> /etc/profile.d/noir.sh
16-
echo "\$HOME/.nargo/bin/noirup ${VERSION}" >> /etc/profile.d/noir.sh
17-
echo "PATH=\$HOME/.nargo/bin:$PATH" >> /etc/profile.d/noir.sh
15+
cat >> /etc/profile.d/noir.sh << EOF
16+
17+
curl -L https://raw.githubusercontent.com/noir-lang/noirup/refs/heads/main/install | bash
18+
chmod +x /etc/profile.d/noir.sh
19+
20+
\$HOME/.nargo/bin/noirup ${VERSION}
21+
PATH=\$HOME/.nargo/bin:\$PATH
22+
23+
EOF

0 commit comments

Comments
 (0)