-
Notifications
You must be signed in to change notification settings - Fork 14
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
feat(cli): builds can now be done through docker #153
Conversation
…e no dependency issues
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! ... just a few nits.
@@ -19,6 +19,7 @@ public class ProcessInvoker : IProcessInvoker | |||
{ | |||
#region Fields | |||
private readonly ILogger logger; | |||
private readonly bool isRealtime = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this necessary? Does it negatively impact us to have logging here all the time? If the logs are too verbose; perhaps we make the verbosity configurable, but I'm not a fan of disjointed flags like this. What does it mean to be realtime? how does the behavior change of this... thing?
:)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. originally everything was added to a queue and then output after execution. This made no sense when running MSBuild since some projects can take a while to run and giving feedback is important.
I have seen large output of text create a slowdown in execution before but for our use-case i doubt it would be an issue.
I like the idea of adding verbosity into the mix, but would need to work out some details
@@ -1,7 +1,7 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |||
<Target Name="DockerBuild" Condition=" $(DockerBuild) "> | |||
<Exec Command="docker build --label %(DockerMetadata.Label) --tag %(DockerMetadata.VersionLabel) ." | |||
<Exec Command="docker build --label %(DockerMetadata.Label) --tag %(DockerMetadata.VersionLabel) -f %(DockerMetadata.Identity) ." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yay!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indeed!
docker run -v ${pwd}:/target condo:latest