Skip to content

Conversation

@maria
Copy link
Contributor

@maria maria commented Dec 11, 2014

A rough in progress change.

@maria maria force-pushed the build-upstream-image branch 2 times, most recently from 354fe3c to 9f0b7a4 Compare December 12, 2014 13:36
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we need to be updating the actual user's dockerfile, not doing it this way, because depending on what their dockerfile does, it might be performing operations that are affected by the new version of the upstream image.

And now that we're going to be editing their dockerfile anyway, it would make sense to move this logic (adding the env vars) to the same place. That way we can get back to just doing a single docker build.

@csrwng agree?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yup, makes sense to me

@maria maria force-pushed the build-upstream-image branch 6 times, most recently from a1f499a to 5fb6d69 Compare December 16, 2014 14:21
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bparees you were suggesting something like this?

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, but also do the ENV var adding logic, that way we don't have to double-build.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bparees done. WDYT?

@maria maria force-pushed the build-upstream-image branch from 5fb6d69 to 3ea9111 Compare December 16, 2014 15:16
Copy link
Contributor

Choose a reason for hiding this comment

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

if you return here you won't add the env variables which needs to always be done even if there's no upstream image.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes... I fixed it.

@maria maria force-pushed the build-upstream-image branch from 3ea9111 to bcfd7f0 Compare December 17, 2014 13:56
@bparees
Copy link
Contributor

bparees commented Dec 17, 2014

looks good. unfortunately we're probably going to have to tweak it a bit after accounting for the changes from clayton, but this will give us a great start.

Copy link
Contributor

Choose a reason for hiding this comment

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

"an UpstreamImage"

@maria maria force-pushed the build-upstream-image branch from bcfd7f0 to 4c255c7 Compare December 17, 2014 14:40
@smarterclayton
Copy link
Contributor

Yes it does look good - don't take my super obsessive focus on the api names and structure as criticism of the work you guys have been doing. Being able to focus on the perception of the api means you guys are doing everything right in getting real code built and working.

On Dec 17, 2014, at 9:09 AM, Ben Parees [email protected] wrote:

looks good. unfortunately we're probably going to have to tweak it a bit after accounting for the changes from clayton, but this will give us a great start.


Reply to this email directly or view it on GitHub.

@bparees
Copy link
Contributor

bparees commented Dec 22, 2014

i've cherry-picked this into #557 where we'll continue to evolve it.

Note that i removed the STI portion of the logic since we will now just create the STI build strategy with the appropriate image value in the image field when we create the build.

@bparees bparees closed this Dec 22, 2014
sjenning pushed a commit to sjenning/origin that referenced this pull request Jan 24, 2017
jpeeler pushed a commit to jpeeler/origin that referenced this pull request Feb 1, 2018
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.

5 participants