Skip to content

Commit

Permalink
chore: enable both roles local chain node and contracts deploy side j…
Browse files Browse the repository at this point in the history
…ob (#249)
  • Loading branch information
Иван Vandot authored Apr 12, 2024
1 parent 2c95699 commit 900b367
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 0 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,4 @@ WORKDIR /app

COPY --from=build /app .

RUN ln -s /app/docker/deploy.sh /app/deploy.sh

CMD ["sh", "-c", "/app/docker/deploy.sh"]
13 changes: 13 additions & 0 deletions docker/deploy-contracts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env sh

set -x
while ! curl -m 1 http://geth-swap:8545; do sleep 1; done
echo connected to geth >&2
sleep 2

npx hardhat deploy --network localcluster

cd ./s3
npx hardhat deploy --network localcluster

echo deployed

0 comments on commit 900b367

Please sign in to comment.