diff --git a/build_manifest.yml b/build_manifest.yml index b26e4e84d96..ae039cdc582 100644 --- a/build_manifest.yml +++ b/build_manifest.yml @@ -70,6 +70,7 @@ noir-projects: dependencies: - noir - avm-transpiler + - barretenberg-x86_64-linux-clang # Compiles all aztec noir projects using nargo and the avm-transpiler, then tests them using the TXE. noir-projects-tests: diff --git a/docs/docs/guides/smart_contracts/testing_contracts/index.md b/docs/docs/guides/smart_contracts/testing_contracts/index.md index cf20daa4569..4dd515a9c06 100644 --- a/docs/docs/guides/smart_contracts/testing_contracts/index.md +++ b/docs/docs/guides/smart_contracts/testing_contracts/index.md @@ -34,7 +34,17 @@ So to summarize: ### Running TXE -In order to use the TXE, it must be running on a known address. By default, TXE runs at `http://localhost:8080`. So you can run contracts tests with: +In order to use the TXE, it must be running on a known address. + +:::tip +If you have [the sandbox](../../../getting_started.md) installed, you can quickly deploy a TXE by running: + +`docker run --workdir /usr/src/yarn-project/txe/dest/bin --entrypoint node --name txe -p 8080:8080 aztecprotocol/aztec index.js` + +This will be improved in the future with a dedicated command. +::: + +By default, TXE runs at `http://localhost:8080`. Using `aztec-nargo`, contract tests can be run with: `aztec-nargo test --oracle-resolver http://host.docker.internal:8080` diff --git a/noir-projects/Dockerfile b/noir-projects/Dockerfile index 1a3e43e4abe..379fb297808 100644 --- a/noir-projects/Dockerfile +++ b/noir-projects/Dockerfile @@ -1,9 +1,12 @@ FROM aztecprotocol/noir as noir FROM aztecprotocol/avm-transpiler as transpiler +FROM --platform=linux/amd64 aztecprotocol/barretenberg-x86_64-linux-clang as barretenberg FROM ubuntu:lunar AS builder RUN apt-get update && apt-get install -y parallel nodejs npm RUN npm install --global yarn +# Copy in bb +COPY --from=barretenberg /usr/src/barretenberg/cpp/build/bin/bb /usr/src/barretenberg/cpp/build/bin/bb # Copy in nargo COPY --from=noir /usr/src/noir/noir-repo/target/release/nargo /usr/src/noir/noir-repo/target/release/nargo ENV PATH="/usr/src/noir/noir-repo/target/release:${PATH}"