Skip to content

Commit 33435fb

Browse files
feuGeneAmds1
authored andcommitted
Parameterize ETH_RPC_URL, not ALCHEMY_API_URL
Addresses review comment #5 (comment)
1 parent ab4b10a commit 33435fb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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
@@ -14,10 +14,10 @@
1414

1515
FROM 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

4444
RUN 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.

0 commit comments

Comments
 (0)