-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from bobanetwork/souradeep/zkRand_ops
feat: add docker images for services
- Loading branch information
Showing
6 changed files
with
189 additions
and
0 deletions.
There are no files selected for viewing
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
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,108 @@ | ||
version: '3' | ||
|
||
services: | ||
admin: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.admin | ||
container_name: admin_service | ||
environment: | ||
- L2_NODE_WEB3_URL: "https://sepolia.boba.network" | ||
- POLLING_INTERVAL: 12000 | ||
- ZK_RAND_ADDRESS: "0xd688cFE3EC08d893E9A3b76f12113e1ef762f53A" | ||
- ADMIN_PRIVATE_KEY: "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" | ||
- NODE_ONE_ADDRESS: "0x70997970c51812dc3a010c7d01b50e0d17dc79c8" | ||
- NODE_TWO_ADDRESS: "0x3c44cdddb6a900fa2b585dd299e03d12fa4293bc" | ||
- NODE_THREE_ADDRESS: "0x90f79bf6eb2c4f870365e785982e1f101e93b906" | ||
- NODE_FOUR_ADDRESS: "0x15d34aaf54267db7d7c367839aaf71a00a2c6a65" | ||
- NODE_FIVE_ADDRESS: "0x9965507d1a55bcc2695c58ba16fb37d819b0a4dc" | ||
|
||
nodeOne: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.node | ||
container_name: node_service | ||
environment: | ||
- L2_NODE_WEB3_URL: "https://sepolia.boba.network" | ||
- POLLING_INTERVAL: 12000 | ||
- ZK_RAND_ADDRESS: "0xd688cFE3EC08d893E9A3b76f12113e1ef762f53A" | ||
- NODE_PRIVATE_KEY: "0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d" | ||
- NODE_ONE_ADDRESS: "0x70997970c51812dc3a010c7d01b50e0d17dc79c8" | ||
- NODE_TWO_ADDRESS: "0x3c44cdddb6a900fa2b585dd299e03d12fa4293bc" | ||
- NODE_THREE_ADDRESS: "0x90f79bf6eb2c4f870365e785982e1f101e93b906" | ||
- NODE_FOUR_ADDRESS: "0x15d34aaf54267db7d7c367839aaf71a00a2c6a65" | ||
- NODE_FIVE_ADDRESS: "0x9965507d1a55bcc2695c58ba16fb37d819b0a4dc" | ||
depends_on: | ||
- admin | ||
|
||
nodeTwo: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.node | ||
container_name: node_service | ||
environment: | ||
- L2_NODE_WEB3_URL: "https://sepolia.boba.network" | ||
- POLLING_INTERVAL: 12000 | ||
- ZK_RAND_ADDRESS: "0xd688cFE3EC08d893E9A3b76f12113e1ef762f53A" | ||
- NODE_PRIVATE_KEY: "0x5de4111afa1a4b94908f83103eb1f1706367c2e68ca870fc3fb9a804cdab365a" | ||
- NODE_ONE_ADDRESS: "0x70997970c51812dc3a010c7d01b50e0d17dc79c8" | ||
- NODE_TWO_ADDRESS: "0x3c44cdddb6a900fa2b585dd299e03d12fa4293bc" | ||
- NODE_THREE_ADDRESS: "0x90f79bf6eb2c4f870365e785982e1f101e93b906" | ||
- NODE_FOUR_ADDRESS: "0x15d34aaf54267db7d7c367839aaf71a00a2c6a65" | ||
- NODE_FIVE_ADDRESS: "0x9965507d1a55bcc2695c58ba16fb37d819b0a4dc" | ||
depends_on: | ||
- admin | ||
|
||
nodeThree: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.node | ||
container_name: node_service | ||
environment: | ||
- L2_NODE_WEB3_URL: "https://sepolia.boba.network" | ||
- POLLING_INTERVAL: 12000 | ||
- ZK_RAND_ADDRESS: "0xd688cFE3EC08d893E9A3b76f12113e1ef762f53A" | ||
- NODE_PRIVATE_KEY: "0x7c852118294e51e653712a81e05800f419141751be58f605c371e15141b007a6" | ||
- NODE_ONE_ADDRESS: "0x70997970c51812dc3a010c7d01b50e0d17dc79c8" | ||
- NODE_TWO_ADDRESS: "0x3c44cdddb6a900fa2b585dd299e03d12fa4293bc" | ||
- NODE_THREE_ADDRESS: "0x90f79bf6eb2c4f870365e785982e1f101e93b906" | ||
- NODE_FOUR_ADDRESS: "0x15d34aaf54267db7d7c367839aaf71a00a2c6a65" | ||
- NODE_FIVE_ADDRESS: "0x9965507d1a55bcc2695c58ba16fb37d819b0a4dc" | ||
depends_on: | ||
- admin | ||
|
||
nodeFour: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.node | ||
container_name: node_service | ||
environment: | ||
- L2_NODE_WEB3_URL: "https://sepolia.boba.network" | ||
- POLLING_INTERVAL: 12000 | ||
- ZK_RAND_ADDRESS: "0xd688cFE3EC08d893E9A3b76f12113e1ef762f53A" | ||
- NODE_PRIVATE_KEY: "0x47e179ec197488593b187f80a00eb0da91f1b9d0b13f8733639f19c30a34926a" | ||
- NODE_ONE_ADDRESS: "0x70997970c51812dc3a010c7d01b50e0d17dc79c8" | ||
- NODE_TWO_ADDRESS: "0x3c44cdddb6a900fa2b585dd299e03d12fa4293bc" | ||
- NODE_THREE_ADDRESS: "0x90f79bf6eb2c4f870365e785982e1f101e93b906" | ||
- NODE_FOUR_ADDRESS: "0x15d34aaf54267db7d7c367839aaf71a00a2c6a65" | ||
- NODE_FIVE_ADDRESS: "0x9965507d1a55bcc2695c58ba16fb37d819b0a4dc" | ||
depends_on: | ||
- admin | ||
|
||
nodeFive: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.node | ||
container_name: node_service | ||
environment: | ||
- L2_NODE_WEB3_URL: "https://sepolia.boba.network" | ||
- POLLING_INTERVAL: 12000 | ||
- ZK_RAND_ADDRESS: "0xd688cFE3EC08d893E9A3b76f12113e1ef762f53A" | ||
- NODE_PRIVATE_KEY: "0x8b3a350cf5c34c9194ca85829a2df0ec3153be0318b5e2d3348e872092edffba" | ||
- NODE_ONE_ADDRESS: "0x70997970c51812dc3a010c7d01b50e0d17dc79c8" | ||
- NODE_TWO_ADDRESS: "0x3c44cdddb6a900fa2b585dd299e03d12fa4293bc" | ||
- NODE_THREE_ADDRESS: "0x90f79bf6eb2c4f870365e785982e1f101e93b906" | ||
- NODE_FOUR_ADDRESS: "0x15d34aaf54267db7d7c367839aaf71a00a2c6a65" | ||
- NODE_FIVE_ADDRESS: "0x9965507d1a55bcc2695c58ba16fb37d819b0a4dc" | ||
depends_on: | ||
- admin |
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,39 @@ | ||
FROM node:20 | ||
|
||
RUN apt-get update && apt-get install -y curl \ | ||
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \ | ||
&& echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> $HOME/.bashrc | ||
|
||
RUN apt-get install -y \ | ||
llvm \ | ||
clang \ | ||
libclang-dev \ | ||
axel | ||
|
||
ENV LIBCLANG_PATH=/usr/lib/llvm-14/lib | ||
|
||
COPY ./package.json . | ||
RUN yarn install | ||
|
||
COPY ./contracts ./contracts | ||
COPY ./hardhat.config.ts . | ||
RUN yarn run build | ||
|
||
COPY ./Cargo.toml . | ||
COPY ./Cargo.lock . | ||
COPY ./bin ./bin | ||
COPY ./benches ./benches | ||
COPY ./src ./src | ||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
RUN cargo build --release | ||
|
||
COPY download_params.sh . | ||
RUN chmod +x download_params.sh | ||
RUN ./download_params.sh | ||
|
||
COPY ./data ./data | ||
RUN RUST_LOG=info ./target/release/client setup -s | ||
|
||
COPY ./tsconfig.json . | ||
COPY ./services ./services | ||
CMD ["yarn", "run", "services:admin"] |
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,39 @@ | ||
FROM node:20 | ||
|
||
RUN apt-get update && apt-get install -y curl \ | ||
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \ | ||
&& echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> $HOME/.bashrc | ||
|
||
RUN apt-get install -y \ | ||
llvm \ | ||
clang \ | ||
libclang-dev \ | ||
axel | ||
|
||
ENV LIBCLANG_PATH=/usr/lib/llvm-14/lib | ||
|
||
COPY ./package.json . | ||
RUN yarn install | ||
|
||
COPY ./contracts ./contracts | ||
COPY ./hardhat.config.ts . | ||
RUN yarn run build | ||
|
||
COPY ./Cargo.toml . | ||
COPY ./Cargo.lock . | ||
COPY ./bin ./bin | ||
COPY ./benches ./benches | ||
COPY ./src ./src | ||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
RUN cargo build --release | ||
|
||
COPY download_params.sh . | ||
RUN chmod +x download_params.sh | ||
RUN ./download_params.sh | ||
|
||
COPY ./data ./data | ||
RUN RUST_LOG=info ./target/release/client setup -s | ||
|
||
COPY ./tsconfig.json . | ||
COPY ./services ./services | ||
CMD ["yarn", "run", "services:node"] |
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