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(
|
|
|
|
name="with_plugins",
|
2020-12-17 22:06:10 +00:00
|
|
|
base="@gerrit-3.3.0//image",
|
2019-06-21 18:38:35 +00:00
|
|
|
files = [
|
2019-07-21 14:39:54 +00:00
|
|
|
"//devtools/gerrit/gerrit-oauth-provider:gerrit-oauth-provider",
|
2020-04-12 16:37:21 +00:00
|
|
|
"@com_googlesource_gerrit_plugin_owners//owners:owners.jar",
|
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",
|
|
|
|
)
|
|
|
|
container_image(
|
2020-12-17 22:06:10 +00:00
|
|
|
name="3.3.0-r7",
|
2019-06-21 18:38:35 +00:00
|
|
|
base=":with_plugins",
|
|
|
|
files = [":entrypoint.sh"],
|
|
|
|
directory = "/",
|
|
|
|
entrypoint = ["/entrypoint.sh"],
|
|
|
|
)
|
|
|
|
|
2020-04-12 16:37:21 +00:00
|
|
|
container_push(
|
|
|
|
name = "push",
|
2020-12-17 22:06:10 +00:00
|
|
|
image = ":3.3.0-r7",
|
2020-04-12 16:37:21 +00:00
|
|
|
format = "Docker",
|
|
|
|
registry = "registry.k0.hswaw.net",
|
2020-12-17 22:06:10 +00:00
|
|
|
repository = "q3k/gerrit",
|
|
|
|
tag = "3.3.0-r7",
|
2019-06-21 18:38:35 +00:00
|
|
|
)
|