From 900b367c250dbcbbe4fc14e63a7bb155bab10502 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD=20Vandot?= Date: Fri, 12 Apr 2024 19:46:44 +0200 Subject: [PATCH] chore: enable both roles local chain node and contracts deploy side job (#249) --- docker/Dockerfile | 2 -- docker/deploy-contracts.sh | 13 +++++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100755 docker/deploy-contracts.sh diff --git a/docker/Dockerfile b/docker/Dockerfile index 34f74d14..ea55185a 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -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"] diff --git a/docker/deploy-contracts.sh b/docker/deploy-contracts.sh new file mode 100755 index 00000000..18adbe12 --- /dev/null +++ b/docker/deploy-contracts.sh @@ -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