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( |
| 4 | name="with_plugins", |
Serge Bazanski | dd69221 | 2021-03-11 17:51:02 +0100 | [diff] [blame] | 5 | base="@gerrit-3.3.2//image", |
Sergiusz Bazanski | a7e26cc | 2019-06-21 20:38:35 +0200 | [diff] [blame] | 6 | files = [ |
Sergiusz Bazanski | 57efce6 | 2019-07-21 16:39:54 +0200 | [diff] [blame] | 7 | "//devtools/gerrit/gerrit-oauth-provider:gerrit-oauth-provider", |
Sergiusz Bazanski | 222a00a | 2020-04-12 18:37:21 +0200 | [diff] [blame] | 8 | "@com_googlesource_gerrit_plugin_owners//owners:owners.jar", |
Sergiusz Bazanski | a7e26cc | 2019-06-21 20:38:35 +0200 | [diff] [blame] | 9 | ], |
| 10 | # we cannot drop it directly in /var/gerrit/plugins as that changes the |
| 11 | # directory owner to 0:0 and then breaks the gerrit installer that wants |
| 12 | # to overwrite plugins. |
| 13 | directory = "/var/gerrit-plugins", |
| 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", |
| 19 | files = [ |
| 20 | "theme/etc/GerritSite.css", |
| 21 | "theme/static/pepper-icon.png", |
| 22 | ], |
| 23 | directory = "/var/gerrit-theme", |
| 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", |
| 31 | base="with_theme", |
| 32 | files = [ |
| 33 | "@org_q3k_gerrit_3_3_2_backport//file:gerrit.war", |
| 34 | ], |
| 35 | directory = "/var/gerrit/bin/", |
| 36 | ) |
| 37 | |
| 38 | container_image( |
| 39 | name="3.3.2-r4", |
| 40 | base=":with_gerrit_override", |
Sergiusz Bazanski | a7e26cc | 2019-06-21 20:38:35 +0200 | [diff] [blame] | 41 | files = [":entrypoint.sh"], |
| 42 | directory = "/", |
| 43 | entrypoint = ["/entrypoint.sh"], |
| 44 | ) |
| 45 | |
Sergiusz Bazanski | 222a00a | 2020-04-12 18:37:21 +0200 | [diff] [blame] | 46 | container_push( |
| 47 | name = "push", |
Serge Bazanski | 146c99e | 2021-03-18 19:15:38 +0000 | [diff] [blame] | 48 | image = ":3.3.2-r4", |
Sergiusz Bazanski | 222a00a | 2020-04-12 18:37:21 +0200 | [diff] [blame] | 49 | format = "Docker", |
| 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 | ) |