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 fission/builder image #397
Conversation
@life1347 please take a look |
@soamvasani test fails because of missing fission/builder image. If you agree with the approach taken here, we can push the image before more merging and rerun the tests to make it all green |
Hrm, what if a builder wants to do something like |
That would also be a solution. The old approach is still possible allowing for build environments to extend other images. Though the image is more of a convenience. It is just a pain to setup up cross-project build chains to get the binary. |
Yes I agree, the cross project thing is annoying, and the current approach (in the master branch, not this PR) is also kinda weird. Okay, so let's go with this approach of having a builder image, given that it isn't stopping us from the alternatives. I think there's a way to test it by removing the hard-coding of the |
7da1368
to
84b3bb9
Compare
@soamvasani thanks for the tip to use build args. I did have to add a docker update step to travis, because the default docker version of travis does not support build args yet. |
Reviewed 8 of 9 files at r1, 4 of 4 files at r2. builder/builder.go, line 184 at r2 (raw file):
log some sort of message, not just the error; you could log the same message that's being returned. builder/builder.go, line 190 at r2 (raw file):
same comment, log a message + the error buildermgr/envwatcher.go, line 452 at r2 (raw file):
Doesn't this break the integration tests? I think you'll need an env var that can be set on the deployment, just like we do with fetcher in the tests. buildermgr/pkgwatcher.go, line 85 at r2 (raw file):
please avoid unnecessary changes hack/deploy.sh, line 1 at r2 (raw file):
Can you create a separate PR for this file? I'm not sure how it relates to this PR? Comments from Reviewable |
84b3bb9
to
c2b0853
Compare
Review status: 9 of 13 files reviewed at latest revision, 5 unresolved discussions. buildermgr/envwatcher.go, line 452 at r2 (raw file): Previously, soamvasani (Soam Vasani) wrote…
An env var or we could specify it in the env.Spec.Builder? buildermgr/pkgwatcher.go, line 85 at r2 (raw file): Previously, soamvasani (Soam Vasani) wrote…
Will try to avoid it in future prs 👍 hack/deploy.sh, line 1 at r2 (raw file): Previously, soamvasani (Soam Vasani) wrote…
It indeed is a flyby as specified in the main post. Will pull it out of this PR. Comments from Reviewable |
Review status: 9 of 13 files reviewed at latest revision, 5 unresolved discussions. builder/builder.go, line 184 at r2 (raw file): Previously, soamvasani (Soam Vasani) wrote…
Done. builder/builder.go, line 190 at r2 (raw file): Previously, soamvasani (Soam Vasani) wrote…
Done. Comments from Reviewable |
c2b0853
to
188df1e
Compare
Review status: 9 of 13 files reviewed at latest revision, 5 unresolved discussions. hack/deploy.sh, line 1 at r2 (raw file): Previously, erwinvaneyk (Erwin van Eyk) wrote…
Done. Comments from Reviewable |
188df1e
to
a2a8a7e
Compare
Reviewed 1 of 9 files at r1, 2 of 4 files at r3, 1 of 1 files at r4, 1 of 1 files at r5. builder/builder.go, line 184 at r2 (raw file): Previously, erwinvaneyk (Erwin van Eyk) wrote…
Nitpick, but the var name builder/cmd/builder, line 0 at r5 (raw file): buildermgr/envwatcher.go, line 452 at r2 (raw file): Previously, erwinvaneyk (Erwin van Eyk) wrote…
Either will work but I'd like to keep things consistent with other places in the project, such as fetcher. I suggest using an env var right now and adding it to the spec in a separate change. buildermgr/pkgwatcher.go, line 85 at r2 (raw file): Previously, erwinvaneyk (Erwin van Eyk) wrote…
Thanks. But please remove this one too. charts/fission-all-0.4.0rc.tgz, line 0 at r4 (raw file): Comments from Reviewable |
a2a8a7e
to
3cf5354
Compare
Review status: 8 of 9 files reviewed at latest revision, 6 unresolved discussions. buildermgr/envwatcher.go, line 452 at r2 (raw file): Previously, soamvasani (Soam Vasani) wrote…
For the sake of getting this PR merged soonish, I want to revert it back to pullAlways, and defer the pull policy change to a later PR. Agreed? Comments from Reviewable |
LGTM Reviewed 5 of 5 files at r6. Comments from Reviewable |
This PR tackles a couple of issues with builder(mgr)
It...:
fission/builder
docker image avoiding the need to compile fission to get the binary.As a flyby, I updated the deploy script to correspond with the one in fission workflowscc @life1347
This change is