Skip to content

Commit

Permalink
fix: pxe waits for node to go up (#6933)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexghr authored Jun 6, 2024
1 parent d3d6b9e commit 06f03fd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ services:
PXE_DATA_DIRECTORY: /var/lib/aztec/pxe
NODE_NO_WARNINGS: 1
AZTEC_PORT: 8080
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",
]
entrypoint: >
sh -c '
export AZTEC_NODE_URL=$$(cat /var/run/secrets/aztec-node-url);
while ! curl --head --silent $AZTEC_NODE_URL > /dev/null; do echo "Node $$AZTEC_NODE_URL not up. Retrying after 1s"; sleep 1; done;
node /usr/src/yarn-project/aztec/dest/bin/index.js start --pxe
'
secrets:
- aztec-node-url
extra_hosts:
Expand Down

0 comments on commit 06f03fd

Please sign in to comment.