forked from kubernetes/kops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
126 lines (103 loc) · 3.33 KB
/
WORKSPACE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
#=============================================================================
# Go rules
http_archive(
name = "io_bazel_rules_go",
urls = ["https://github.com/bazelbuild/rules_go/releases/download/0.18.5/rules_go-0.18.5.tar.gz"],
sha256 = "a82a352bffae6bee4e95f68a8d80a70e87f42c4741e6a448bec11998fcc82329",
)
http_archive(
name = "bazel_gazelle",
urls = ["https://github.com/bazelbuild/bazel-gazelle/releases/download/0.17.0/bazel-gazelle-0.17.0.tar.gz"],
sha256 = "3c681998538231a2d24d0c07ed5a7658cb72bfb5fd4bf9911157c0e9ac6a2687",
)
load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains(
go_version = "1.12.5",
)
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
gazelle_dependencies()
#=============================================================================
# Docker rules
git_repository(
name = "io_bazel_rules_docker",
remote = "https://github.com/bazelbuild/rules_docker.git",
tag = "v0.7.0",
)
load(
"@io_bazel_rules_docker//repositories:repositories.bzl",
container_repositories = "repositories",
)
container_repositories()
load(
"@io_bazel_rules_docker//container:container.bzl",
"container_pull",
)
container_pull(
name = "debian_hyperkube_base_amd64",
# 'tag' is also supported, but digest is encouraged for reproducibility.
digest = "sha256:cc782ed16599000ca4c85d47ec6264753747ae1e77520894dca84b104a7621e2",
registry = "k8s.gcr.io",
repository = "debian-hyperkube-base-amd64",
tag = "0.10",
)
git_repository(
name = "distroless",
remote = "https://github.com/googlecloudplatform/distroless.git",
commit = "fa0765cc86064801e42a3b35f50ff2242aca9998",
)
load(
"@distroless//package_manager:package_manager.bzl",
"package_manager_repositories",
)
package_manager_repositories()
load(
"@distroless//package_manager:dpkg.bzl",
"dpkg_src",
"dpkg_list",
)
dpkg_src(
name = "debian_stretch",
arch = "amd64",
distro = "stretch",
sha256 = "da378b113f0b1edcf5b1f2c3074fd5476c7fd6e6df3752f824aad22e7547e699",
snapshot = "20190520T104418Z",
url = "http://snapshot.debian.org/archive",
)
dpkg_list(
name = "package_bundle",
packages = [
"cgmanager",
"dbus",
"libapparmor1",
"libcgmanager0",
"libcryptsetup4",
"libdbus-1-3",
"libnih-dbus1",
"libnih1",
"libpam-systemd",
"libprocps6",
"libseccomp2",
"procps",
"systemd-shim",
"systemd",
],
sources = [
"@debian_stretch//file:Packages.json",
],
)
# We use the prebuilt utils.tar.gz containing socat & conntrack, building it in bazel is really painful
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
http_file(
name = "utils_tar_gz",
urls = ["https://kubeupv2.s3.amazonaws.com/kops/1.12.1/linux/amd64/utils.tar.gz"],
sha256 = "5c956247241dd94300ba13c6dd9cb5843382d4255125a7a6639d2aad68b9050c",
)
git_repository(
name = "io_k8s_repo_infra",
commit = "f85734f673056977d8ba04b0386394b684ca2acb",
remote = "https://github.com/kubernetes/repo-infra.git",
shallow_since = "1563324513 -0800",
)