diff --git a/Makefile b/Makefile index 9c5f5e8828..347182c3d0 100644 --- a/Makefile +++ b/Makefile @@ -596,10 +596,6 @@ bazel-crossbuild-protokube-image: bazel ${BAZEL_OPTIONS} build ${BAZEL_CONFIG} --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64 //protokube/cmd/protokube:image-bundle-amd64.tar bazel ${BAZEL_OPTIONS} build ${BAZEL_CONFIG} --platforms=@io_bazel_rules_go//go/toolchain:linux_arm64 //protokube/cmd/protokube:image-bundle-arm64.tar -.PHONY: bazel-crossbuild-node-authorizer-image -bazel-crossbuild-node-authorizer-image: - bazel ${BAZEL_OPTIONS} build ${BAZEL_CONFIG} --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64 //images:node-authorizer.tar - .PHONY: bazel-push # Will always push a linux-based build up to the server bazel-push: bazel-crossbuild-nodeup diff --git a/WORKSPACE b/WORKSPACE index af3ee35292..3a74c817b5 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -77,67 +77,6 @@ load( "container_pull", ) -container_pull( - name = "debian_base_amd64", - # 'tag' is also supported, but digest is encouraged for reproducibility. - digest = "sha256:dc06e242160076b72bd75135fb3dd0a9e91f386b2d812ec10cbf9e65864c755d", - registry = "k8s.gcr.io/build-image", - repository = "debian-base-amd64", - tag = "v2.1.3", -) - -git_repository( - name = "distroless", - commit = "f905a6636c5106c36cc979bdcc19f0fe4fc01ede", - remote = "https://github.com/googlecloudplatform/distroless.git", - #shallow_since = "1570036739 -0700", -) - -load( - "@distroless//package_manager:package_manager.bzl", - "package_manager_repositories", -) - -package_manager_repositories() - -load( - "@distroless//package_manager:dpkg.bzl", - "dpkg_list", - "dpkg_src", -) - -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", - "systemd-shim", - ], - sources = [ - "@debian_stretch//file:Packages.json", - ], -) - # TODO(fejta): use load.bzl, repos.bzl from repo-infra git_repository( name = "io_k8s_repo_infra", diff --git a/node-authorizer/images/BUILD.bazel b/node-authorizer/images/BUILD.bazel deleted file mode 100644 index 5733ca3e07..0000000000 --- a/node-authorizer/images/BUILD.bazel +++ /dev/null @@ -1,16 +0,0 @@ -package(default_visibility = ["//visibility:public"]) - -load( - "@io_bazel_rules_docker//container:container.bzl", - "container_image", -) - -container_image( - name = "node-authorizer", - base = "@debian_base_amd64//image", - cmd = ["/usr/bin/node-authorizer"], - directory = "/usr/bin/", - files = [ - "//node-authorizer/cmd/node-authorizer", - ], -)