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

feat(cli): builds can now be done through docker #153

Merged
merged 12 commits into from
Dec 8, 2017
Merged

Conversation

sjk07
Copy link
Member

@sjk07 sjk07 commented Dec 5, 2017

docker run -v ${pwd}:/target condo:latest

Copy link
Member

@dmccaffery dmccaffery left a 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. :shipit:

@@ -19,6 +19,7 @@ public class ProcessInvoker : IProcessInvoker
{
#region Fields
private readonly ILogger logger;
private readonly bool isRealtime = false;
Copy link
Member

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?

:)

Copy link
Member Author

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) ."
Copy link
Member

Choose a reason for hiding this comment

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

yay!

Copy link
Member Author

Choose a reason for hiding this comment

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

indeed!

@sjk07 sjk07 merged commit 8782781 into develop Dec 8, 2017
@ghost ghost removed the review label Dec 8, 2017
@sjk07 sjk07 deleted the feature/cli branch December 8, 2017 23:50
@sjk07 sjk07 mentioned this pull request Dec 11, 2017
14 tasks
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.

None yet

7 participants