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

Add check for when image build option repo is null, drop image resolves #9 #10

Merged

Conversation

Sieabah
Copy link
Contributor

@Sieabah Sieabah commented Jun 30, 2017

No description provided.

@@ -88,6 +88,12 @@ function buildImages(registry) {
return function(buildOptions) {
logger.info('Building Docker Images');
logger.info('Will build the following images:');

for(let name in buildOptions.images)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

_.filter or any type of filter destroys object keys, why I ended up using for..in

Copy link
Contributor

Choose a reason for hiding this comment

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

_.pickBy is the equivalent of filter for objects. https://lodash.com/docs/4.17.4#pickBy

Copy link
Contributor Author

Choose a reason for hiding this comment

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

#nativeLyfe

@Sieabah
Copy link
Contributor Author

Sieabah commented Jun 30, 2017

Resolves #9

@Robert-W
Copy link

Looks good to me

Copy link
Member

@andrewmarcus andrewmarcus left a comment

Choose a reason for hiding this comment

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

Could we actually set the entire section to null rather than repo: null? Or would that not merge properly when composing the environment manifests?

@Sieabah
Copy link
Contributor Author

Sieabah commented Jun 30, 2017

@andrewmarcus With how _.merge is run through it doesn't look like null falls through in the end. DockerBuildContext is always set and another parameter. I didn't want to rewrite the whole flow of building the options

@andrewmarcus andrewmarcus merged commit fa13a7e into master Jun 30, 2017
@andrewmarcus andrewmarcus deleted the feature/add_environment_dependent_image_removal branch June 30, 2017 20:35
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.

4 participants