File tree Expand file tree Collapse file tree 4 files changed +24
-56
lines changed Expand file tree Collapse file tree 4 files changed +24
-56
lines changed Original file line number Diff line number Diff line change @@ -6,58 +6,12 @@ This repository contains [Dev Container Features](https://containers.dev/impleme
66
77This 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
Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 1010
1111apt 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
Original file line number Diff line number Diff line change 1212
1313apt 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
You can’t perform that action at this time.
0 commit comments