Skip to content

Commit

Permalink
JAVA_HOME is needed for some jdk contexts (#10)
Browse files Browse the repository at this point in the history
Co-authored-by: Houssem Ben Ali <hbenali.tn@gmail.com>
  • Loading branch information
bourasom and hbenali authored Apr 30, 2024
1 parent 5dee127 commit 337916f
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions openjdk-11/ubuntu/18.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ RUN apt-get -qq update && \
RUN apt-get -qq -y autoremove && \
apt-get -qq -y clean && \
rm -rf /var/lib/apt/lists/*
ENV JAVA_HOME /usr/lib/jvm/zulu${JDK_MAJOR_VERSION}-ca-amd64

ENTRYPOINT ["/usr/local/bin/tini", "--", "/usr/bin/java"]
1 change: 1 addition & 0 deletions openjdk-11/ubuntu/20.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ RUN apt-get -qq update && \
RUN apt-get -qq -y autoremove && \
apt-get -qq -y clean && \
rm -rf /var/lib/apt/lists/*
ENV JAVA_HOME /usr/lib/jvm/zulu${JDK_MAJOR_VERSION}-ca-amd64

ENTRYPOINT ["/usr/local/bin/tini", "--", "/usr/bin/java"]
1 change: 1 addition & 0 deletions openjdk-11/ubuntu/22.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ RUN apt-get -qq update && \
RUN apt-get -qq -y autoremove && \
apt-get -qq -y clean && \
rm -rf /var/lib/apt/lists/*
ENV JAVA_HOME /usr/lib/jvm/zulu${JDK_MAJOR_VERSION}-ca-amd64

ENTRYPOINT ["/usr/local/bin/tini", "--", "/usr/bin/java"]
1 change: 1 addition & 0 deletions openjdk-17/ubuntu/20.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ RUN apt-get -qq update && \
RUN apt-get -qq -y autoremove && \
apt-get -qq -y clean && \
rm -rf /var/lib/apt/lists/*
ENV JAVA_HOME /usr/lib/jvm/zulu${JDK_MAJOR_VERSION}-ca-amd64

ENTRYPOINT ["/usr/local/bin/tini", "--", "/usr/bin/java"]
1 change: 1 addition & 0 deletions openjdk-17/ubuntu/22.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ RUN apt-get -qq update && \
RUN apt-get -qq -y autoremove && \
apt-get -qq -y clean && \
rm -rf /var/lib/apt/lists/*
ENV JAVA_HOME /usr/lib/jvm/zulu${JDK_MAJOR_VERSION}-ca-amd64

ENTRYPOINT ["/usr/local/bin/tini", "--", "/usr/bin/java"]
1 change: 1 addition & 0 deletions openjdk-17/ubuntu/24.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ RUN apt-get -qq update && \
RUN apt-get -qq -y autoremove && \
apt-get -qq -y clean && \
rm -rf /var/lib/apt/lists/*
ENV JAVA_HOME /usr/lib/jvm/zulu${JDK_MAJOR_VERSION}-ca-amd64

ENTRYPOINT ["/usr/local/bin/tini", "--", "/usr/bin/java"]
1 change: 1 addition & 0 deletions openjdk-21/ubuntu/22.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ RUN apt-get -qq update && \
RUN apt-get -qq -y autoremove && \
apt-get -qq -y clean && \
rm -rf /var/lib/apt/lists/*
ENV JAVA_HOME /usr/lib/jvm/zulu${JDK_MAJOR_VERSION}-ca-amd64

ENTRYPOINT ["/usr/local/bin/tini", "--", "/usr/bin/java"]
1 change: 1 addition & 0 deletions openjdk-21/ubuntu/24.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ RUN apt-get -qq update && \
RUN apt-get -qq -y autoremove && \
apt-get -qq -y clean && \
rm -rf /var/lib/apt/lists/*
ENV JAVA_HOME /usr/lib/jvm/zulu${JDK_MAJOR_VERSION}-ca-amd64

ENTRYPOINT ["/usr/local/bin/tini", "--", "/usr/bin/java"]
1 change: 1 addition & 0 deletions openjdk-8/ubuntu/18.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ RUN apt-get -qq update && \
RUN apt-get -qq -y autoremove && \
apt-get -qq -y clean && \
rm -rf /var/lib/apt/lists/*
ENV JAVA_HOME /usr/lib/jvm/zulu${JDK_MAJOR_VERSION}-ca-amd64

ENTRYPOINT ["/usr/local/bin/tini", "--", "/usr/bin/java"]
1 change: 1 addition & 0 deletions openjdk-8/ubuntu/20.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ RUN apt-get -qq update && \
RUN apt-get -qq -y autoremove && \
apt-get -qq -y clean && \
rm -rf /var/lib/apt/lists/*
ENV JAVA_HOME /usr/lib/jvm/zulu${JDK_MAJOR_VERSION}-ca-amd64

ENTRYPOINT ["/usr/local/bin/tini", "--", "/usr/bin/java"]
1 change: 1 addition & 0 deletions openjdk-8/ubuntu/22.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ RUN apt-get -qq update && \
RUN apt-get -qq -y autoremove && \
apt-get -qq -y clean && \
rm -rf /var/lib/apt/lists/*
ENV JAVA_HOME /usr/lib/jvm/zulu${JDK_MAJOR_VERSION}-ca-amd64

ENTRYPOINT ["/usr/local/bin/tini", "--", "/usr/bin/java"]

0 comments on commit 337916f

Please sign in to comment.