Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit 15589cb

Browse files
committed
Adapt to JAVA_HOME changing in base image
1 parent 0d06710 commit 15589cb

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

containers/java-11/.devcontainer/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,8 @@ RUN apt-get autoremove -y \
3030
&& rm -rf /var/lib/apt/lists/*
3131
ENV DEBIAN_FRONTEND=dialog
3232

33+
# Allow for a consistant java home location for settings - image is changing over time
34+
RUN if [ ! -d "/docker-java-home" ]; then ln -s "${JAVA_HOME}" /docker-java-home; fi
35+
3336
# Set the default shell to bash instead of sh
3437
ENV SHELL /bin/bash

containers/java-8-tomcat-8.5/.devcontainer/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,8 @@ RUN apt-get autoremove -y \
3838
&& rm -rf /var/lib/apt/lists/*
3939
ENV DEBIAN_FRONTEND=dialog
4040

41+
# Allow for a consistant java home location for settings - image is changing over time
42+
RUN if [ ! -d "/docker-java-home" ]; then ln -s "${JAVA_HOME}" /docker-java-home; fi
43+
4144
# Set the default shell to bash instead of sh
4245
ENV SHELL /bin/bash

containers/java-8/.devcontainer/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,8 @@ RUN apt-get autoremove -y \
3030
&& rm -rf /var/lib/apt/lists/*
3131
ENV DEBIAN_FRONTEND=dialog
3232

33+
# Allow for a consistant java home location for settings - image is changing over time
34+
RUN if [ ! -d "/docker-java-home" ]; then ln -s "${JAVA_HOME}" /docker-java-home; fi
35+
3336
# Set the default shell to bash instead of sh
3437
ENV SHELL /bin/bash

0 commit comments

Comments
 (0)