From 67a114c256ff6a2ea345db381b90f98989452b49 Mon Sep 17 00:00:00 2001 From: Jarvis Date: Thu, 2 Jan 2025 18:16:49 +0800 Subject: [PATCH] [fix][docker] update Dockerfile (#8421) --- docs/en/start-v2/docker/docker.md | 6 ++++-- docs/zh/start-v2/docker/docker.md | 4 +++- seatunnel-dist/src/main/docker/Dockerfile | 4 +++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/docs/en/start-v2/docker/docker.md b/docs/en/start-v2/docker/docker.md index 2c2c7824f4f..fba6d2e4732 100644 --- a/docs/en/start-v2/docker/docker.md +++ b/docs/en/start-v2/docker/docker.md @@ -78,7 +78,9 @@ RUN cd /opt && \ tar -zxvf apache-seatunnel-${VERSION}-bin.tar.gz && \ mv apache-seatunnel-${VERSION} seatunnel && \ rm apache-seatunnel-${VERSION}-bin.tar.gz && \ - cp seatunnel/config/log4j2_client.properties seatunnel/config/log4j2.properties && \ + sed -i 's/#rootLogger.appenderRef.consoleStdout.ref/rootLogger.appenderRef.consoleStdout.ref/' seatunnel/config/log4j2.properties && \ + sed -i 's/#rootLogger.appenderRef.consoleStderr.ref/rootLogger.appenderRef.consoleStderr.ref/' seatunnel/config/log4j2.properties && \ + sed -i 's/rootLogger.appenderRef.file.ref/#rootLogger.appenderRef.file.ref/' seatunnel/config/log4j2.properties && \ cp seatunnel/config/hazelcast-master.yaml seatunnel/config/hazelcast-worker.yaml WORKDIR /opt/seatunnel @@ -283,7 +285,7 @@ networks: run `docker-compose up -d` command to start the cluster. -You can use `docker logs -f seatunne_master`, `docker logs -f seatunnel_worker_1` to check the node log. +You can run `docker logs -f seatunne_master`, `docker logs -f seatunnel_worker_1` to check the node log. And when you call `http://localhost:5801/hazelcast/rest/maps/system-monitoring-information`, you will see there are 2 nodes as we excepted. After that, you can use client or restapi to submit job to this cluster. diff --git a/docs/zh/start-v2/docker/docker.md b/docs/zh/start-v2/docker/docker.md index 1c4bc5d4b10..84e93a22167 100644 --- a/docs/zh/start-v2/docker/docker.md +++ b/docs/zh/start-v2/docker/docker.md @@ -78,7 +78,9 @@ RUN cd /opt && \ tar -zxvf apache-seatunnel-${VERSION}-bin.tar.gz && \ mv apache-seatunnel-${VERSION} seatunnel && \ rm apache-seatunnel-${VERSION}-bin.tar.gz && \ - cp seatunnel/config/log4j2_client.properties seatunnel/config/log4j2.properties && \ + sed -i 's/#rootLogger.appenderRef.consoleStdout.ref/rootLogger.appenderRef.consoleStdout.ref/' seatunnel/config/log4j2.properties && \ + sed -i 's/#rootLogger.appenderRef.consoleStderr.ref/rootLogger.appenderRef.consoleStderr.ref/' seatunnel/config/log4j2.properties && \ + sed -i 's/rootLogger.appenderRef.file.ref/#rootLogger.appenderRef.file.ref/' seatunnel/config/log4j2.properties && \ cp seatunnel/config/hazelcast-master.yaml seatunnel/config/hazelcast-worker.yaml WORKDIR /opt/seatunnel diff --git a/seatunnel-dist/src/main/docker/Dockerfile b/seatunnel-dist/src/main/docker/Dockerfile index 18ad86455d9..0948372260a 100644 --- a/seatunnel-dist/src/main/docker/Dockerfile +++ b/seatunnel-dist/src/main/docker/Dockerfile @@ -8,7 +8,9 @@ RUN cd /opt && \ tar -zxvf apache-seatunnel-${VERSION}-bin.tar.gz && \ mv apache-seatunnel-${VERSION} seatunnel && \ rm apache-seatunnel-${VERSION}-bin.tar.gz && \ - cp seatunnel/config/log4j2_client.properties seatunnel/config/log4j2.properties && \ + sed -i 's/#rootLogger.appenderRef.consoleStdout.ref/rootLogger.appenderRef.consoleStdout.ref/' seatunnel/config/log4j2.properties && \ + sed -i 's/#rootLogger.appenderRef.consoleStderr.ref/rootLogger.appenderRef.consoleStderr.ref/' seatunnel/config/log4j2.properties && \ + sed -i 's/rootLogger.appenderRef.file.ref/#rootLogger.appenderRef.file.ref/' seatunnel/config/log4j2.properties && \ cp seatunnel/config/hazelcast-master.yaml seatunnel/config/hazelcast-worker.yaml WORKDIR /opt/seatunnel