From 95c7264ee9885949669bb54096842cbdca4552fd Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Mon, 27 Feb 2023 12:56:03 -0800 Subject: [PATCH] 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 --- docker/gerrit/base/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/gerrit/base/Dockerfile b/docker/gerrit/base/Dockerfile index 922c6fae71..3863afb958 100644 --- a/docker/gerrit/base/Dockerfile +++ b/docker/gerrit/base/Dockerfile @@ -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 \