-
Notifications
You must be signed in to change notification settings - Fork 642
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Switch jdk8 to jre11 * Locate Java executable, check version and apply distinguished vm options https://docs.oracle.com/javase/9/tools/java.htm#GUID-BE93ABDC-999C-4CB5-A88B-1994AAAC74D5__CONVERTGCLOGGINGFLAGSTOXLOG-A5046BD1 * Streamline further * minor: Adjust port seq * minor: Streamline a little * Redirect GC logs to log file instead of stdout * Streamline EVENTMESH_LOG_HOME & XLOG_PARAM * Use multi-stage compiled JRE8 env by default * fix: get pid correctly in docker * Generate pid file exactly under /bin * exec builder_8 exactly after builder_11 * Use JDK instead of JRE * Rename dockerfile
- Loading branch information
Showing
4 changed files
with
97 additions
and
35 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
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,43 @@ | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
FROM openjdk:11-jdk as builder_11 | ||
WORKDIR /build | ||
COPY . . | ||
RUN ./gradlew clean generateGrammarSource --parallel --daemon | ||
|
||
FROM openjdk:8-jdk as builder_8 | ||
WORKDIR /build | ||
COPY --from=builder_11 /build ./ | ||
RUN ./gradlew clean build jar dist -x spotlessJava -x generateGrammarSource --parallel --daemon | ||
RUN ./gradlew installPlugin | ||
|
||
FROM openjdk:8-jdk | ||
RUN apt-get update && apt-get install -y locales procps | ||
RUN localedef -i en_US -f UTF-8 en_US.UTF-8 --quiet | ||
WORKDIR /data/app/eventmesh | ||
COPY --from=builder_8 /build/dist ./ | ||
|
||
EXPOSE 10000 10105 10106 10205 | ||
|
||
ENV DOCKER true | ||
ENV EVENTMESH_HOME /data/app/eventmesh | ||
ENV EVENTMESH_LOG_HOME /data/app/eventmesh/logs | ||
ENV CONFPATH /data/app/eventmesh/conf | ||
|
||
CMD ["bash", "bin/start.sh"] |
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