mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-12-21 02:08:29 +00:00
98 lines
2.0 KiB
Python
98 lines
2.0 KiB
Python
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
|
|
load("//rules_resf:defs.bzl", "container")
|
|
|
|
go_library(
|
|
name = "initdb_lib",
|
|
srcs = ["main.go"],
|
|
importpath = "peridot.resf.org/initdb",
|
|
visibility = ["//visibility:private"],
|
|
deps = [
|
|
"//utils",
|
|
"//vendor/github.com/google/uuid",
|
|
"//vendor/github.com/spf13/cobra",
|
|
"//vendor/github.com/spf13/viper",
|
|
"//vendor/k8s.io/api/core/v1:core",
|
|
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:meta",
|
|
"//vendor/k8s.io/client-go/kubernetes",
|
|
"//vendor/k8s.io/client-go/rest",
|
|
],
|
|
)
|
|
|
|
go_binary(
|
|
name = "initdb",
|
|
embed = [":initdb_lib"],
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
go_binary(
|
|
name = "initdb_amd64",
|
|
embed = [":initdb_lib"],
|
|
goarch = "amd64",
|
|
goos = "linux",
|
|
tags = ["manual"],
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
go_binary(
|
|
name = "initdb_arm64",
|
|
embed = [":initdb_lib"],
|
|
goarch = "arm64",
|
|
goos = "linux",
|
|
tags = ["manual"],
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
go_binary(
|
|
name = "initdb_s390x",
|
|
embed = [":initdb_lib"],
|
|
goarch = "s390x",
|
|
goos = "linux",
|
|
tags = ["manual"],
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
go_binary(
|
|
name = "initdb_ppc64le",
|
|
embed = [":initdb_lib"],
|
|
goarch = "ppc64le",
|
|
goos = "linux",
|
|
tags = ["manual"],
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
container(
|
|
architecture = "amd64",
|
|
base = "//bases/bazel/go:go_amd64",
|
|
files = [
|
|
":initdb_amd64",
|
|
],
|
|
image_name = "initdb",
|
|
)
|
|
|
|
container(
|
|
architecture = "arm64",
|
|
base = "//bases/bazel/go:go_arm64",
|
|
files = [
|
|
":initdb_arm64",
|
|
],
|
|
image_name = "initdb_arm64",
|
|
)
|
|
|
|
container(
|
|
architecture = "s390x",
|
|
base = "//bases/bazel/go:go_s390x",
|
|
files = [
|
|
":initdb_s390x",
|
|
],
|
|
image_name = "initdb_s390x",
|
|
)
|
|
|
|
container(
|
|
architecture = "ppc64le",
|
|
base = "//bases/bazel/go:go_ppc64le",
|
|
files = [
|
|
":initdb_ppc64le",
|
|
],
|
|
image_name = "initdb_ppc64le",
|
|
)
|