Skip to content

Commit e58957c

Browse files
committed
release image stuff
1 parent fd0c5aa commit e58957c

File tree

5 files changed

+16
-33
lines changed

5 files changed

+16
-33
lines changed

release-image/Dockerfile.dockerignore

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,24 @@
1+
# We include just what's needed to run the aztec cli (none of the aztec.sh extensions).
12
*
23
!/.release-please-manifest.json
3-
!/avm-transpiler/target/release/avm-transpiler
44
!/barretenberg/cpp/build/bin/bb-avm
55
!/barretenberg/ts/dest/
66
!/barretenberg/ts/build/
77
!/barretenberg/ts/package.json
88
!/noir/noir-repo/target/release/nargo
99
!/noir/noir-repo/target/release/acvm
10-
!/noir/noir-repo/target/release/noir-profiler
11-
!/noir-projects/noir-contracts/scripts/flamegraph.sh
12-
!/noir-projects/noir-contracts/scripts/extractFunctionAsNoirArtifact.js
13-
!/noir-projects/noir-contracts/scripts/strip_aztec_nr_prefix.sh
1410
!/noir/packages/
1511
!/yarn-project/package.json
1612
!/yarn-project/yarn.lock
1713
!/yarn-project/*/package.json
1814
!/yarn-project/*/dest/
19-
!/yarn-project/cli-wallet/wallet-entrypoint.sh
20-
!/yarn-project/accounts/artifacts/
2115
!/yarn-project/cli/public_include_metric_prefixes.json
16+
!/yarn-project/accounts/artifacts/
2217
!/yarn-project/bb-prover/artifacts/
2318
!/yarn-project/noir-protocol-circuits-types/artifacts/
2419
!/yarn-project/protocol-contracts/artifacts/
2520
!/yarn-project/noir-contracts.js/artifacts/
26-
!/yarn-project/native/build/
21+
!/yarn-project/simulator/artifacts/
2722

2823
### Start foundry / l1-contracts files
2924

@@ -55,7 +50,3 @@
5550
!/l1-contracts/lib/**/foundry.toml
5651
!/l1-contracts/lib/**/*.sol
5752
### End foundry / l1-contracts files
58-
59-
60-
# Needed to generate list of env vars to know what to be able to inject into the container.
61-
!/yarn-project/foundation/src/config/env_var.ts

release-image/bootstrap.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ function build {
4040
denoise "build_image"
4141
}
4242

43+
function test_cmds {
44+
# Very simple sanity test.
45+
echo "$hash docker run --rm aztecprotocol/aztec --version"
46+
}
47+
4348
function release {
4449
echo_header "release-image release"
4550

yarn-project/aztec/scripts/aztec.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ function aztec {
1010
cmd=${1:-}
1111
[ -n "$cmd" ] && shift
1212

13+
export AZTEC_SHELL_WRAPPER=1
14+
1315
case $cmd in
1416
test)
1517
export LOG_LEVEL="${LOG_LEVEL:-info}"

yarn-project/aztec/src/cli/cli.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ export function injectAztecCommands(program: Command, userLog: LogFn, debugLogge
3131

3232
program.configureHelp({ sortSubcommands: true });
3333

34-
program.addHelpText(
35-
'after',
36-
`
34+
if (process.env.AZTEC_SHELL_WRAPPER) {
35+
program.addHelpText(
36+
'after',
37+
`
3738
3839
Additional commands:
3940
@@ -73,7 +74,8 @@ export function injectAztecCommands(program: Command, userLog: LogFn, debugLogge
7374
Example:
7475
$ aztec preload-crs # preloads CRS data
7576
`,
76-
);
77+
);
78+
}
7779

7880
program
7981
.command('preload-crs')

yarn-project/cli-wallet/wallet-entrypoint.sh

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)