File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 44# that running the image will execute benchmarks with a "warm cache". For
55# example:
66#
7- # docker build --build-arg ALCHEMY_API_KEY =... -t sim .
7+ # docker build --build-arg ETH_RPC_URL =... -t sim .
88# docker run sim benchmark-hardhat
99#
1010# BEWARE: This image should not be published because it will contain traces of
1414
1515FROM debian
1616
17- ARG ALCHEMY_API_KEY
17+ ARG ETH_RPC_URL
1818
19- RUN if [ -z "${ALCHEMY_API_KEY }" ]; then \
20- echo build argument ALCHEMY_API_KEY required; \
19+ RUN if [ -z "${ETH_RPC_URL }" ]; then \
20+ echo build argument ETH_RPC_URL required; \
2121 exit 1; \
2222 fi && \
2323 apt-get update && \
@@ -43,7 +43,7 @@ WORKDIR convex-shutdown-simulation
4343
4444RUN yarn && \
4545 cp .env.example .env && \
46- sed -i "s!yourAlchemyApiKey!${ALCHEMY_API_KEY }!" .env && \
46+ sed -i "s!ETH_RPC_URL=.*!ETH_RPC_URL=${ETH_RPC_URL }!" .env && \
4747 curl -L https://raw.githubusercontent.com/gakonst/foundry/master/foundryup/install | bash
4848# Don't combine these sequential RUN commands because we need fresh shell
4949# instances in order for each install script to take effect.
You can’t perform that action at this time.
0 commit comments