forked from GoogleContainerTools/distroless
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWORKSPACE
230 lines (201 loc) · 5.93 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
workspace(name = "distroless")
git_repository(
name = "io_bazel_rules_go",
remote = "https://github.com/bazelbuild/rules_go.git",
tag = "0.11.0",
)
load("@io_bazel_rules_go//go:def.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains()
load(
"//package_manager:package_manager.bzl",
"dpkg_list",
"dpkg_src",
"package_manager_repositories",
)
package_manager_repositories()
dpkg_src(
name = "debian_stretch",
arch = "amd64",
distro = "stretch",
sha256 = "9e7870c3c3b5b0a7f8322c323a3fa641193b1eee792ee7e2eedb6eeebf9969f3",
snapshot = "20180719T151130Z",
url = "http://snapshot.debian.org/archive",
)
dpkg_src(
name = "debian_stretch_backports",
arch = "amd64",
distro = "stretch-backports",
sha256 = "a3098d7905c94b421cf0115dae7ae169d8b6b180c2b46cce5fc17ccec62ac9ef",
snapshot = "20180719T151130Z",
url = "http://snapshot.debian.org/archive",
)
dpkg_src(
name = "debian_stretch_security",
package_prefix = "http://snapshot.debian.org/archive/debian-security/20180719T202519Z/",
packages_gz_url = "http://snapshot.debian.org/archive/debian-security/20180719T202519Z/dists/stretch/updates/main/binary-amd64/Packages.gz",
sha256 = "f9778cfe4746eba25ea86d4fe7fa75af82fe69b6670b609cbfae1f6f907145be",
)
dpkg_list(
name = "package_bundle",
packages = [
# Version required to skip a security fix to the pre-release library
# TODO: Remove when there is a security fix or dpkg_list finds the recent version
"libc6=2.24-11+deb9u3",
"ca-certificates",
"openssl",
"libssl1.0.2",
"libssl1.1",
"libbz2-1.0",
"libdb5.3",
"libffi6",
"libncursesw5",
"liblzma5",
"libexpat1",
"libreadline7",
"libtinfo5",
"libsqlite3-0",
"mime-support",
"netbase",
"readline-common",
"tzdata",
#c++
"libgcc1",
"libgomp1",
"libstdc++6",
#java
"zlib1g",
"openjdk-8-jre-headless",
#python
"libpython2.7-minimal",
"python2.7-minimal",
"libpython2.7-stdlib",
"dash",
"libc-bin",
#python3
"libpython3.5-minimal",
"python3.5-minimal",
"libpython3.5-stdlib",
#dotnet
"libcurl3",
"libgssapi-krb5-2",
"libicu57",
"liblttng-ust0",
"libssl1.0.2",
"libunwind8",
"libuuid1",
"zlib1g",
"curl",
"libcomerr2",
"libidn2-0",
"libk5crypto3",
"libkrb5-3",
"libldap-2.4-2",
"libldap-common",
"libsasl2-2",
"libnghttp2-14",
"libpsl5",
"librtmp1",
"libssh2-1",
"libkeyutils1",
"libkrb5support0",
"libunistring0",
"libgnutls30",
"libgmp10",
"libhogweed4",
"libidn11",
"libnettle6",
"libp11-kit0",
"libffi6",
"libtasn1-6",
"libsasl2-modules-db",
"libdb5.3",
"libgcrypt20",
"libgpg-error0",
"libacl1",
"libattr1",
"libselinux1",
"libpcre3",
"libbz2-1.0",
"liblzma5",
],
# Takes the first package found: security updates should go first
# If there was a security fix to a package before the stable release, this will find
# the older security release. This happened for stretch libc6.
sources = [
"@debian_stretch_security//file:Packages.json",
"@debian_stretch_backports//file:Packages.json",
"@debian_stretch//file:Packages.json",
],
)
# For Jetty
new_http_archive(
name = "jetty",
build_file = "BUILD.jetty",
sha256 = "ca93c7f88e842fcb1e7bd551c071b3302b7be1faf9cad3ce415af19c77d6cb74",
strip_prefix = "jetty-distribution-9.4.4.v20170414/",
type = "tar.gz",
urls = ["http://central.maven.org/maven2/org/eclipse/jetty/jetty-distribution/9.4.4.v20170414/jetty-distribution-9.4.4.v20170414.tar.gz"],
)
# Node
new_http_archive(
name = "nodejs",
build_file = "experimental/nodejs/BUILD.nodejs",
sha256 = "0e49da19cdf4c89b52656e858346775af21f1953c308efbc803b665d6069c15c",
strip_prefix = "node-v8.9.1-linux-x64/",
type = "tar.gz",
urls = ["https://nodejs.org/dist/v8.9.1/node-v8.9.1-linux-x64.tar.gz"],
)
# dotnet
new_http_archive(
name = "dotnet",
build_file = "experimental/dotnet/BUILD.dotnet",
sha256 = "69ecad24bce4f2132e0db616b49e2c35487d13e3c379dabc3ec860662467b714",
type = "tar.gz",
urls = ["https://download.microsoft.com/download/5/F/0/5F0362BD-7D0A-4A9D-9BF9-022C6B15B04D/dotnet-runtime-2.0.0-linux-x64.tar.gz"],
)
# For the debug image
http_file(
name = "busybox",
executable = True,
sha256 = "b51b9328eb4e60748912e1c1867954a5cf7e9d5294781cae59ce225ed110523c",
urls = ["https://busybox.net/downloads/binaries/1.27.1-i686/busybox"],
)
# Docker rules.
git_repository(
name = "io_bazel_rules_docker",
commit = "7401cb256222615c497c0dee5a4de5724a4f4cc7",
remote = "https://github.com/bazelbuild/rules_docker.git",
)
load(
"@io_bazel_rules_docker//docker:docker.bzl",
"docker_pull",
"docker_repositories",
)
# Used to generate java ca certs.
docker_pull(
name = "debian8",
# From tag: 2017-09-11-115552
digest = "sha256:6d381d0bf292e31291136cff03b3209eb40ef6342fb790483fa1b9d3af84ae46",
registry = "gcr.io",
repository = "google-appengine/debian8",
)
docker_repositories()
# Have the py_image dependencies for testing.
load(
"@io_bazel_rules_docker//python:image.bzl",
_py_image_repos = "repositories",
)
_py_image_repos()
# Have the java_image dependencies for testing.
load(
"@io_bazel_rules_docker//java:image.bzl",
_java_image_repos = "repositories",
)
_java_image_repos()
# Have the go_image dependencies for testing.
load(
"@io_bazel_rules_docker//go:image.bzl",
_go_image_repos = "repositories",
)
_go_image_repos()