Skip to content

Commit 4bf2ef6

Browse files
committedMay 15, 2017
move build related files out of the root directory
1 parent 682f3a3 commit 4bf2ef6

10 files changed

+1468
-1463
lines changed
 

‎.bazelrc

-6
This file was deleted.

‎.bazelrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build/root/.bazelrc

‎BUILD.bazel

-85
This file was deleted.

‎BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build/root/BUILD.root

‎Makefile

-536
This file was deleted.

‎Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build/root/Makefile

‎Makefile.generated_files

-745
This file was deleted.

‎Makefile.generated_files

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build/root/Makefile.generated_files

‎WORKSPACE

-91
This file was deleted.

‎WORKSPACE

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build/root/WORKSPACE

‎build/root/.bazelrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Show us information about failures.
2+
build --verbose_failures
3+
test --test_output=errors
4+
5+
# Include git version info
6+
build --workspace_status_command hack/print-workspace-status.sh

‎build/root/BUILD.root

+85
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
package(default_visibility = ["//visibility:public"])
2+
3+
licenses(["notice"])
4+
5+
load("@io_bazel_rules_go//go:def.bzl", "go_prefix")
6+
load("@io_kubernetes_build//defs:build.bzl", "gcs_upload")
7+
8+
go_prefix("k8s.io/kubernetes")
9+
10+
filegroup(
11+
name = "_binary-artifacts-and-hashes",
12+
srcs = [
13+
"//build:client-targets-and-hashes",
14+
"//build:docker-artifacts-and-hashes",
15+
"//build:node-targets-and-hashes",
16+
"//build:server-targets-and-hashes",
17+
"//build/debs:debs-and-hashes",
18+
],
19+
visibility = ["//visibility:private"],
20+
)
21+
22+
gcs_upload(
23+
name = "push-build",
24+
data = [
25+
":_binary-artifacts-and-hashes",
26+
"//build/release-tars:release-tars-and-hashes",
27+
"//cluster/gce:gcs-release-artifacts-and-hashes",
28+
],
29+
upload_paths = {
30+
"//:_binary-artifacts-and-hashes": "bin/linux/amd64",
31+
"//build/release-tars:release-tars-and-hashes": "",
32+
"//cluster/gce:gcs-release-artifacts-and-hashes": "extra/gce",
33+
},
34+
)
35+
36+
# TODO: remove this alias after 2017-05-22
37+
alias(
38+
name = "ci-artifacts",
39+
actual = "push-build",
40+
deprecation = "This rule will be removed after 2017-05-22. Use //:push-build instead.",
41+
)
42+
43+
filegroup(
44+
name = "package-srcs",
45+
srcs = glob(
46+
["**"],
47+
exclude = [
48+
"bazel-*/**",
49+
"_*/**",
50+
".config/**",
51+
".git/**",
52+
".gsutil/**",
53+
".make/**",
54+
],
55+
),
56+
visibility = ["//visibility:private"],
57+
)
58+
59+
filegroup(
60+
name = "all-srcs",
61+
srcs = [
62+
":package-srcs",
63+
"//api:all-srcs",
64+
"//build:all-srcs",
65+
"//cluster:all-srcs",
66+
"//cmd:all-srcs",
67+
"//docs:all-srcs",
68+
"//examples:all-srcs",
69+
"//federation:all-srcs",
70+
"//hack:all-srcs",
71+
"//pkg:all-srcs",
72+
"//plugin:all-srcs",
73+
"//test:all-srcs",
74+
"//third_party:all-srcs",
75+
"//vendor:all-srcs",
76+
],
77+
tags = ["automanaged"],
78+
)
79+
80+
genrule(
81+
name = "save_git_version",
82+
outs = ["version"],
83+
cmd = "grep ^STABLE_BUILD_SCM_REVISION bazel-out/stable-status.txt | awk '{print $$2}' >$@",
84+
stamp = 1,
85+
)

‎build/root/Makefile

+536
Large diffs are not rendered by default.

‎build/root/Makefile.generated_files

+745
Large diffs are not rendered by default.

‎build/root/WORKSPACE

+91
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
http_archive(
2+
name = "io_bazel_rules_go",
3+
sha256 = "a1cae429e9d591017421150e3173478c46c693bc594322c7fa7e6cb5f672ef59",
4+
strip_prefix = "rules_go-805fd1566500997379806373feb05e138a4dfe28",
5+
urls = ["https://github.com/bazelbuild/rules_go/archive/805fd1566500997379806373feb05e138a4dfe28.tar.gz"],
6+
)
7+
8+
http_archive(
9+
name = "io_kubernetes_build",
10+
sha256 = "8d1cff71523565996903076cec6cad8424afa6eb93a342d0d810a55c911e23c7",
11+
strip_prefix = "repo-infra-61b7247ebf472398bdea148d8f67e3a1849d6de9",
12+
urls = ["https://github.com/kubernetes/repo-infra/archive/61b7247ebf472398bdea148d8f67e3a1849d6de9.tar.gz"],
13+
)
14+
15+
# This contains a patch to not prepend ./ to tarfiles produced by pkg_tar.
16+
# When merged upstream, we'll no longer need to use ixdy's fork:
17+
# https://bazel-review.googlesource.com/#/c/10390/
18+
http_archive(
19+
name = "io_bazel",
20+
sha256 = "667d32da016b1e2f63cf345cd3583989ec4a165034df383a01996d93635753a0",
21+
strip_prefix = "bazel-df2c687c22bdd7c76f3cdcc85f38fefd02f0b844",
22+
urls = ["https://github.com/ixdy/bazel/archive/df2c687c22bdd7c76f3cdcc85f38fefd02f0b844.tar.gz"],
23+
)
24+
25+
http_archive(
26+
name = "io_bazel_rules_docker",
27+
sha256 = "261fbd8fda1d06a12a0479019b46acd302c6aaa8df8e49383dc37917f20492a1",
28+
strip_prefix = "rules_docker-52d9faf209ff6d16eb850b6b66d03483735e0633",
29+
urls = ["https://github.com/bazelbuild/rules_docker/archive/52d9faf209ff6d16eb850b6b66d03483735e0633.tar.gz"],
30+
)
31+
32+
load("@io_bazel_rules_go//go:def.bzl", "go_repositories")
33+
load("@io_bazel_rules_docker//docker:docker.bzl", "docker_repositories")
34+
35+
go_repositories(
36+
go_version = "1.8.1",
37+
)
38+
39+
docker_repositories()
40+
41+
# for building docker base images
42+
debs = (
43+
(
44+
"busybox_deb",
45+
"5f81f140777454e71b9e5bfdce9c89993de5ddf4a7295ea1cfda364f8f630947",
46+
"http://ftp.us.debian.org/debian/pool/main/b/busybox/busybox-static_1.22.0-19+b3_amd64.deb",
47+
"https://storage.googleapis.com/kubernetes-release/debs/busybox-static_1.22.0-19+b3_amd64.deb",
48+
),
49+
(
50+
"libc_deb",
51+
"372aac4a9ce9dbb26a08de0b9c41b0500ba019430295d29f39566483f5f32732",
52+
"http://ftp.us.debian.org/debian/pool/main/g/glibc/libc6_2.24-10_amd64.deb",
53+
"https://storage.googleapis.com/kubernetes-release/debs/libc6_2.24-10_amd64.deb",
54+
),
55+
(
56+
"iptables_deb",
57+
"7747388a97ba71fede302d70361c81d486770a2024185514c18b5d8eab6aaf4e",
58+
"http://ftp.us.debian.org/debian/pool/main/i/iptables/iptables_1.4.21-2+b1_amd64.deb",
59+
"https://storage.googleapis.com/kubernetes-release/debs/iptables_1.4.21-2+b1_amd64.deb",
60+
),
61+
(
62+
"libnetlink_deb",
63+
"5d486022cd9e047e9afbb1617cf4519c0decfc3d2c1fad7e7fe5604943dbbf37",
64+
"http://ftp.us.debian.org/debian/pool/main/libn/libnfnetlink/libnfnetlink0_1.0.1-3_amd64.deb",
65+
"https://storage.googleapis.com/kubernetes-release/debs/libnfnetlink0_1.0.1-3_amd64.deb",
66+
),
67+
(
68+
"libxtables_deb",
69+
"6783f316af4cbf3ada8b9a2b7bb5f53a87c0c2575c1903ce371fdbd45d3626c6",
70+
"http://ftp.us.debian.org/debian/pool/main/i/iptables/libxtables10_1.4.21-2+b1_amd64.deb",
71+
"https://storage.googleapis.com/kubernetes-release/debs/libxtables10_1.4.21-2+b1_amd64.deb",
72+
),
73+
(
74+
"iproute2_deb",
75+
"3ce9cb1d03a2a1359cbdd4f863b15d0c906096bf713e8eb688149da2f4e350bc",
76+
"http://ftp.us.debian.org/debian/pool/main/i/iproute2/iproute_3.16.0-2_all.deb",
77+
"https://storage.googleapis.com/kubernetes-release/debs/iproute_3.16.0-2_all.deb",
78+
),
79+
)
80+
81+
[http_file(
82+
name = name,
83+
sha256 = sha256,
84+
url = url,
85+
) for name, sha256, origin, url in debs]
86+
87+
http_file(
88+
name = "kubernetes_cni",
89+
sha256 = "05ab3937bc68562e989dc143362ec4d4275262ba9f359338aed720fc914457a5",
90+
url = "https://storage.googleapis.com/kubernetes-release/network-plugins/cni-amd64-0799f5732f2a11b329d9e3d51b9c8f2e3759f2ff.tar.gz",
91+
)

0 commit comments

Comments
 (0)
Please sign in to comment.