Sergiusz Bazanski | 222a00a | 2020-04-12 18:37:21 +0200 | [diff] [blame] | 1 | load("@io_bazel_rules_docker//container:container.bzl", "container_image", "container_push") |
Sergiusz Bazanski | a7e26cc | 2019-06-21 20:38:35 +0200 | [diff] [blame] | 2 | |
| 3 | container_image( |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 4 | name = "with_plugins", |
| 5 | base = "@gerrit-3.3.2//image", |
Sergiusz Bazanski | a7e26cc | 2019-06-21 20:38:35 +0200 | [diff] [blame] | 6 | # 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 Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 10 | files = [ |
| 11 | "//devtools/gerrit/gerrit-oauth-provider", |
| 12 | "@com_googlesource_gerrit_plugin_owners//owners:owners.jar", |
| 13 | ], |
Sergiusz Bazanski | a7e26cc | 2019-06-21 20:38:35 +0200 | [diff] [blame] | 14 | ) |
Serge Bazanski | 408d544 | 2021-03-17 22:14:53 +0100 | [diff] [blame] | 15 | |
Sergiusz Bazanski | a7e26cc | 2019-06-21 20:38:35 +0200 | [diff] [blame] | 16 | container_image( |
Serge Bazanski | 408d544 | 2021-03-17 22:14:53 +0100 | [diff] [blame] | 17 | name = "with_theme", |
| 18 | base = ":with_plugins", |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 19 | directory = "/var/gerrit-theme", |
Serge Bazanski | 408d544 | 2021-03-17 22:14:53 +0100 | [diff] [blame] | 20 | files = [ |
| 21 | "theme/etc/GerritSite.css", |
| 22 | "theme/static/pepper-icon.png", |
| 23 | ], |
Serge Bazanski | 408d544 | 2021-03-17 22:14:53 +0100 | [diff] [blame] | 24 | ) |
| 25 | |
Serge Bazanski | 146c99e | 2021-03-18 19:15:38 +0000 | [diff] [blame] | 26 | # Add gerrit 3.3.2 with backported fix. See org_q3k_gerrit_3_3_2_backport in |
| 27 | # WORKSPACE for more background. |
| 28 | # TODO(q3k): drop once gerrit > 3.3.2 lands. |
Serge Bazanski | 408d544 | 2021-03-17 22:14:53 +0100 | [diff] [blame] | 29 | container_image( |
Serge Bazanski | 146c99e | 2021-03-18 19:15:38 +0000 | [diff] [blame] | 30 | name = "with_gerrit_override", |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 31 | base = "with_theme", |
| 32 | directory = "/var/gerrit/bin/", |
Serge Bazanski | 146c99e | 2021-03-18 19:15:38 +0000 | [diff] [blame] | 33 | files = [ |
| 34 | "@org_q3k_gerrit_3_3_2_backport//file:gerrit.war", |
| 35 | ], |
Serge Bazanski | 146c99e | 2021-03-18 19:15:38 +0000 | [diff] [blame] | 36 | ) |
| 37 | |
| 38 | container_image( |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 39 | name = "3.3.2-r4", |
| 40 | base = ":with_gerrit_override", |
Sergiusz Bazanski | a7e26cc | 2019-06-21 20:38:35 +0200 | [diff] [blame] | 41 | directory = "/", |
| 42 | entrypoint = ["/entrypoint.sh"], |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 43 | files = [":entrypoint.sh"], |
Sergiusz Bazanski | a7e26cc | 2019-06-21 20:38:35 +0200 | [diff] [blame] | 44 | ) |
| 45 | |
Sergiusz Bazanski | 222a00a | 2020-04-12 18:37:21 +0200 | [diff] [blame] | 46 | container_push( |
| 47 | name = "push", |
Sergiusz Bazanski | 222a00a | 2020-04-12 18:37:21 +0200 | [diff] [blame] | 48 | format = "Docker", |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 49 | image = ":3.3.2-r4", |
Sergiusz Bazanski | 222a00a | 2020-04-12 18:37:21 +0200 | [diff] [blame] | 50 | registry = "registry.k0.hswaw.net", |
Serge Bazanski | ee2f8a3 | 2020-12-17 23:06:10 +0100 | [diff] [blame] | 51 | repository = "q3k/gerrit", |
Serge Bazanski | 146c99e | 2021-03-18 19:15:38 +0000 | [diff] [blame] | 52 | tag = "3.3.2-r4", |
Sergiusz Bazanski | a7e26cc | 2019-06-21 20:38:35 +0200 | [diff] [blame] | 53 | ) |