Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check that docker is available earlier in the Image creation #143

Closed
wants to merge 1 commit into from

Conversation

stack72
Copy link
Contributor

@stack72 stack72 commented Feb 26, 2020

Fixes: #88

@@ -129,6 +129,8 @@ public Image(string name, ImageArgs args, ComponentResourceOptions? options = nu
{
var imageName = imageArgs.Item1;

Docker.RunCommandThatMustSucceed("docker", new[] { "ps"}, this).ConfigureAwait(false);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why will this run fundamentally earlier than BuildAndPushImage several lines down below?

@@ -540,7 +540,7 @@ async Task doTagAndPushAsync(string targetName)
/// when an error happens. In general reporting the full command line is fine. But it should be set
/// to false if it might contain sensitive information (like a username/password)
/// </summary>
private static async Task<string> RunCommandThatMustSucceed(
public static async Task<string> RunCommandThatMustSucceed(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public static async Task<string> RunCommandThatMustSucceed(
internal static async Task<string> RunCommandThatMustSucceed(

@stack72
Copy link
Contributor Author

stack72 commented Mar 6, 2020

Closing this out - we will address this in a different way

@stack72 stack72 closed this Mar 6, 2020
@stack72 stack72 deleted the stack72/gh-88 branch March 6, 2020 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants