blob: 4c8b2400781d658c08fdc4dbb856a01908d92f94 [file] [log] [blame]
Sergiusz Bazanski222a00a2020-04-12 18:37:21 +02001load("@io_bazel_rules_docker//container:container.bzl", "container_image", "container_push")
Sergiusz Bazanskia7e26cc2019-06-21 20:38:35 +02002
3container_image(
Serge Bazanski97b5cd72023-07-28 17:14:50 +00004 name = "with_plugins",
Serge Bazanski2ceb69f2023-10-08 12:27:44 +00005 base = "@gerrit-3.7.5//image",
Sergiusz Bazanskia7e26cc2019-06-21 20:38:35 +02006 # we cannot drop it directly in /var/gerrit/plugins as that changes the
7 # directory owner to 0:0 and then breaks the gerrit installer that wants
8 # to overwrite plugins.
9 directory = "/var/gerrit-plugins",
Serge Bazanski97b5cd72023-07-28 17:14:50 +000010 files = [
11 "//devtools/gerrit/gerrit-oauth-provider",
12 "@com_googlesource_gerrit_plugin_owners//owners:owners.jar",
13 ],
Sergiusz Bazanskia7e26cc2019-06-21 20:38:35 +020014)
Serge Bazanski408d5442021-03-17 22:14:53 +010015
Sergiusz Bazanskia7e26cc2019-06-21 20:38:35 +020016container_image(
Serge Bazanski2ceb69f2023-10-08 12:27:44 +000017 name = "3.7.5-r4",
Serge Bazanski408d5442021-03-17 22:14:53 +010018 base = ":with_plugins",
Sergiusz Bazanskia7e26cc2019-06-21 20:38:35 +020019 directory = "/",
20 entrypoint = ["/entrypoint.sh"],
Serge Bazanski97b5cd72023-07-28 17:14:50 +000021 files = [":entrypoint.sh"],
Sergiusz Bazanskia7e26cc2019-06-21 20:38:35 +020022)
23
Sergiusz Bazanski222a00a2020-04-12 18:37:21 +020024container_push(
25 name = "push",
Sergiusz Bazanski222a00a2020-04-12 18:37:21 +020026 format = "Docker",
Serge Bazanski2ceb69f2023-10-08 12:27:44 +000027 image = ":3.7.5-r4",
Sergiusz Bazanski222a00a2020-04-12 18:37:21 +020028 registry = "registry.k0.hswaw.net",
Serge Bazanskiee2f8a32020-12-17 23:06:10 +010029 repository = "q3k/gerrit",
Serge Bazanski2ceb69f2023-10-08 12:27:44 +000030 tag = "3.7.5-r4",
Sergiusz Bazanskia7e26cc2019-06-21 20:38:35 +020031)