Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
052e4848
Commit
052e4848
authored
Jun 01, 2017
by
Jeff Grafton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bazel: base kube-proxy image on debian-iptables instead of busybox
parent
b9e8d2ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
44 deletions
+9
-44
BUILD
build/BUILD
+1
-13
WORKSPACE
build/root/WORKSPACE
+8
-31
No files found.
build/BUILD
View file @
052e4848
...
@@ -34,18 +34,6 @@ docker_build(
...
@@ -34,18 +34,6 @@ docker_build(
},
},
)
)
docker_build(
name = "busybox-net",
base = ":busybox",
debs = [
"@libc_deb//file",
"@iptables_deb//file",
"@iproute2_deb//file",
"@libnetlink_deb//file",
"@libxtables_deb//file",
],
)
# This list should roughly match kube::build::get_docker_wrapped_binaries()
# This list should roughly match kube::build::get_docker_wrapped_binaries()
# in build/common.sh.
# in build/common.sh.
DOCKERIZED_BINARIES = {
DOCKERIZED_BINARIES = {
...
@@ -66,7 +54,7 @@ DOCKERIZED_BINARIES = {
...
@@ -66,7 +54,7 @@ DOCKERIZED_BINARIES = {
"target": "//plugin/cmd/kube-scheduler:kube-scheduler",
"target": "//plugin/cmd/kube-scheduler:kube-scheduler",
},
},
"kube-proxy": {
"kube-proxy": {
"base": "
:busybox-net
",
"base": "
@debian-iptables-amd64//image:image.tar
",
"target": "//cmd/kube-proxy:kube-proxy",
"target": "//cmd/kube-proxy:kube-proxy",
},
},
}
}
...
...
build/root/WORKSPACE
View file @
052e4848
...
@@ -30,7 +30,7 @@ http_archive(
...
@@ -30,7 +30,7 @@ http_archive(
)
)
load("@io_bazel_rules_go//go:def.bzl", "go_repositories")
load("@io_bazel_rules_go//go:def.bzl", "go_repositories")
load("@io_bazel_rules_docker//docker:docker.bzl", "docker_repositories")
load("@io_bazel_rules_docker//docker:docker.bzl", "docker_repositories"
, "docker_pull"
)
go_repositories(
go_repositories(
go_version = "1.8.3",
go_version = "1.8.3",
...
@@ -46,36 +46,6 @@ debs = (
...
@@ -46,36 +46,6 @@ debs = (
"http://ftp.us.debian.org/debian/pool/main/b/busybox/busybox-static_1.22.0-19+b3_amd64.deb",
"http://ftp.us.debian.org/debian/pool/main/b/busybox/busybox-static_1.22.0-19+b3_amd64.deb",
"https://storage.googleapis.com/kubernetes-release/debs/busybox-static_1.22.0-19+b3_amd64.deb",
"https://storage.googleapis.com/kubernetes-release/debs/busybox-static_1.22.0-19+b3_amd64.deb",
),
),
(
"libc_deb",
"372aac4a9ce9dbb26a08de0b9c41b0500ba019430295d29f39566483f5f32732",
"http://ftp.us.debian.org/debian/pool/main/g/glibc/libc6_2.24-10_amd64.deb",
"https://storage.googleapis.com/kubernetes-release/debs/libc6_2.24-10_amd64.deb",
),
(
"iptables_deb",
"7747388a97ba71fede302d70361c81d486770a2024185514c18b5d8eab6aaf4e",
"http://ftp.us.debian.org/debian/pool/main/i/iptables/iptables_1.4.21-2+b1_amd64.deb",
"https://storage.googleapis.com/kubernetes-release/debs/iptables_1.4.21-2+b1_amd64.deb",
),
(
"libnetlink_deb",
"5d486022cd9e047e9afbb1617cf4519c0decfc3d2c1fad7e7fe5604943dbbf37",
"http://ftp.us.debian.org/debian/pool/main/libn/libnfnetlink/libnfnetlink0_1.0.1-3_amd64.deb",
"https://storage.googleapis.com/kubernetes-release/debs/libnfnetlink0_1.0.1-3_amd64.deb",
),
(
"libxtables_deb",
"6783f316af4cbf3ada8b9a2b7bb5f53a87c0c2575c1903ce371fdbd45d3626c6",
"http://ftp.us.debian.org/debian/pool/main/i/iptables/libxtables10_1.4.21-2+b1_amd64.deb",
"https://storage.googleapis.com/kubernetes-release/debs/libxtables10_1.4.21-2+b1_amd64.deb",
),
(
"iproute2_deb",
"3ce9cb1d03a2a1359cbdd4f863b15d0c906096bf713e8eb688149da2f4e350bc",
"http://ftp.us.debian.org/debian/pool/main/i/iproute2/iproute_3.16.0-2_all.deb",
"https://storage.googleapis.com/kubernetes-release/debs/iproute_3.16.0-2_all.deb",
),
)
)
[http_file(
[http_file(
...
@@ -89,3 +59,10 @@ http_file(
...
@@ -89,3 +59,10 @@ http_file(
sha256 = "05ab3937bc68562e989dc143362ec4d4275262ba9f359338aed720fc914457a5",
sha256 = "05ab3937bc68562e989dc143362ec4d4275262ba9f359338aed720fc914457a5",
url = "https://storage.googleapis.com/kubernetes-release/network-plugins/cni-amd64-0799f5732f2a11b329d9e3d51b9c8f2e3759f2ff.tar.gz",
url = "https://storage.googleapis.com/kubernetes-release/network-plugins/cni-amd64-0799f5732f2a11b329d9e3d51b9c8f2e3759f2ff.tar.gz",
)
)
docker_pull(
name = "debian-iptables-amd64",
digest = "sha256:adde513f7b3561042cd2d2af4d2d355189bbb2f579584b5766e7d07be4f7e71e", # v7
registry = "gcr.io",
repository = "google-containers/debian-iptables-amd64",
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment