mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-10-31 22:01:06 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			106 lines
		
	
	
		
			3.8 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			106 lines
		
	
	
		
			3.8 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
| load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
 | |
| load("//build:workspace_mirror.bzl", "mirror")
 | |
| load("//build:workspace.bzl", "CNI_VERSION", "CRI_TOOLS_VERSION")
 | |
| 
 | |
| http_archive(
 | |
|     name = "io_bazel_rules_go",
 | |
|     sha256 = "7be7dc01f1e0afdba6c8eb2b43d2fa01c743be1b9273ab1eaf6c233df078d705",
 | |
|     urls = mirror("https://github.com/bazelbuild/rules_go/releases/download/0.16.5/rules_go-0.16.5.tar.gz"),
 | |
| )
 | |
| 
 | |
| http_archive(
 | |
|     name = "io_kubernetes_build",
 | |
|     sha256 = "21160531ea8a9a4001610223ad815622bf60671d308988c7057168a495a7e2e8",
 | |
|     strip_prefix = "repo-infra-b4bc4f1552c7fc1d4654753ca9b0e5e13883429f",
 | |
|     urls = mirror("https://github.com/kubernetes/repo-infra/archive/b4bc4f1552c7fc1d4654753ca9b0e5e13883429f.tar.gz"),
 | |
| )
 | |
| 
 | |
| http_archive(
 | |
|     name = "bazel_skylib",
 | |
|     sha256 = "bbccf674aa441c266df9894182d80de104cabd19be98be002f6d478aaa31574d",
 | |
|     strip_prefix = "bazel-skylib-2169ae1c374aab4a09aa90e65efe1a3aad4e279b",
 | |
|     urls = mirror("https://github.com/bazelbuild/bazel-skylib/archive/2169ae1c374aab4a09aa90e65efe1a3aad4e279b.tar.gz"),
 | |
| )
 | |
| 
 | |
| ETCD_VERSION = "3.3.10"
 | |
| 
 | |
| http_archive(
 | |
|     name = "com_coreos_etcd",
 | |
|     build_file = "@//third_party:etcd.BUILD",
 | |
|     sha256 = "1620a59150ec0a0124a65540e23891243feb2d9a628092fb1edcc23974724a45",
 | |
|     strip_prefix = "etcd-v%s-linux-amd64" % ETCD_VERSION,
 | |
|     urls = mirror("https://github.com/coreos/etcd/releases/download/v%s/etcd-v%s-linux-amd64.tar.gz" % (ETCD_VERSION, ETCD_VERSION)),
 | |
| )
 | |
| 
 | |
| http_archive(
 | |
|     name = "io_bazel_rules_docker",
 | |
|     sha256 = "29d109605e0d6f9c892584f07275b8c9260803bf0c6fcb7de2623b2bedc910bd",
 | |
|     strip_prefix = "rules_docker-0.5.1",
 | |
|     urls = mirror("https://github.com/bazelbuild/rules_docker/archive/v0.5.1.tar.gz"),
 | |
| )
 | |
| 
 | |
| load("@bazel_skylib//:lib.bzl", "versions")
 | |
| 
 | |
| versions.check(minimum_bazel_version = "0.17.2")
 | |
| 
 | |
| load("@io_bazel_rules_go//go:def.bzl", "go_download_sdk", "go_register_toolchains", "go_rules_dependencies")
 | |
| load("@io_bazel_rules_docker//docker:docker.bzl", "docker_pull", "docker_repositories")
 | |
| 
 | |
| go_rules_dependencies()
 | |
| 
 | |
| go_register_toolchains(
 | |
|     go_version = "1.11.4",
 | |
| )
 | |
| 
 | |
| docker_repositories()
 | |
| 
 | |
| http_file(
 | |
|     name = "kubernetes_cni",
 | |
|     downloaded_file_path = "kubernetes_cni.tgz",
 | |
|     sha256 = "f04339a21b8edf76d415e7f17b620e63b8f37a76b2f706671587ab6464411f2d",
 | |
|     urls = mirror("https://storage.googleapis.com/kubernetes-release/network-plugins/cni-plugins-amd64-v%s.tgz" % CNI_VERSION),
 | |
| )
 | |
| 
 | |
| http_file(
 | |
|     name = "cri_tools",
 | |
|     downloaded_file_path = "cri_tools.tgz",
 | |
|     sha256 = "e7d913bcce40bf54e37ab1d4b75013c823d0551e6bc088b217bc1893207b4844",
 | |
|     urls = mirror("https://github.com/kubernetes-incubator/cri-tools/releases/download/v%s/crictl-v%s-linux-amd64.tar.gz" % (CRI_TOOLS_VERSION, CRI_TOOLS_VERSION)),
 | |
| )
 | |
| 
 | |
| docker_pull(
 | |
|     name = "debian-base-amd64",
 | |
|     digest = "sha256:86176bc8ccdc4d8ea7fbf6ba4b57fcefc2cb61ff7413114630940474ff9bf751",
 | |
|     registry = "k8s.gcr.io",
 | |
|     repository = "debian-base-amd64",
 | |
|     tag = "0.4.0",  # ignored, but kept here for documentation
 | |
| )
 | |
| 
 | |
| docker_pull(
 | |
|     name = "debian-iptables-amd64",
 | |
|     digest = "sha256:d4ff8136b9037694a3165a7fff6a91e7fc828741b8ea1eda226d4d9ea5d23abb",
 | |
|     registry = "k8s.gcr.io",
 | |
|     repository = "debian-iptables-amd64",
 | |
|     tag = "v11.0",  # ignored, but kept here for documentation
 | |
| )
 | |
| 
 | |
| docker_pull(
 | |
|     name = "debian-hyperkube-base-amd64",
 | |
|     digest = "sha256:4a77bc882f7d629c088a11ff144a2e86660268fddf63b61f52b6a93d16ab83f0",
 | |
|     registry = "k8s.gcr.io",
 | |
|     repository = "debian-hyperkube-base-amd64",
 | |
|     tag = "0.12.0",  # ignored, but kept here for documentation
 | |
| )
 | |
| 
 | |
| docker_pull(
 | |
|     name = "official_busybox",
 | |
|     digest = "sha256:cb63aa0641a885f54de20f61d152187419e8f6b159ed11a251a09d115fdff9bd",
 | |
|     registry = "index.docker.io",
 | |
|     repository = "library/busybox",
 | |
|     tag = "latest",  # ignored, but kept here for documentation
 | |
| )
 | |
| 
 | |
| load("//build:workspace_mirror.bzl", "export_urls")
 | |
| 
 | |
| export_urls("workspace_urls")
 |