-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds a docker compose running a PXE against a node ``` $ export AZTEC_NODE_URL=... $ docker compose up -d # starts the pxe in the background $ docker compose run cli create-account ```
- Loading branch information
Showing
4 changed files
with
56 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: aztec-devnet | ||
services: | ||
pxe: | ||
image: aztecprotocol/aztec:${AZTEC_DOCKER_TAG:-latest} | ||
environment: | ||
LOG_LEVEL: info | ||
DEBUG: aztec:* | ||
DEBUG_COLORS: 1 | ||
CHAIN_ID: 31337 | ||
VERSION: 1 | ||
PXE_PROVER_ENABLED: ${PXE_PROVER_ENABLED:-1} | ||
NODE_NO_WARNINGS: 1 | ||
entrypoint: | ||
[ | ||
"/bin/sh", | ||
"-c", | ||
"export AZTEC_NODE_URL=$$(cat /var/run/secrets/aztec-node-url); node /usr/src/yarn-project/aztec/dest/bin/index.js start --pxe", | ||
] | ||
secrets: | ||
- aztec-node-url | ||
extra_hosts: | ||
- "host.docker.internal:host-gateway" | ||
cli: | ||
image: aztecprotocol/aztec:${AZTEC_DOCKER_TAG:-latest} | ||
environment: | ||
PXE_URL: http://pxe:8080 | ||
NODE_NO_WARNINGS: 1 | ||
PRIVATE_KEY: | ||
entrypoint: ["node", "/usr/src/yarn-project/cli/dest/bin/index.js"] | ||
profiles: | ||
- cli | ||
|
||
secrets: | ||
aztec-node-url: | ||
environment: AZTEC_NODE_URL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
FROM aztecprotocol/yarn-project AS yarn-project | ||
# ENV vars for using native ACVM simulation | ||
ENV ACVM_BINARY_PATH="/usr/src/noir/noir-repo/target/release/acvm" ACVM_WORKING_DIRECTORY="/tmp/acvm" | ||
ENV BB_BINARY_PATH=/usr/src/barretenberg/cpp/build/bin/bb | ||
ENV BB_WORKING_DIRECTORY=/usr/src/yarn-project/bb | ||
ENV ACVM_BINARY_PATH=/usr/src/noir/noir-repo/target/release/acvm | ||
ENV ACVM_WORKING_DIRECTORY=/usr/src/yarn-project/acvm | ||
RUN mkdir -p $BB_WORKING_DIRECTORY $ACVM_WORKING_DIRECTORY | ||
ENTRYPOINT ["node", "--no-warnings", "/usr/src/yarn-project/aztec/dest/bin/index.js"] | ||
EXPOSE 8080 | ||
|
||
# The version has been updated in yarn-project. | ||
# Adding COMMIT_TAG here to rebuild versioned image. | ||
ARG COMMIT_TAG="" | ||
ARG COMMIT_TAG="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters