Skip to content

Commit

Permalink
Update dokcer compose start text
Browse files Browse the repository at this point in the history
Signed-off-by: Danil <[email protected]>
  • Loading branch information
Deniallugo committed May 23, 2024
1 parent e250350 commit 06dbb87
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
15 changes: 11 additions & 4 deletions zk_toolbox/crates/zk_inception/src/commands/containers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,17 @@ pub fn initialize_docker(shell: &Shell, ecosystem: &EcosystemConfig) -> anyhow::
}

pub fn start_containers(shell: &Shell) -> anyhow::Result<()> {
docker::up(shell, DOCKER_COMPOSE_FILE).context(
"Failed to start containers. Make sure there is nothing running on
default ports for Ethereum node l1 and postgres",
)
while let Err(err) = docker::up(shell, DOCKER_COMPOSE_FILE) {
logger::error(err.to_string());
if !common::PromptConfirm::new(
"Failed to start containers. Make sure there is nothing running on default ports for Ethereum node l1 and postgres. Want to try again?",
).default(true)
.ask()
{
return Err(err);
}
}
Ok(())
}

fn create_docker_folders(shell: &Shell) -> anyhow::Result<()> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl EcosystemCreateArgs {

let link_to_code = self.link_to_code.unwrap_or_else(|| {
let link_to_code_selection = PromptSelect::new(
"Add the (recommended) to the clone option",
"Select the origin of zksync-era repository",
LinkToCodeSelection::iter(),
)
.ask();
Expand Down Expand Up @@ -112,7 +112,7 @@ impl EcosystemCreateArgsFinal {

#[derive(Debug, Clone, EnumIter, Display, PartialEq, Eq)]
enum LinkToCodeSelection {
#[strum(serialize = "Clone for me")]
#[strum(serialize = "Clone for me (recommended)")]
Clone,
#[strum(serialize = "I have the code already")]
Path,
Expand Down

0 comments on commit 06dbb87

Please sign in to comment.