1
0
Fork 0

devtools/gerrit: attempt to deploy theme

This doesn't entirely work, as we need to use PolyGerrit 3 compatible
theme injection.

Change-Id: I13305a4774028bdb92c1449ddb461b59ce8ae82f
master
q3k 2021-03-17 22:14:53 +01:00 committed by q3k
parent ee3c90cbf0
commit 408d544898
5 changed files with 27 additions and 5 deletions

View File

@ -12,9 +12,20 @@ container_image(
# to overwrite plugins.
directory = "/var/gerrit-plugins",
)
container_image(
name="3.3.2-r1",
base=":with_plugins",
name = "with_theme",
base = ":with_plugins",
files = [
"theme/etc/GerritSite.css",
"theme/static/pepper-icon.png",
],
directory = "/var/gerrit-theme",
)
container_image(
name="3.3.2-r3",
base=":with_theme",
files = [":entrypoint.sh"],
directory = "/",
entrypoint = ["/entrypoint.sh"],
@ -22,9 +33,9 @@ container_image(
container_push(
name = "push",
image = ":3.3.2-r1",
image = ":3.3.2-r3",
format = "Docker",
registry = "registry.k0.hswaw.net",
repository = "q3k/gerrit",
tag = "3.3.2-r1",
tag = "3.3.2-r3",
)

View File

@ -19,6 +19,10 @@ cp /var/gerrit-secure/secure.config /var/gerrit/etc/secure.config
cp /var/gerrit-plugins/* /var/gerrit/plugins/
mkdir -p /var/gerrit/static
cp -r /var/gerrit-theme/*png /var/gerrit/static/
cp -r /var/gerrit-theme/*css /var/gerrit/etc/
echo "Starting config updater..."
# Keep copying config over in background. We cannot run directly from
# the configmap filesystem as gerrit really wants a read-write FS.

View File

@ -38,7 +38,7 @@ local kube = import "../../../kube/kube.libsonnet";
address: "gerrit@hackerspace.pl",
},
tag: "3.3.2-r1",
tag: "3.3.2-r3",
image: "registry.k0.hswaw.net/q3k/gerrit:" + cfg.tag,
resources: {
requests: {

View File

@ -0,0 +1,7 @@
html {
--header-background-color: #347dbe;
--header-text-color: #fff;
--header-title-content: "Gerrit";
--header-icon: url('/static/pepper-icon.png');
--header-icon-size: 1em;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB