| # Copyright 2017 The Bazel Authors. All rights reserved. |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| workspace(name = "bazel_toolchains") |
| |
| load( |
| "//skylib:package_names.bzl", |
| "jessie_package_names", |
| ) |
| load( |
| "//repositories:repositories.bzl", |
| bazel_toolchains_repositories = "repositories", |
| ) |
| |
| bazel_toolchains_repositories() |
| |
| load( |
| "@io_bazel_rules_docker//container:container.bzl", |
| "container_pull", |
| container_repositories = "repositories", |
| ) |
| |
| container_repositories() |
| |
| load( |
| "//repositories:images.bzl", |
| bazel_toolchains_images = "images", |
| ) |
| |
| bazel_toolchains_images() |
| |
| load("@io_bazel_rules_go//go:def.bzl", "go_register_toolchains", "go_rules_dependencies") |
| |
| go_rules_dependencies() |
| |
| go_register_toolchains() |
| |
| load( |
| "@distroless//package_manager:package_manager.bzl", |
| "dpkg_list", |
| "dpkg_src", |
| "package_manager_repositories", |
| ) |
| |
| # This is only needed by the old package manager. |
| package_manager_repositories() |
| |
| container_pull( |
| name = "official_jessie", |
| registry = "index.docker.io", |
| repository = "library/debian", |
| tag = "jessie", |
| ) |
| |
| container_pull( |
| name = "official_xenial", |
| registry = "index.docker.io", |
| repository = "library/ubuntu", |
| tag = "16.04", |
| ) |
| |
| # The Debian snapshot datetime to use. |
| # This is kept up-to-date with https://github.com/GoogleCloudPlatform/base-images-docker/blob/master/WORKSPACE. |
| DEB_SNAPSHOT = "20180312T052343Z" |
| |
| dpkg_src( |
| name = "debian_jessie", |
| arch = "amd64", |
| distro = "jessie", |
| sha256 = "20720c9367e9454dee3d173e4d3fd85ab5530292f4ec6654feb5a810b6bb37ce", |
| snapshot = DEB_SNAPSHOT, |
| url = "http://snapshot.debian.org/archive", |
| ) |
| |
| dpkg_src( |
| name = "debian_jessie_backports", |
| arch = "amd64", |
| distro = "jessie-backports", |
| sha256 = "28afadff87f53bcb754d571df4174f0b8cbabd1600be82a062932df6eb4b7b70", |
| snapshot = DEB_SNAPSHOT, |
| url = "http://snapshot.debian.org/archive", |
| ) |
| |
| dpkg_src( |
| name = "debian_jessie_ca_certs", |
| arch = "amd64", |
| distro = "jessie", |
| sha256 = "26e8275be588d35313eac65a1a88b17a1052eb323255048b13bdf0653421a9f2", |
| snapshot = "20161107T033615Z", |
| url = "http://snapshot.debian.org/archive", |
| ) |
| |
| dpkg_list( |
| name = "jessie_package_bundle", |
| packages = jessie_package_names(), |
| sources = [ |
| "@debian_jessie//file:Packages.json", |
| "@debian_jessie_backports//file:Packages.json", |
| ], |
| ) |
| |
| dpkg_list( |
| name = "jessie_ca_certs_package_bundle", |
| packages = ["ca-certificates-java"], |
| sources = [ |
| "@debian_jessie_ca_certs//file:Packages.json", |
| ], |
| ) |
| |
| # Test purpose only. bazel-toolchains repo at release for Bazel 0.10.0. |
| # https://github.com/bazelbuild/bazel-toolchains/releases/tag/acffd62 |
| http_file( |
| name = "bazel_toolchains_test", |
| sha256 = "699b55a6916c687f4b7dc092dbbf5f64672cde0dc965f79717735ec4e5416556", |
| urls = [ |
| "https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/44200e0c026d86c53470d107b3697a3e46469c43.tar.gz", |
| "https://github.com/bazelbuild/bazel-toolchains/archive/44200e0c026d86c53470d107b3697a3e46469c43.tar.gz", |
| ], |
| ) |