-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Bazel docker, cross builds and uploading to s3 #4477
Conversation
Moving this to 1.9.1 because I don't want it to block 1.9.0, not that we can't merge when it's ready :-) |
/lgtm |
/lgtm cancel //PR changed after LGTM, removing LGTM. @mikesplain @robinpercy |
Wahoo, they pushed new rules_go so I added that for now, for testing purposes. |
8431d17
to
f0ad5ed
Compare
Tested all of these on each of their systems Need more real testing to ensure all issues are fixed but worked better than not for me
c223b28
to
7f139ca
Compare
bazel build --experimental_platforms=@io_bazel_rules_go//go/toolchain:linux_amd64 //images:dns-controller.tar | ||
|
||
.PHONY: bazel-crossbuild-protokube-image | ||
bazel-crossbuild-protokube-image: |
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.
Got a odd warning here:
WARNING: /private/var/tmp/_bazel_clove/8fb6d18c232e3eae2b829c764cbc089c/external/distroless_rules/WORKSPACE:1: Workspace name in
/private/var/tmp/_bazel_clove/8fb6d18c232e3eae2b829c764cbc089c/external/distroless_rules/WORKSPACE (@distroless) does not match the name given in the repository's definition (@distroless_rules); this will cause a build error in future versions
Nice work!!! /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chrislovecnm, mikesplain, robinpercy The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This pr includes some updates to bazel building docker images, bazel cross builds, and uploading to s3. From what I can tell, you can now do
make bazel-upload
and things work end to end as they would withmake upload
.I kept bazel-upload, etc. separate since I didn't want to change any existing build stuff, though this should certainly be refactored.
This also pulls in distroless_rules and debian stretch package management utils to build the protokube container with bazel. I'm not sure if this is 100% what we should do but it works well in dev from my testing.
Bazel version 0.10.0
Comments/suggestions welcome!