@ -15,10 +15,10 @@
# limitations under the License.
#
FROM openjdk:8-jre-slim-bullseye
FROM eclipse-temurin:8-jre
RUN apt update ; \
apt install -y curl wget default-mysql-client sudo openssh-server netcat-traditional ;
apt install -y wget default-mysql-client sudo openssh-server netcat-traditional ;
COPY ./apache-dolphinscheduler-*-SNAPSHOT-bin.tar.gz /root
RUN tar -zxvf /root/apache-dolphinscheduler-*-SNAPSHOT-bin.tar.gz -C ~
@ -16,7 +16,7 @@
# JAVA_HOME, will use it to start DolphinScheduler server
export JAVA_HOME=${JAVA_HOME:-/usr/local/openjdk-8}
export JAVA_HOME=${JAVA_HOME:-/opt/java/openjdk}
# Database related configuration, set database type, username and password
export DATABASE=${DATABASE:-mysql}
apt install -y curl wget sudo openssh-server netcat-traditional ;
apt install -y wget sudo openssh-server netcat-traditional ;
export DATABASE=${DATABASE:-postgresql}
@ -15,16 +15,12 @@
ENV DOCKER true
ENV TZ Asia/Shanghai
ENV DOLPHINSCHEDULER_HOME /opt/dolphinscheduler
apt install -y curl ; \
rm -rf /var/lib/apt/lists/*
WORKDIR $DOLPHINSCHEDULER_HOME
ADD ./target/alert-server $DOLPHINSCHEDULER_HOME
@ -27,6 +27,6 @@ if [[ "$DOCKER" == "true" ]]; then
JAVA_OPTS="${JAVA_OPTS} -XX:-UseContainerSupport"
fi
java $JAVA_OPTS \
$JAVA_HOME/bin/java $JAVA_OPTS \
-cp "$DOLPHINSCHEDULER_HOME/conf":"$DOLPHINSCHEDULER_HOME/libs/*" \
org.apache.dolphinscheduler.api.ApiApplicationServer
ADD ./target/api-server $DOLPHINSCHEDULER_HOME
org.apache.dolphinscheduler.server.master.MasterServer
ADD ./target/master-server $DOLPHINSCHEDULER_HOME
@ -35,6 +35,6 @@ for d in $DOLPHINSCHEDULER_HOME/libs/*; do
done
-cp "$DOLPHINSCHEDULER_HOME/conf":"$CP" \
org.apache.dolphinscheduler.StandaloneServer
@ -38,6 +38,6 @@ for d in alert-server api-server master-server worker-server; do
@ -15,14 +15,14 @@
apt install -y curl sudo ; \
apt install -y sudo ; \
@ -25,7 +25,7 @@ fi
JAVA_OPTS=${JAVA_OPTS:-"-server -Duser.timezone=${SPRING_JACKSON_TIME_ZONE} -Xms1g -Xmx1g -Xmn512m -XX:+PrintGCDetails -Xloggc:gc.log -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=dump.hprof"}
-cp "$DOLPHINSCHEDULER_HOME/tools/conf":"$DOLPHINSCHEDULER_HOME/tools/libs/*":"$DOLPHINSCHEDULER_HOME/tools/sql" \
-Dspring.profiles.active=upgrade,${DATABASE} \
org.apache.dolphinscheduler.tools.datasource.UpgradeDolphinScheduler
# see doc: https://dolphinscheduler.apache.org/en-us/docs/dev/user_doc/guide/upgrade.html
@ -30,6 +30,6 @@ if [[ "$DOCKER" == "true" ]]; then
org.apache.dolphinscheduler.server.worker.WorkerServer
export JAVA_HOME=${JAVA_HOME:-/opt/soft/java}
# Never put sensitive config such as database password here in your production environment,
# this file will be sourced everytime a new task is executed.