From 012ad9f717e27ed95dcbb68ff3c8cb5dbd3ac87a Mon Sep 17 00:00:00 2001 From: Rami Lukata <32602478+rlukata@users.noreply.github.com> Date: Fri, 13 Dec 2024 11:09:55 -0800 Subject: [PATCH] Add fireblocks Dockerfile (#57) * fireblocks docker * double timeout and add fb to compose --- compose.yml | 15 +++++++++++++++ core/src/lib.rs | 2 +- dockerfiles/fireblocks.Dockerfile | 3 +++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 dockerfiles/fireblocks.Dockerfile diff --git a/compose.yml b/compose.yml index 3a48727..23d9bf3 100644 --- a/compose.yml +++ b/compose.yml @@ -12,6 +12,21 @@ services: - .env platform: linux/amd64 entrypoint: ["blobstream0", "service"] + depends_on: + fireblocks: + condition: service_started + + fireblocks: + container_name: fireblocks + build: + context: . + dockerfile: ./dockerfiles/fireblocks.Dockerfile + env_file: + - .env + ports: + - "8545:8545" + platform: linux/amd64 + entrypoint: ["fireblocks-json-rpc"] blobstream0-dev: container_name: blobstream0-dev diff --git a/core/src/lib.rs b/core/src/lib.rs index 5c93f86..f7a52ff 100644 --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -248,7 +248,7 @@ where update_tx .send() .await? - .with_timeout(Some(Duration::from_secs(60))) + .with_timeout(Some(Duration::from_secs(120))) .watch() .await?; diff --git a/dockerfiles/fireblocks.Dockerfile b/dockerfiles/fireblocks.Dockerfile new file mode 100644 index 0000000..5ced53c --- /dev/null +++ b/dockerfiles/fireblocks.Dockerfile @@ -0,0 +1,3 @@ +FROM node:20 +RUN npm install -g @fireblocks/fireblocks-json-rpc +ENTRYPOINT ["fireblocks-json-rpc"] \ No newline at end of file