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

Commit

Permalink
Adapt to JAVA_HOME changing in base image
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuxel committed May 28, 2019
1 parent 0d06710 commit 15589cb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions containers/java-11/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,8 @@ RUN apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
ENV DEBIAN_FRONTEND=dialog

# Allow for a consistant java home location for settings - image is changing over time
RUN if [ ! -d "/docker-java-home" ]; then ln -s "${JAVA_HOME}" /docker-java-home; fi

# Set the default shell to bash instead of sh
ENV SHELL /bin/bash
3 changes: 3 additions & 0 deletions containers/java-8-tomcat-8.5/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,8 @@ RUN apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
ENV DEBIAN_FRONTEND=dialog

# Allow for a consistant java home location for settings - image is changing over time
RUN if [ ! -d "/docker-java-home" ]; then ln -s "${JAVA_HOME}" /docker-java-home; fi

# Set the default shell to bash instead of sh
ENV SHELL /bin/bash
3 changes: 3 additions & 0 deletions containers/java-8/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,8 @@ RUN apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
ENV DEBIAN_FRONTEND=dialog

# Allow for a consistant java home location for settings - image is changing over time
RUN if [ ! -d "/docker-java-home" ]; then ln -s "${JAVA_HOME}" /docker-java-home; fi

# Set the default shell to bash instead of sh
ENV SHELL /bin/bash

0 comments on commit 15589cb

Please sign in to comment.