Commit Graph

24 Commits (c2b771d5c46ca3b2f58f72595fe07a4e56a63762)

Author SHA1 Message Date
Mike Danese 4bf2ef646f move build related files out of the root directory 2017-05-15 15:53:54 -07:00
Jeff Grafton 22a2355ed3 Update repo-infra dependency to support multiple upload paths 2017-05-03 16:05:15 -07:00
Jeff Grafton e231d4280b Replace git_repository with http_archive and use ixdy's fork of bazel tools for pkg_tar 2017-05-03 10:13:06 -07:00
Jeff Grafton 45a6455ac7 Use new docker_bundle rule instead of ixdy's custom docker_build rule 2017-05-02 16:30:24 -07:00
Mike Danese ee70743684 rehost debs until we have a better solution for updating 2017-04-28 15:58:40 -07:00
Mike Danese 2c7e2e9c6d fix build 2017-04-28 15:06:12 -07:00
Mike Danese 7bb880de8d update libc 2017-04-27 11:59:18 -07:00
Jeff Grafton 3951b4831e Bump rules_go to latest 2017-04-25 13:46:08 -07:00
Jeff Grafton a9bfae8ec3 Update repo-infra bazel dependency and use new gcs_upload rule 2017-04-25 13:45:28 -07:00
Mike Danese 59fc948a06 bump rules_go and go version for bazel builds
and bump gazel to a version that supports 1.8
2017-04-25 11:23:33 -07:00
Jeff Grafton 547dfb9703 Bump rules_go to latest 2017-04-03 16:03:23 -07:00
Jeff Grafton 9f4b0ddb47 Update busybox dependency to fix bazel build 2017-03-28 12:12:31 -07:00
caleb miles f4d9bbc7d8
Bump CNI consumers to latest version
- vendored CNI plugins properly handle `DEL` on missing resources
- [based on v0.5.1](https://github.com/kubernetes/kubernetes/issues/43488#issuecomment-288525151)
2017-03-22 16:03:13 -07:00
Mike Danese 9f172b4726 upgrade to latest build rules 2017-02-01 15:16:43 -08:00
Joe Finney a6e107ad7e Switch io_kubernetes_build to repo-infra.
This also picks up the go_genrule.
2017-01-26 15:57:16 -08:00
Kubernetes Submit Queue b29d9cdbcf Merge pull request #39898 from ixdy/bazel-release-tars
Automatic merge from submit-queue

Build release tars using bazel

**What this PR does / why we need it**: builds equivalents of the various kubernetes release tarballs, solely using bazel.

For example, you can now do
```console
$ make bazel-release
$ hack/e2e.go -v -up -test -down
```

**Special notes for your reviewer**: this is currently dependent on 3b29803eb5, which I have yet to turn into a pull request, since I'm still trying to figure out if this is the best approach.

Basically, the issue comes up with the way we generate the various server docker image tarfiles and load them on nodes:
* we `md5sum` the binary being encapsulated (e.g. kube-proxy) and save that to `$binary.docker_tag` in the server tarball
* we then build the docker image and tag using that md5sum (e.g. `gcr.io/google_containers/kube-proxy:$MD5SUM`)
* we `docker save` this image, which embeds the full tag in the `$binary.tar` file.
* on cluster startup, we `docker load` these tarballs, which are loaded with the tag that we'd created at build time. the nodes then use the `$binary.docker_tag` file to find the right image.

With the current bazel `docker_build` rule, the tag isn't saved in the docker image tar, so the node is unable to find the image after `docker load`ing it.

My changes to the rule save the tag in the docker image tar, though I don't know if there are subtle issues with it. (Maybe we want to only tag when `--stamp` is given?)

Also, the docker images produced by bazel have the timestamp set to the unix epoch, which is not great for debugging. Might be another thing to change with a `--stamp`.

Long story short, we probably need to follow up with bazel folks on the best way to solve this problem.

**Release note**:

```release-note
NONE
```
2017-01-18 14:24:48 -08:00
Mike Danese 736c7a6c23 update glibc to version pushed on 16-Jan-2017 19:12 2017-01-18 12:04:02 -08:00
Jeff Grafton 23fac9d520 Use custom io_bazel repo for docker_build changes 2017-01-13 14:14:44 -08:00
Mike Danese c2b5007f1c build test binary with bazel 2017-01-09 14:39:15 -08:00
Christian Bell 0976384a63 Update link to latest busybox 2017-01-06 13:38:05 -08:00
Mike Danese eb62ac4363 add netlink and libxtables to kube-proxy image 2017-01-05 13:42:26 -08:00
Mike Danese caa4a4304e bazel: build debs for kubelet and kubeadm 2016-12-14 16:11:58 -08:00
Mike Danese 33b2767a26 bump go rules 2016-12-12 13:30:07 -08:00
Mike Danese 88c1ee28ed gazel 2016-10-21 17:31:54 -07:00