欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 新闻 > 资讯 > docker 部署 Seatunnel 和 Seatunnel Web

docker 部署 Seatunnel 和 Seatunnel Web

2024/10/31 2:53:02 来源:https://blog.csdn.net/liang520521/article/details/142640028  浏览:    关键词:docker 部署 Seatunnel 和 Seatunnel Web

docker 部署 Seatunnel 和 Seatunnel Web

说明:

  1. 部署方式前置条件,已经在宿主机上运行成功
  2. 运行文件采用挂载宿主机目录的方式部署
  3. SeaTunnel Engine 采用的是混合模式集群

编写Dockerfile并打包镜像

  • Seatunnel
FROM openjdk:8
WORKDIR /opt/seatunnel/
CMD sh bin/seatunnel-cluster.sh -d

docker build -t seatunnel:2.3.3 .

  • Seatunnel-Web
FROM openjdk:8
WORKDIR /opt/seatunnel-web/
CMD sh bin/seatunnel-backend-daemon.sh start

docker build -t seatunnel-web:1.0.1 .

修改配置文件

  • $SEATUNNEL_HOME/config/hazelcast-client.yaml
    hazelcast-client.network.cluster-members.ip -> 修改为 seatunnel (与seatunnel 服务的 container_name一致即可)
  • $SEATUNNEL_WEB_HOME/config/hazelcast-client.yaml
    hazelcast-client.network.cluster-members.ip -> 修改为 seatunnel (与seatunnel 服务的 container_name一致即可)
  • $SEATUNNEL_WEB_HOME/bin/seatunnel-backend-daemon.sh
    修改为非后台启动,方便 docker 检测日志 在这里插入图片描述

编写DockerCompose 并运行

version: '3.9'services:seatunnel:image: seatunnel:2.3.3container_name: seatunnelenvironment:## 💀💀💀 配置 seatunnel 环境变量SEATUNNEL_HOME: /opt/apache-seatunnel/ports:- 5081:5081networks:- seatunnelvolumes:## 💀💀💀 挂载 seatunnel 目录- /root/apache-seatunnel-2.3.3/:/opt/seatunnel/seatunnel-web:image: seatunnel-web:1.0.1container_name: seatunnel-webenvironment:## 💀💀💀 需要配置 seatunnel 环境变量SEATUNNEL_HOME: /opt/seatunnelports:- 8801:8801networks:- seatunnelvolumes:## 💀💀💀 需要同时挂载 seatunnel 和 web 目录- /root/apache-seatunnel-2.3.3/:/opt/seatunnel/- /root/apache-seatunnel-web-1.0.1-bin/:/opt/seatunnel-web/#command: ls -la /opt/seatunnel-web/networks:seatunnel:

docker-compose up -d

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com