From cfc327cb3994160667945b9583f699c9cdae0721 Mon Sep 17 00:00:00 2001 From: Yan Zhang Date: Wed, 24 Oct 2018 12:23:20 +0800 Subject: [PATCH] Use Azul Zulu JDK as base image (#2248) * Update Constant.java * Update Constant.java --- .../main/java/com/microsoft/azuretools/container/Constant.java | 2 +- .../com/microsoft/intellij/runner/container/utils/Constant.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PluginsAndFeatures/azure-toolkit-for-eclipse/com.microsoft.azuretools.container/src/main/java/com/microsoft/azuretools/container/Constant.java b/PluginsAndFeatures/azure-toolkit-for-eclipse/com.microsoft.azuretools.container/src/main/java/com/microsoft/azuretools/container/Constant.java index 4d3ac57964..698886906f 100644 --- a/PluginsAndFeatures/azure-toolkit-for-eclipse/com.microsoft.azuretools.container/src/main/java/com/microsoft/azuretools/container/Constant.java +++ b/PluginsAndFeatures/azure-toolkit-for-eclipse/com.microsoft.azuretools.container/src/main/java/com/microsoft/azuretools/container/Constant.java @@ -42,7 +42,7 @@ public class Constant { public static final String ERROR_RUNNING_DOCKER = "Error occurred in Docker Run, with exception:\n%s"; public static final String DOCKERFILE_CONTENT_TOMCAT = "FROM tomcat:8.5-jre8\r\n" + "RUN rm -fr /usr/local/tomcat/webapps/ROOT\r\n" + "COPY %s /usr/local/tomcat/webapps/ROOT.war\r\n"; - public static final String DOCKERFILE_CONTENT_SPRING = "FROM openjdk:8-jdk-alpine\r\n" + "VOLUME /tmp\r\n" + public static final String DOCKERFILE_CONTENT_SPRING = "FROM azul/zulu-openjdk-alpine:8\r\n" + "VOLUME /tmp\r\n" + "EXPOSE 8080\r\n" + "COPY %s app.jar\r\n" + "ENTRYPOINT java -Djava.security.egd=file:/dev/./urandom -jar /app.jar"; public static final String ERROR_NO_SELECTED_PROJECT = "Can't detect an active project"; diff --git a/PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/intellij/runner/container/utils/Constant.java b/PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/intellij/runner/container/utils/Constant.java index a71b4697de..8df35fdcde 100644 --- a/PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/intellij/runner/container/utils/Constant.java +++ b/PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/intellij/runner/container/utils/Constant.java @@ -43,7 +43,7 @@ public class Constant { public static final String DOCKERFILE_CONTENT_TOMCAT = "FROM tomcat:8.5-jre8\r\n" + "RUN rm -fr /usr/local/tomcat/webapps/ROOT\r\n" + "COPY %s /usr/local/tomcat/webapps/ROOT.war\r\n"; - public static final String DOCKERFILE_CONTENT_SPRING = "FROM openjdk:8-jdk-alpine\r\n" + public static final String DOCKERFILE_CONTENT_SPRING = "FROM azul/zulu-openjdk-alpine:8\r\n" + "VOLUME /tmp\r\n" + "EXPOSE 8080\r\n" + "COPY %s app.jar\r\n"