From f1cbec41baff3bbbdd895b7f2e46a4b5c3e400a7 Mon Sep 17 00:00:00 2001 From: Nathan Klick Date: Thu, 21 Nov 2024 23:16:46 -0600 Subject: [PATCH] feat: update production container image to support block streams Signed-off-by: Nathan Klick --- .../java/com/hedera/node/config/data/BlockStreamConfig.java | 2 +- .../docker/containers/production/network-node-base/Dockerfile | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hedera-node/hedera-config/src/main/java/com/hedera/node/config/data/BlockStreamConfig.java b/hedera-node/hedera-config/src/main/java/com/hedera/node/config/data/BlockStreamConfig.java index 5a685592471d..b880d5692247 100644 --- a/hedera-node/hedera-config/src/main/java/com/hedera/node/config/data/BlockStreamConfig.java +++ b/hedera-node/hedera-config/src/main/java/com/hedera/node/config/data/BlockStreamConfig.java @@ -34,7 +34,7 @@ public record BlockStreamConfig( @ConfigProperty(defaultValue = "BOTH") @NetworkProperty StreamMode streamMode, @ConfigProperty(defaultValue = "FILE") @NodeProperty BlockStreamWriterMode writerMode, - @ConfigProperty(defaultValue = "data/block-streams") @NodeProperty String blockFileDir, + @ConfigProperty(defaultValue = "/opt/hgcapp/blockStreams") @NodeProperty String blockFileDir, @ConfigProperty(defaultValue = "true") @NetworkProperty boolean compressFilesOnCreation, @ConfigProperty(defaultValue = "32") @NetworkProperty int serializationBatchSize, @ConfigProperty(defaultValue = "32") @NetworkProperty int hashCombineBatchSize, diff --git a/hedera-node/infrastructure/docker/containers/production/network-node-base/Dockerfile b/hedera-node/infrastructure/docker/containers/production/network-node-base/Dockerfile index bdc0a1c60c9c..968174047920 100644 --- a/hedera-node/infrastructure/docker/containers/production/network-node-base/Dockerfile +++ b/hedera-node/infrastructure/docker/containers/production/network-node-base/Dockerfile @@ -93,6 +93,7 @@ RUN mkdir -p "/opt/hgcapp" && \ mkdir -p "/opt/hgcapp/accountBalances" && \ mkdir -p "/opt/hgcapp/eventsStreams" && \ mkdir -p "/opt/hgcapp/recordStreams" && \ + mkdir -p "/opt/hgcapp/blockStreams" && \ mkdir -p "/opt/hgcapp/services-hedera" && \ mkdir -p "/opt/hgcapp/services-hedera/HapiApp2.0" && \ mkdir -p "/opt/hgcapp/services-hedera/HapiApp2.0/data" && \ @@ -122,6 +123,7 @@ RUN chmod +rx /usr/local/bin/wait-for VOLUME "/opt/hgcapp/accountBalances" VOLUME "/opt/hgcapp/eventsStreams" VOLUME "/opt/hgcapp/recordStreams" +VOLUME "/opt/hgcapp/blockStreams" VOLUME "/opt/hgcapp/services-hedera/HapiApp2.0/data/config" VOLUME "/opt/hgcapp/services-hedera/HapiApp2.0/data/diskFs" VOLUME "/opt/hgcapp/services-hedera/HapiApp2.0/data/keys"