Commit Graph

49 Commits (efa63b7a5877252a3e542bc866cd0fe637933aed)

Author SHA1 Message Date
Tim Hockin 3586986416 Switch to k8s.gcr.io vanity domain
This is the 2nd attempt.  The previous was reverted while we figured out
the regional mirrors (oops).

New plan: k8s.gcr.io is a read-only facade that auto-detects your source
region (us, eu, or asia for now) and pulls from the closest.  To publish
an image, push k8s-staging.gcr.io and it will be synced to the regionals
automatically (similar to today).  For now the staging is an alias to
gcr.io/google_containers (the legacy URL).

When we move off of google-owned projects (working on it), then we just
do a one-time sync, and change the google-internal config, and nobody
outside should notice.

We can, in parallel, change the auto-sync into a manual sync - send a PR
to "promote" something from staging, and a bot activates it.  Nice and
visible, easy to keep track of.
2018-02-07 21:14:19 -08:00
Tim Hockin e9dd8a68f6 Revert k8s.gcr.io vanity domain
This reverts commit eba5b6092a.

Fixes https://github.com/kubernetes/kubernetes/issues/57526
2017-12-22 14:36:16 -08:00
Tim Hockin eba5b6092a Use k8s.gcr.io vanity domain for container images 2017-12-18 09:18:34 -08:00
Christoph Blecker d3b838b608
rsync git directories into kube-build 2017-07-25 12:11:06 -07:00
Wojciech Tyczynski 97b6701ea1 Get rid of patched version of Go 1.8.1 2017-05-25 20:05:34 +02:00
Wojciech Tyczynski 3a1bb09ea9 Patch golang 2017-05-16 21:29:22 +02:00
Lucas Käldström 6b5d5371d9
Bump to go1.8.1 and remove the edge GOROOT 2017-04-25 23:45:47 +03:00
Lucas Käldström 04bc44acf9
Remove the patched golang from the kube-cross image and upgrade to go1.8rc1 for arm and ppc64le instead. Reenable the ppc64le builds 2017-01-27 20:03:37 +02:00
Jeff Grafton 27d096d27d Rename build-tools/ back to build/ 2016-12-14 13:42:15 -08:00
Mike Danese 27116c6818 rename build/ to build-tools/ 2016-10-24 14:41:56 -07:00
Jeff Grafton e4b16a5a18 Make sure rsync.sh is executable inside the build image
Also make sure /etc/localtime is readable

Also move BUILD_IMAGE_VERSION to build-image/VERSION to be consistent
with the way the cross-image works.
2016-10-06 18:56:41 -07:00
Joe Beda dc586ea8f7 Use rsync to get source into build container
We also add "version" to all docker images and containers

This version is to be incremented manually when we change the shape of the build
image (like changing the golang version or the set of volumes in the data
container).  This will delete all older versions of images and containers when
the version is different.
2016-10-03 19:42:20 -07:00
Lucas Käldström aa045f786e Use a patched golang version for building linux/arm, fixes kube-apiserver 2016-09-14 18:04:22 +03:00
Tim Hockin 881e21c2d5 Link _output/bin/ to real binaries for this arch
This makes followup commits easier wrt finding binaries during build.
2016-07-12 21:52:00 -07:00
Madhusudan.C.S 5f01e8d335 Give sufficient permissions to kube-version-defs file to be able to source it during build. 2016-07-06 14:41:15 -07:00
Tim Hockin ac75bd11cf Run builds as the calling user
This means no 'sudo' is needed to copy files out.
2016-07-03 00:36:20 -07:00
David McMahon ef0c9f0c5b Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
mfanjie d433632cd2 add proxy settings for vagrant 2016-03-07 09:57:26 +08:00
Mike Danese f3b9fa62d6 push kube-cross to gcr.io
And do as much of the build setup work in it as possible.
2016-02-16 10:05:46 -08:00
k8s-merge-robot fc3316ee1b Merge pull request #20398 from mfanjie/mfanjie-patch-1
Auto commit by PR queue bot
2016-02-09 22:55:18 -08:00
Lucas Käldström c969c041e2 Add support for building arm, arm64 and ppc64le server and client targets 2016-02-07 20:35:14 +02:00
fmeng ef42dad78e update proxy settings for kubernetes build. 2016-02-04 17:38:07 +08:00
Paul Morie b672785d72 Add boilerplate checks for Dockerfiles 2016-02-03 18:35:26 -05:00
Jeff Lowdermilk d4e2e71b80 Merge pull request #19537 from mesosphere/jdef_fix_dockerfile_dir_suffix
ADDing to a dir should suffix the dir with /
2016-02-01 10:20:16 -08:00
Zach Loafman 07c304b43d build: Use Go version in cross image tag
The new tag format is cross-<go version>-<cross version>, starting
with cross-1.5.3-1.

Also bump the image we pre-pull / warn-on to 1.5.3

Fixes #19990
2016-01-22 11:45:41 -08:00
James DeFelice 9b8651e7fd ADDing to a dir should suffix the dir with / 2016-01-12 16:26:24 +00:00
Joe Beda 993c1ee222 Update etcd to 2.2.1 2015-11-04 12:26:57 -08:00
Jeff Grafton fbd58294b2 Update test helpers and dev doc to use etcd v2.0.12. 2015-10-13 16:05:56 -07:00
Mike Danese fb02b33e99 fix build 2015-08-05 17:52:56 -07:00
Zach Loafman 4122b20c23 Revert "Revert "release build broken on Docker 1.6"" 2015-05-11 10:15:27 -07:00
Zach Loafman 81d8ab32ba Revert "release build broken on Docker 1.6" 2015-05-11 10:08:17 -07:00
Clayton Coleman 6a86c48207 release build broken on Docker 1.6
By default, tmpfs on Docker 1.6 is 64mb which is too
small for Go builds on the Kube project (binary size, etc).

This moves the release build to use a non tmpfs work dir.
2015-05-07 18:20:15 -04:00
Zach Loafman a660ecd962 Try to fix 'Release file is expired' complaints
Based on info from:
  http://unix.stackexchange.com/questions/2544/how-to-work-around-apts-release-file-expired-problem-on-a-local-mirror
2015-03-11 10:57:26 -07:00
Salvatore Dario Minonne 9a0e16a009 Fix dockerfile for etcd.2.0.0 2015-01-30 15:32:13 +01:00
Joe Beda a735e2d160 Switch official builds to go 1.4.
This fixes #2894
2015-01-21 12:13:22 -08:00
mdshuai 98b1c7c72f Solve apt-get update 404 Not Found Package error 2014-12-23 12:52:46 +08:00
Dawn Chen d70160de1c Revert "Switch to the new home for go cover." 2014-12-12 15:16:26 -08:00
Brendan Burns 3ebaa3c81c Switch to the new home for go cover. 2014-12-11 10:12:17 -08:00
Joe Beda 5d33ce46cc Rework hack/ and build/ directories.
* Rewrite a bunch of the hack/ directory with modular reusable bash libraries.
* Have 'build/*' build on 'hack/*'.  The stuff in build now just runs hack/* in a docker container.
* Use a docker data container to enable faster incremental builds.
* Standardize output to _output/{local,dockerized}/bin/OS/ARCH/*.  This regularized placement makes cross compilation work.
* Move travis specific scripts under hack/travis

With new dockerized incremental builds, I can do a no-op `make quick-release` in ~30s.  This is a significant improvement.
2014-11-01 17:56:41 -07:00
Johan Euphrosine 6452b0fe97 build: add kube-build:cross base 2014-10-21 15:19:05 -07:00
Johan Euphrosine 521f145fb5 build: switch to golang:1.3 and build go for KUBE_CROSSPLATFORMS 2014-10-21 15:13:20 -07:00
Joe Beda 881cf80182 Vagrant now using pre-built binaries. 2014-10-10 12:30:12 -07:00
Johan Euphrosine d728d00233 build-image: use golang:cross 2014-09-29 11:10:05 -07:00
Joe Beda c5cb7202af Add support for versions in dockerized build. 2014-09-09 14:00:30 -07:00
Joe Beda 7fc3a6c050 Added scheduler binaries plus other misc fixes
* Support cleaning out built docker images
* Use bash arrays in places
* Lock etcd version we are testing against
2014-09-09 13:59:23 -07:00
Joe Beda 76baaa15b2 Fix up not-yet-ready build/... stuff for godep 2014-08-18 17:03:43 -07:00
Kelsey Hightower 777eec9e62 Build binaries using Go 1.3
Currently binaries are built using Go 1.2.2, which results
in larger binaries than those produced by newer versions of
Go. The Go source archive used for the build process is not
verified against its SHA1 hash.

Update the build-image Dockerfile to use Go 1.3 to build all
binaries, as a result binaries are now 20% - 30% smaller. The
Go source archive used for building binaries is now verified
against its SHA1 hash.
2014-07-26 09:57:03 -07:00
Joe Beda 4f63a690ee Support cross compilation.
Also add more utilities to copy and clean stuff.
2014-06-17 16:10:57 -07:00
Joe Beda 570ebf54a9 Build Kubernetes in Docker.
Scripts and Dockerfile to build a container image, build binaries, run tests, etc.  Also copy output back out to the host machine.
2014-06-17 14:52:38 -07:00