prysm-pulse/tools/BUILD.bazel
Preston Van Loon 8839015312
docker: Add coreutils to docker images (#13564)
* Add coreutils to docker images

* add coreutils dependencies

* Add a prysmaticlabs.com/uploads backup of the deb files

* Run gazelle and fix issues

* Remove broken tar, change http_archive deps to debian_archive, remove http mirrors in favor of snapshot

* Add comments about which deps are required by other deps
2024-02-03 19:21:21 +00:00

35 lines
779 B
Python

load("@rules_pkg//pkg:pkg.bzl", "pkg_tar")
load("@rules_distroless//distroless:defs.bzl", "passwd")
passwd(
name = "passwd",
passwds = [
dict(
gecos = ["root"],
gid = 0,
home = "/root",
shell = "/bin/bash",
uid = 0,
username = "root",
),
dict(
gecos = ["nonroot"],
gid = 1001,
home = "/home/nonroot",
shell = "/bin/bash",
uid = 1001,
username = "nonroot",
),
],
)
# Create a tar file containing the created passwd file
pkg_tar(
name = "passwd_tar",
srcs = [":passwd"],
mode = "0o644",
package_dir = "etc",
tags = ["manual"],
visibility = ["//visibility:public"],
)