blob: 406200e0f9b6276b37a1b30ace26d824dce74b2f [file] [log] [blame]
load("@io_bazel_rules_docker//container:container.bzl", "container_image", "container_push")
container_image(
name="with_plugins",
base="@gerrit-3.0.8//image",
files = [
"//devtools/gerrit/gerrit-oauth-provider:gerrit-oauth-provider",
"@com_googlesource_gerrit_plugin_owners//owners:owners.jar",
],
# 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(
name="3.0.8-r1",
base=":with_plugins",
files = [":entrypoint.sh"],
directory = "/",
entrypoint = ["/entrypoint.sh"],
)
container_push(
name = "push",
image = ":3.0.8-r1",
format = "Docker",
registry = "registry.k0.hswaw.net",
repository = "devtools/gerrit",
tag = "3.0.8-r1",
)