2020-04-12 16:37:21 +00:00
|
|
|
load("@io_bazel_rules_docker//container:container.bzl", "container_image", "container_push")
|
2019-06-21 18:38:35 +00:00
|
|
|
|
|
|
|
container_image(
|
2023-07-28 17:14:50 +00:00
|
|
|
name = "with_plugins",
|
2023-10-08 12:27:44 +00:00
|
|
|
base = "@gerrit-3.7.5//image",
|
2019-06-21 18:38:35 +00:00
|
|
|
# we cannot drop it directly in /var/gerrit/plugins as that changes the
|
|
|
|
# directory owner to 0:0 and then breaks the gerrit installer that wants
|
|
|
|
# to overwrite plugins.
|
|
|
|
directory = "/var/gerrit-plugins",
|
2023-07-28 17:14:50 +00:00
|
|
|
files = [
|
|
|
|
"//devtools/gerrit/gerrit-oauth-provider",
|
|
|
|
"@com_googlesource_gerrit_plugin_owners//owners:owners.jar",
|
|
|
|
],
|
2019-06-21 18:38:35 +00:00
|
|
|
)
|
2021-03-17 21:14:53 +00:00
|
|
|
|
|
|
|
container_image(
|
2023-10-08 12:27:44 +00:00
|
|
|
name = "3.7.5-r4",
|
2021-03-17 21:14:53 +00:00
|
|
|
base = ":with_plugins",
|
2019-06-21 18:38:35 +00:00
|
|
|
directory = "/",
|
|
|
|
entrypoint = ["/entrypoint.sh"],
|
2023-07-28 17:14:50 +00:00
|
|
|
files = [":entrypoint.sh"],
|
2019-06-21 18:38:35 +00:00
|
|
|
)
|
|
|
|
|
2020-04-12 16:37:21 +00:00
|
|
|
container_push(
|
|
|
|
name = "push",
|
|
|
|
format = "Docker",
|
2023-10-08 12:27:44 +00:00
|
|
|
image = ":3.7.5-r4",
|
2020-04-12 16:37:21 +00:00
|
|
|
registry = "registry.k0.hswaw.net",
|
2020-12-17 22:06:10 +00:00
|
|
|
repository = "q3k/gerrit",
|
2023-10-08 12:27:44 +00:00
|
|
|
tag = "3.7.5-r4",
|
2019-06-21 18:38:35 +00:00
|
|
|
)
|