From 851ed5f94c0b68dc1be7cbb0b9909d7585a1428b Mon Sep 17 00:00:00 2001 From: Elizabeth Engelman <4752801+elizabethengelman@users.noreply.github.com> Date: Wed, 21 Feb 2024 14:49:44 -0500 Subject: [PATCH] Change --docker-socket-path to --docker-host and allow for this to be passed in as an env var Co-authored-by: Willem Wyndham Co-authored-by: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> --- cmd/soroban-cli/src/commands/network/start.rs | 4 ++-- cmd/soroban-cli/src/commands/network/stop.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/soroban-cli/src/commands/network/start.rs b/cmd/soroban-cli/src/commands/network/start.rs index 31bc77d1db..02482a5444 100644 --- a/cmd/soroban-cli/src/commands/network/start.rs +++ b/cmd/soroban-cli/src/commands/network/start.rs @@ -23,8 +23,8 @@ pub struct Cmd { /// Network to start pub network: Network, - #[arg(short = 'd', long, help = DOCKER_SOCKET_PATH_HELP)] - pub docker_socket_path: Option, + #[arg(short = 'd', long, help = DOCKER_SOCKET_PATH_HELP, env = "DOCKER_HOST")] + pub docker_host: Option, /// Optional argument to specify the limits for the local network only #[arg(short = 'l', long)] diff --git a/cmd/soroban-cli/src/commands/network/stop.rs b/cmd/soroban-cli/src/commands/network/stop.rs index 2897efc2aa..476942b520 100644 --- a/cmd/soroban-cli/src/commands/network/stop.rs +++ b/cmd/soroban-cli/src/commands/network/stop.rs @@ -11,7 +11,7 @@ pub struct Cmd { /// Network to stop pub network: Network, - #[arg(short = 'd', long, help = DOCKER_SOCKET_PATH_HELP)] + #[arg(short = 'd', long, help = DOCKER_SOCKET_PATH_HELP, env = "DOCKER_HOST")]] pub docker_socket_path: Option, }