Skip to content

Commit 18edef8

Browse files
Merge pull request #851 from ArnauSistach/patch-1
Explicitly set JAVA_HOME in the CentOS image + Add `which` package to the CentOS image
2 parents 17b0991 + c5c1cfa commit 18edef8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile-centos

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM centos
22

3-
RUN yum update -y && yum install -y epel-release && yum install -y git curl dpkg java java-devel unzip && yum clean all
3+
RUN yum update -y && yum install -y epel-release && yum install -y git curl dpkg java java-devel unzip which && yum clean all
4+
ENV JAVA_HOME /etc/alternatives/jre_openjdk
45

56
ARG user=jenkins
67
ARG group=jenkins

0 commit comments

Comments
 (0)