-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Pawel Peregud
committed
Jan 26, 2024
1 parent
c9242b8
commit 774445e
Showing
13 changed files
with
426 additions
and
44 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
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM octant/contracts:latest as hardhat | ||
FROM octant/subgraph:latest as graph | ||
|
||
RUN apk add curl python3 bash | ||
|
||
WORKDIR /app | ||
|
||
RUN mkdir /hardhat/ | ||
COPY --from=hardhat /app/ /hardhat/ | ||
|
||
COPY --chmod=+x entrypoint.sh . | ||
COPY --chmod=+x wait_for_subgraph.sh . | ||
COPY --chmod=+x wait_for_graph_rpc.sh . | ||
COPY server.py /app/server.py | ||
|
||
ENTRYPOINT ["./entrypoint.sh"] |
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,21 @@ | ||
#!/usr/bin/env sh | ||
|
||
set -ueo pipefail | ||
|
||
export LOCAL_RPC_URL=${RPC_URL} | ||
export PORT=${PORT:-8546} | ||
|
||
wait_for_rpc(){ | ||
curl --retry-connrefused --retry 10 --retry-delay 1 \ | ||
-s -X POST "${RPC_URL}" \ | ||
-H "Content-Type: application/json" \ | ||
--data '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":1}' | ||
} | ||
|
||
echo "" | ||
echo "waiting for anvil RPC..." | ||
wait_for_rpc | ||
echo "" | ||
echo "anvil is ready!" | ||
|
||
python3 /app/server.py |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,16 @@ | ||
[tool.poetry] | ||
name = "multideployer" | ||
version = "0.1.0" | ||
description = "" | ||
authors = ["Pawel Peregud <[email protected]>"] | ||
readme = "README.md" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.10" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
black = "^23.12.1" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" |
Oops, something went wrong.