mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 04:47:18 +00:00
14dbc2b74d
* Add blst third party dep * initial build * add init * blst passing tests * add feature flag * blst and herumi for spec tests * maybe this works for mac * Actually set feature flag * Add stub for VerifyMultipleSignatures for blst * verifyCompressed * use correct cores sizes * aggregate public keys * add multi-sig verification * encode not hash * revert back * go mod tidy * update blst to latest commit * add batch decompress * fix * add test * gofmt * update blst * go mod tidy * remove kubesec, fix * mod tidy * disable some remote cache * disable some remote cache * disable some remote cache * disable some remote cache * Switch to -D__ADX__ * update * tidy * fix build * Make blst for only linux,amd64 * gofmt * lint * lint * gazelle * fix build tag * more stub methods * shift adx instructions to x86 * fix arm64 * Revert "fix arm64" This reverts commit 4d34ac21b7509a1b385374e3039efecfcab614c1. * add one more in * Revert "Revert "fix arm64"" This reverts commit 1c8ae24ad16ff9811590f1058b9d98c90b63251a. * try darwin now * Revert "try darwin now" This reverts commit 6f884714b8e14a7a803b72157672b6e942047f37. * Add sha256 * remove TODO * checkpoint * finally builds * fix up * add tag * try again * explicit disabling * remove * select properly * fix * better * make CI happy too * Update .bazelrc * Update .bazelrc * fix tests * revert back * Update shared/bls/blst/public_key.go Co-authored-by: Victor Farazdagi <simple.square@gmail.com> * Update shared/bls/blst/public_key.go Co-authored-by: Victor Farazdagi <simple.square@gmail.com> * clean up tests * more clean up * clean up * add * Update shared/bls/blst/signature.go * Update shared/bls/blst/signature.go * Update .buildkite-bazelrc Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com> * try again * remove go tag * revert change * gaz * gazelle ignore Co-authored-by: nisdas <nishdas93@gmail.com> Co-authored-by: Victor Farazdagi <simple.square@gmail.com> Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
87 lines
2.0 KiB
Python
87 lines
2.0 KiB
Python
load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
|
|
load("@io_bazel_rules_docker//contrib:passwd.bzl", "passwd_entry", "passwd_file")
|
|
load("@io_bazel_rules_docker//container:container.bzl", "container_image")
|
|
load("@io_bazel_rules_docker//cc:image.bzl", CC_DEFAULT_BASE = "DEFAULT_BASE")
|
|
load("@io_bazel_rules_docker//go:image.bzl", GO_DEFAULT_BASE = "DEFAULT_BASE")
|
|
load("//tools:build_settings.bzl", "base_image")
|
|
|
|
sh_binary(
|
|
name = "fuzz_wrapper",
|
|
srcs = ["fuzz_wrapper.sh"],
|
|
)
|
|
|
|
################################################################################
|
|
## Docker images as non-root user ##
|
|
################################################################################
|
|
|
|
# Create a passwd file with a root and nonroot user and uid.
|
|
passwd_entry(
|
|
name = "root_user",
|
|
gid = 0,
|
|
uid = 0,
|
|
username = "root",
|
|
)
|
|
|
|
passwd_entry(
|
|
name = "nonroot_user",
|
|
info = "nonroot",
|
|
uid = 1001,
|
|
username = "nonroot",
|
|
)
|
|
|
|
passwd_file(
|
|
name = "passwd",
|
|
entries = [
|
|
":root_user",
|
|
":nonroot_user",
|
|
],
|
|
)
|
|
|
|
# Create a tar file containing the created passwd file
|
|
pkg_tar(
|
|
name = "passwd_tar",
|
|
srcs = [":passwd"],
|
|
mode = "0o644",
|
|
package_dir = "etc",
|
|
)
|
|
|
|
# Include it in our base image as a tar.
|
|
container_image(
|
|
name = "cc_image",
|
|
base = CC_DEFAULT_BASE,
|
|
tars = [":passwd_tar"],
|
|
user = "root",
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
container_image(
|
|
name = "go_image",
|
|
base = GO_DEFAULT_BASE,
|
|
tars = [":passwd_tar"],
|
|
user = "root",
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
base_image(
|
|
name = "base_image",
|
|
build_setting_default = "cc_image",
|
|
)
|
|
|
|
config_setting(
|
|
name = "base_image_alpine",
|
|
flag_values = {"//tools:base_image": "alpine"},
|
|
)
|
|
|
|
config_setting(
|
|
name = "base_image_cc",
|
|
flag_values = {"//tools:base_image": "cc_image"},
|
|
)
|
|
|
|
container_image(
|
|
name = "alpine_cc_image",
|
|
base = "@alpine_cc_linux_amd64//image",
|
|
tars = [":passwd_tar"],
|
|
user = "root",
|
|
visibility = ["//visibility:public"],
|
|
)
|