Skip to content

Commit

Permalink
merge: #2610
Browse files Browse the repository at this point in the history
2610: fix(si): Ensure that we can recreate a new veritech container r=fnichol a=stack72

Fixes: #2609

When the credentials are incorrect, we want to be able to stop
and then restart the container to get the new credentials passed
to the container


Co-authored-by: stack72 <[email protected]>
  • Loading branch information
si-bors-ng[bot] and stack72 authored Aug 16, 2023
2 parents f79ab66 + 841013c commit d2a8fb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ A-si-discord-bot:
- .prettierrc.js
A-si:
- bin/si/**/*
- lib/si-cli/**/*

#
# System Initiative libs (i.e. crates/packages/libraries)
Expand Down
5 changes: 2 additions & 3 deletions lib/si-cli/src/cmd/start.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,9 @@ async fn invoke(app: &AppState, docker: &DockerClient, is_preview: bool) -> CliR
continue;
}

println!("Starting existing {0}", container_name.clone());
println!("Deleting existing container {0}", container_name.clone());
let non_running_container = docker.containers().get(existing.id.as_ref().unwrap());
non_running_container.start().await?;
continue;
non_running_container.delete().await?;
}

if is_preview {
Expand Down

0 comments on commit d2a8fb7

Please sign in to comment.