Skip to content

Commit

Permalink
feat(swarm): use bash to launch irohad
Browse files Browse the repository at this point in the history
Signed-off-by: Nurzhan Sakén <[email protected]>
  • Loading branch information
nxsaken authored and mversic committed Sep 26, 2024
1 parent 4574ec8 commit 6dc380e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions crates/iroha_swarm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ mod tests {
- ./client.toml:/config/client.toml:ro
init: true
command: |-
/bin/sh -c "
/bin/bash -c "
EXECUTOR_RELATIVE_PATH=$(jq -r '.executor' /config/genesis.json) && \\
EXECUTOR_ABSOLUTE_PATH=$(realpath \"/config/$$EXECUTOR_RELATIVE_PATH\") && \\
jq \\
Expand Down Expand Up @@ -253,7 +253,7 @@ mod tests {
- ./client.toml:/config/client.toml:ro
init: true
command: |-
/bin/sh -c "
/bin/bash -c "
EXECUTOR_RELATIVE_PATH=$(jq -r '.executor' /config/genesis.json) && \\
EXECUTOR_ABSOLUTE_PATH=$(realpath \"/config/$$EXECUTOR_RELATIVE_PATH\") && \\
jq \\
Expand Down Expand Up @@ -306,7 +306,7 @@ mod tests {
- ./client.toml:/config/client.toml:ro
init: true
command: |-
/bin/sh -c "
/bin/bash -c "
EXECUTOR_RELATIVE_PATH=$(jq -r '.executor' /config/genesis.json) && \\
EXECUTOR_ABSOLUTE_PATH=$(realpath \"/config/$$EXECUTOR_RELATIVE_PATH\") && \\
jq \\
Expand Down Expand Up @@ -420,7 +420,7 @@ mod tests {
retries: 30
start_period: 4s
command: |-
/bin/sh -c "
/bin/bash -c "
EXECUTOR_RELATIVE_PATH=$(jq -r '.executor' /config/genesis.json) && \\
EXECUTOR_ABSOLUTE_PATH=$(realpath \"/config/$$EXECUTOR_RELATIVE_PATH\") && \\
jq \\
Expand Down Expand Up @@ -476,7 +476,7 @@ mod tests {
retries: 30
start_period: 4s
command: |-
/bin/sh -c "
/bin/bash -c "
EXECUTOR_RELATIVE_PATH=$(jq -r '.executor' /config/genesis.json) && \\
EXECUTOR_ABSOLUTE_PATH=$(realpath \"/config/$$EXECUTOR_RELATIVE_PATH\") && \\
jq \\
Expand Down
2 changes: 1 addition & 1 deletion crates/iroha_swarm/src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ where
#[derive(Debug)]
struct SignAndSubmitGenesis;

const SIGN_AND_SUBMIT_GENESIS: &str = r#"/bin/sh -c "
const SIGN_AND_SUBMIT_GENESIS: &str = r#"/bin/bash -c "
EXECUTOR_RELATIVE_PATH=$(jq -r '.executor' /config/genesis.json) && \\
EXECUTOR_ABSOLUTE_PATH=$(realpath \"/config/$$EXECUTOR_RELATIVE_PATH\") && \\
jq \\
Expand Down
2 changes: 1 addition & 1 deletion defaults/docker-compose.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ services:
retries: 30
start_period: 4s
command: |-
/bin/sh -c "
/bin/bash -c "
EXECUTOR_RELATIVE_PATH=$(jq -r '.executor' /config/genesis.json) && \\
EXECUTOR_ABSOLUTE_PATH=$(realpath \"/config/$$EXECUTOR_RELATIVE_PATH\") && \\
jq \\
Expand Down
2 changes: 1 addition & 1 deletion defaults/docker-compose.single.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ services:
retries: 30
start_period: 4s
command: |-
/bin/sh -c "
/bin/bash -c "
EXECUTOR_RELATIVE_PATH=$(jq -r '.executor' /config/genesis.json) && \\
EXECUTOR_ABSOLUTE_PATH=$(realpath \"/config/$$EXECUTOR_RELATIVE_PATH\") && \\
jq \\
Expand Down
2 changes: 1 addition & 1 deletion defaults/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ services:
retries: 30
start_period: 4s
command: |-
/bin/sh -c "
/bin/bash -c "
EXECUTOR_RELATIVE_PATH=$(jq -r '.executor' /config/genesis.json) && \\
EXECUTOR_ABSOLUTE_PATH=$(realpath \"/config/$$EXECUTOR_RELATIVE_PATH\") && \\
jq \\
Expand Down

0 comments on commit 6dc380e

Please sign in to comment.