-
Notifications
You must be signed in to change notification settings - Fork 476
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
283 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM mcr.microsoft.com/windows/nanoserver:1803 | ||
|
||
SHELL ["cmd", "/s", "/c"] | ||
|
||
ENV JAVA_HOME C:\\openjdk-11 | ||
# "ERROR: Access to the registry path is denied." | ||
USER ContainerAdministrator | ||
RUN echo Updating PATH: %JAVA_HOME%\bin;%PATH% \ | ||
&& setx /M PATH %JAVA_HOME%\bin;%PATH% | ||
USER ContainerUser | ||
|
||
# https://adoptopenjdk.net/upstream.html | ||
ENV JAVA_VERSION 11.0.3 | ||
# https://github.com/docker-library/openjdk/issues/320#issuecomment-494050246 | ||
|
||
COPY --from=openjdk:11.0.3-windowsservercore-1803 $JAVA_HOME $JAVA_HOME | ||
|
||
RUN echo Verifying install ... \ | ||
&& echo javac --version && javac --version \ | ||
&& echo java --version && java --version | ||
|
||
# "jshell" is an interactive REPL for Java (see https://en.wikipedia.org/wiki/JShell) | ||
CMD ["jshell"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM mcr.microsoft.com/windows/nanoserver:1809 | ||
|
||
SHELL ["cmd", "/s", "/c"] | ||
|
||
ENV JAVA_HOME C:\\openjdk-11 | ||
# "ERROR: Access to the registry path is denied." | ||
USER ContainerAdministrator | ||
RUN echo Updating PATH: %JAVA_HOME%\bin;%PATH% \ | ||
&& setx /M PATH %JAVA_HOME%\bin;%PATH% | ||
USER ContainerUser | ||
|
||
# https://adoptopenjdk.net/upstream.html | ||
ENV JAVA_VERSION 11.0.3 | ||
# https://github.com/docker-library/openjdk/issues/320#issuecomment-494050246 | ||
|
||
COPY --from=openjdk:11.0.3-windowsservercore-1809 $JAVA_HOME $JAVA_HOME | ||
|
||
RUN echo Verifying install ... \ | ||
&& echo javac --version && javac --version \ | ||
&& echo java --version && java --version | ||
|
||
# "jshell" is an interactive REPL for Java (see https://en.wikipedia.org/wiki/JShell) | ||
CMD ["jshell"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM mcr.microsoft.com/windows/nanoserver:1803 | ||
|
||
SHELL ["cmd", "/s", "/c"] | ||
|
||
ENV JAVA_HOME C:\\openjdk-12 | ||
# "ERROR: Access to the registry path is denied." | ||
USER ContainerAdministrator | ||
RUN echo Updating PATH: %JAVA_HOME%\bin;%PATH% \ | ||
&& setx /M PATH %JAVA_HOME%\bin;%PATH% | ||
USER ContainerUser | ||
|
||
# https://jdk.java.net/ | ||
ENV JAVA_VERSION 12.0.1 | ||
|
||
COPY --from=openjdk:12.0.1-windowsservercore-1803 $JAVA_HOME $JAVA_HOME | ||
|
||
RUN echo Verifying install ... \ | ||
&& echo javac --version && javac --version \ | ||
&& echo java --version && java --version | ||
|
||
# "jshell" is an interactive REPL for Java (see https://en.wikipedia.org/wiki/JShell) | ||
CMD ["jshell"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM mcr.microsoft.com/windows/nanoserver:1809 | ||
|
||
SHELL ["cmd", "/s", "/c"] | ||
|
||
ENV JAVA_HOME C:\\openjdk-12 | ||
# "ERROR: Access to the registry path is denied." | ||
USER ContainerAdministrator | ||
RUN echo Updating PATH: %JAVA_HOME%\bin;%PATH% \ | ||
&& setx /M PATH %JAVA_HOME%\bin;%PATH% | ||
USER ContainerUser | ||
|
||
# https://jdk.java.net/ | ||
ENV JAVA_VERSION 12.0.1 | ||
|
||
COPY --from=openjdk:12.0.1-windowsservercore-1809 $JAVA_HOME $JAVA_HOME | ||
|
||
RUN echo Verifying install ... \ | ||
&& echo javac --version && javac --version \ | ||
&& echo java --version && java --version | ||
|
||
# "jshell" is an interactive REPL for Java (see https://en.wikipedia.org/wiki/JShell) | ||
CMD ["jshell"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM mcr.microsoft.com/windows/nanoserver:1803 | ||
|
||
SHELL ["cmd", "/s", "/c"] | ||
|
||
ENV JAVA_HOME C:\\openjdk-13 | ||
# "ERROR: Access to the registry path is denied." | ||
USER ContainerAdministrator | ||
RUN echo Updating PATH: %JAVA_HOME%\bin;%PATH% \ | ||
&& setx /M PATH %JAVA_HOME%\bin;%PATH% | ||
USER ContainerUser | ||
|
||
# https://jdk.java.net/ | ||
ENV JAVA_VERSION 13-ea+27 | ||
|
||
COPY --from=openjdk:13-ea-27-windowsservercore-1803 $JAVA_HOME $JAVA_HOME | ||
|
||
RUN echo Verifying install ... \ | ||
&& echo javac --version && javac --version \ | ||
&& echo java --version && java --version | ||
|
||
# "jshell" is an interactive REPL for Java (see https://en.wikipedia.org/wiki/JShell) | ||
CMD ["jshell"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM mcr.microsoft.com/windows/nanoserver:1809 | ||
|
||
SHELL ["cmd", "/s", "/c"] | ||
|
||
ENV JAVA_HOME C:\\openjdk-13 | ||
# "ERROR: Access to the registry path is denied." | ||
USER ContainerAdministrator | ||
RUN echo Updating PATH: %JAVA_HOME%\bin;%PATH% \ | ||
&& setx /M PATH %JAVA_HOME%\bin;%PATH% | ||
USER ContainerUser | ||
|
||
# https://jdk.java.net/ | ||
ENV JAVA_VERSION 13-ea+27 | ||
|
||
COPY --from=openjdk:13-ea-27-windowsservercore-1809 $JAVA_HOME $JAVA_HOME | ||
|
||
RUN echo Verifying install ... \ | ||
&& echo javac --version && javac --version \ | ||
&& echo java --version && java --version | ||
|
||
# "jshell" is an interactive REPL for Java (see https://en.wikipedia.org/wiki/JShell) | ||
CMD ["jshell"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM mcr.microsoft.com/windows/nanoserver:1803 | ||
|
||
SHELL ["cmd", "/s", "/c"] | ||
|
||
ENV JAVA_HOME C:\\openjdk-8 | ||
# "ERROR: Access to the registry path is denied." | ||
USER ContainerAdministrator | ||
RUN echo Updating PATH: %JAVA_HOME%\bin;%PATH% \ | ||
&& setx /M PATH %JAVA_HOME%\bin;%PATH% | ||
USER ContainerUser | ||
|
||
# https://adoptopenjdk.net/upstream.html | ||
ENV JAVA_VERSION 8u212-b04 | ||
# https://github.com/docker-library/openjdk/issues/320#issuecomment-494050246 | ||
|
||
COPY --from=openjdk:8u212-b04-windowsservercore-1803 $JAVA_HOME $JAVA_HOME | ||
|
||
RUN echo Verifying install ... \ | ||
&& echo javac -version && javac -version \ | ||
&& echo java -version && java -version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM mcr.microsoft.com/windows/nanoserver:1809 | ||
|
||
SHELL ["cmd", "/s", "/c"] | ||
|
||
ENV JAVA_HOME C:\\openjdk-8 | ||
# "ERROR: Access to the registry path is denied." | ||
USER ContainerAdministrator | ||
RUN echo Updating PATH: %JAVA_HOME%\bin;%PATH% \ | ||
&& setx /M PATH %JAVA_HOME%\bin;%PATH% | ||
USER ContainerUser | ||
|
||
# https://adoptopenjdk.net/upstream.html | ||
ENV JAVA_VERSION 8u212-b04 | ||
# https://github.com/docker-library/openjdk/issues/320#issuecomment-494050246 | ||
|
||
COPY --from=openjdk:8u212-b04-windowsservercore-1809 $JAVA_HOME $JAVA_HOME | ||
|
||
RUN echo Verifying install ... \ | ||
&& echo javac -version && javac -version \ | ||
&& echo java -version && java -version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM mcr.microsoft.com/windows/nanoserver:1803 | ||
|
||
SHELL ["cmd", "/s", "/c"] | ||
|
||
ENV JAVA_HOME C:\\openjdk-8 | ||
# "ERROR: Access to the registry path is denied." | ||
USER ContainerAdministrator | ||
RUN echo Updating PATH: %JAVA_HOME%\bin;%PATH% \ | ||
&& setx /M PATH %JAVA_HOME%\bin;%PATH% | ||
USER ContainerUser | ||
|
||
# https://adoptopenjdk.net/upstream.html | ||
ENV JAVA_VERSION 8u212-b04 | ||
# https://github.com/docker-library/openjdk/issues/320#issuecomment-494050246 | ||
|
||
COPY --from=openjdk:8u212-b04-windowsservercore-1803 $JAVA_HOME $JAVA_HOME | ||
|
||
RUN echo Verifying install ... \ | ||
&& echo java -version && java -version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM mcr.microsoft.com/windows/nanoserver:1809 | ||
|
||
SHELL ["cmd", "/s", "/c"] | ||
|
||
ENV JAVA_HOME C:\\openjdk-8 | ||
# "ERROR: Access to the registry path is denied." | ||
USER ContainerAdministrator | ||
RUN echo Updating PATH: %JAVA_HOME%\bin;%PATH% \ | ||
&& setx /M PATH %JAVA_HOME%\bin;%PATH% | ||
USER ContainerUser | ||
|
||
# https://adoptopenjdk.net/upstream.html | ||
ENV JAVA_VERSION 8u212-b04 | ||
# https://github.com/docker-library/openjdk/issues/320#issuecomment-494050246 | ||
|
||
COPY --from=openjdk:8u212-b04-windowsservercore-1809 $JAVA_HOME $JAVA_HOME | ||
|
||
RUN echo Verifying install ... \ | ||
&& echo java -version && java -version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM placeholder | ||
|
||
SHELL ["cmd", "/s", "/c"] | ||
|
||
ENV JAVA_HOME placeholder | ||
# "ERROR: Access to the registry path is denied." | ||
USER ContainerAdministrator | ||
RUN echo Updating PATH: %JAVA_HOME%\bin;%PATH% \ | ||
&& setx /M PATH %JAVA_HOME%\bin;%PATH% | ||
USER ContainerUser | ||
|
||
# https://adoptopenjdk.net/upstream.html | ||
ENV JAVA_VERSION placeholder | ||
# https://github.com/docker-library/openjdk/issues/320#issuecomment-494050246 | ||
|
||
COPY --from=%%SERVERCORE-IMAGE%% $JAVA_HOME $JAVA_HOME | ||
|
||
RUN echo Verifying install ... \ | ||
&& echo javac --version && javac --version \ | ||
&& echo java --version && java --version | ||
|
||
# TODO "Launching JShell execution engine threw: C:\openjdk-13\bin\net.dll: Can't find dependent libraries" | ||
# https://bugs.openjdk.java.net/browse/JDK-8218486 | ||
# https://bugs.openjdk.java.net/browse/JDK-8225425 | ||
|
||
# "jshell" is an interactive REPL for Java (see https://en.wikipedia.org/wiki/JShell) | ||
CMD ["jshell"] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM placeholder | ||
|
||
SHELL ["cmd", "/s", "/c"] | ||
|
||
ENV JAVA_HOME placeholder | ||
# "ERROR: Access to the registry path is denied." | ||
USER ContainerAdministrator | ||
RUN echo Updating PATH: %JAVA_HOME%\bin;%PATH% \ | ||
&& setx /M PATH %JAVA_HOME%\bin;%PATH% | ||
USER ContainerUser | ||
|
||
# https://jdk.java.net/ | ||
ENV JAVA_VERSION placeholder | ||
|
||
COPY --from=%%SERVERCORE-IMAGE%% $JAVA_HOME $JAVA_HOME | ||
|
||
RUN echo Verifying install ... \ | ||
&& echo javac --version && javac --version \ | ||
&& echo java --version && java --version | ||
|
||
# TODO "Launching JShell execution engine threw: C:\openjdk-13\bin\net.dll: Can't find dependent libraries" | ||
# https://bugs.openjdk.java.net/browse/JDK-8218486 | ||
# https://bugs.openjdk.java.net/browse/JDK-8225425 | ||
|
||
# "jshell" is an interactive REPL for Java (see https://en.wikipedia.org/wiki/JShell) | ||
CMD ["jshell"] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters