| workspace(name = "prow_lkml") |
| |
| load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| |
| # rules for go |
| http_archive( |
| name = "io_bazel_rules_go", |
| sha256 = "b7a62250a3a73277ade0ce306d22f122365b513f5402222403e507f2f997d421", |
| urls = ["https://github.com/bazelbuild/rules_go/releases/download/0.16.3/rules_go-0.16.3.tar.gz"], |
| ) |
| |
| load("@io_bazel_rules_go//go:def.bzl", "go_register_toolchains", "go_rules_dependencies") |
| |
| go_rules_dependencies() |
| |
| go_register_toolchains() |
| |
| http_archive( |
| name = "bazel_gazelle", |
| sha256 = "6e875ab4b6bf64a38c352887760f21203ab054676d9c1b274963907e0768740d", |
| urls = ["https://github.com/bazelbuild/bazel-gazelle/releases/download/0.15.0/bazel-gazelle-0.15.0.tar.gz"], |
| ) |
| |
| load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies") |
| |
| gazelle_dependencies() |
| |
| # rules for docker |
| http_archive( |
| name = "io_bazel_rules_docker", |
| sha256 = "29d109605e0d6f9c892584f07275b8c9260803bf0c6fcb7de2623b2bedc910bd", |
| strip_prefix = "rules_docker-0.5.1", |
| urls = ["https://github.com/bazelbuild/rules_docker/archive/v0.5.1.tar.gz"], |
| ) |
| |
| load( |
| "@io_bazel_rules_docker//container:container.bzl", |
| "container_pull", |
| container_repositories = "repositories", |
| ) |
| |
| container_repositories() |
| |
| load( |
| "@io_bazel_rules_docker//go:image.bzl", |
| _go_image_repos = "repositories", |
| ) |
| |
| _go_image_repos() |
| |
| # base images |
| container_pull( |
| name = "git_base", |
| registry = "gcr.io", |
| repository = "k8s-prow/git", |
| tag = "0.2", |
| ) |
| |
| container_pull( |
| name = "debian_base", |
| registry = "index.docker.io", |
| repository = "library/debian", |
| ) |
| |
| container_pull( |
| name = "alpine_base", |
| registry = "index.docker.io", |
| repository = "library/alpine", |
| ) |
| |
| # import git daemon |
| http_archive( |
| name = "git_daemon", |
| build_file_content = """ |
| load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar") |
| |
| pkg_tar( |
| name = "files", |
| srcs = glob(["**"]), |
| strip_prefix = ".", |
| visibility = ["//visibility:public"], |
| ) |
| """, |
| type = "tar.gz", |
| urls = ["http://dl-cdn.alpinelinux.org/alpine/v3.6/main/x86_64/git-daemon-2.13.7-r2.apk"], |
| ) |
| |
| load("@bazel_gazelle//:deps.bzl", "go_repository") |
| load( |
| "@bazel_tools//tools/build_defs/repo:git.bzl", |
| "git_repository", |
| "new_git_repository", |
| ) |
| |
| git_repository( |
| name = "test_infra", |
| branch = "master", |
| remote = "https://github.com/kubernetes/test-infra", |
| ) |
| |
| new_git_repository( |
| name = "go_smtpd", |
| branch = "master", |
| build_file_content = """ |
| load("@io_bazel_rules_go//go:def.bzl", "go_library") |
| |
| go_library( |
| name = "go_default_library", |
| srcs = ["smtpd/smtpd.go"], |
| importpath = "github.com/bradfitz/go-smtpd", |
| visibility = ["//visibility:public"], |
| ) |
| """, |
| remote = "https://github.com/bradfitz/go-smtpd", |
| ) |