From 7b196f95b702db97dba7923fdb848ba8f1acaca9 Mon Sep 17 00:00:00 2001 From: Dmitry Balashov Date: Fri, 19 May 2023 10:59:44 +0900 Subject: [PATCH] [fix]: fix config path in docker image Signed-off-by: Dmitry Balashov --- tools/kagami/src/swarm.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/kagami/src/swarm.rs b/tools/kagami/src/swarm.rs index f9ad9e03378..c488d8dea18 100644 --- a/tools/kagami/src/swarm.rs +++ b/tools/kagami/src/swarm.rs @@ -22,7 +22,10 @@ use super::{ClapArgs, Outcome}; const GIT_REVISION: &str = env!("VERGEN_GIT_SHA"); const GIT_ORIGIN: &str = "https://github.com/hyperledger/iroha.git"; +/// Config directory that is generated in the output directory const DIR_CONFIG: &str = "config"; +/// Config directory inside of the docker image +const DIR_CONFIG_IN_DOCKER: &str = "/config"; const DIR_CLONE: &str = "iroha-cloned"; const FILE_VALIDATOR: &str = "validator.wasm"; const FILE_CONFIG: &str = "config.json"; @@ -431,7 +434,7 @@ impl DockerComposeBuilder { .to_str() .wrap_err("config directory path is not a valid string")? .to_owned(), - DIR_CONFIG.to_owned(), + DIR_CONFIG_IN_DOCKER.to_owned(), )]; let services = peers