Switch gerrit container from jre to jdk packages

The debian openjdk-11-jre-headless package lacks tools like jcmd which
can be useful for debugging the jvm and applications running on top of
the jvm. In particular I had to use `kill -3 $JVM_PID` to get a thread
dump (which worked) instead of jcmd during a recent Gerrit outage.

Since you don't know that you'll need these tools until its too late go
ahead and switch to the jdk package instead of the jre package to be
prepared in the future.

Change-Id: I09a81f1abc6e528b4ffd624050698a99c264f499
This commit is contained in:
Clark Boylan 2023-02-27 12:56:03 -08:00
parent f29930dc40
commit 95c7264ee9

View File

@ -25,7 +25,7 @@ FROM docker.io/opendevorg/python-base:3.9-bullseye as gerrit-base
RUN echo 'APT::Install-Recommends "0";' > /etc/apt/apt.conf.d/95disable-recommends
RUN apt-get update \
&& apt-get install -y dumb-init git openssh-client openjdk-11-jre-headless unzip \
&& apt-get install -y dumb-init git openssh-client openjdk-11-jdk-headless unzip \
# This next set of installs helps align us with the old openjdk image \
# but they may not all be necessary \
&& apt-get install -y xz-utils bzip2 wget curl gnupg \