Skip to content

Commit f44c6b1

Browse files
authored
docs(bb): How to use docker_interactive.sh (AztecProtocol#4220)
1 parent 1858126 commit f44c6b1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

barretenberg/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,3 +249,15 @@ CI will automatically run integration tests against Aztec. The tests in `circuit
249249
CI will automatically run integration tests against Aztec's circuits which live [here](https://github.com/AztecProtocol/aztec-packages/tree/master/circuits). To change which Aztec branch or commit for CI to test against, modify [`.aztec-packages-commit`](./cpp/.aztec-packages-commit).
250250

251251
When working on a PR, you may want to point this file to a different Aztec branch or commit, but then it should probably be pointed back to master before merging.
252+
253+
### Testing locally in docker
254+
255+
A common issue that arises is that our CI system has a different compiler version e.g. namely for GCC. If you need to mimic the CI operating system locally you can use bootstrap_docker.sh or run dockerfiles directly. However, there is a more efficient workflow for iterative development:
256+
257+
```
258+
cd barretenberg/cpp
259+
./scripts/docker_interactive.sh
260+
mv build build-native # your native build folders are mounted, but will not work! have to clear them
261+
cmake --preset gcc ; cmake --build build
262+
```
263+
This will allow you to rebuild as efficiently as if you were running native code, and not have to see a full compile cycle.

0 commit comments

Comments
 (0)