elt工具kettle通过docker的方式部署到linux,部署为可视化页面
部署kettle web容器版本(github上项目基于kettle开发的) 只支持mysql5.8
1.拉取镜像
docker pull hiromuhota/webspoon
2.指定内容,并且挂在生成文件目录
docker run -d -p 9222:8080 -e JAVA_OPTS="-Xms512m -Xmx512m" hiromuhota/webspoon
3.往docker容器中添加mysql连接jar包
docker cp /usr/local/kettle/mysql-connector-java-5.1.27-bin.jar 3c5eed7ec60e:/usr/local/tomcat/lib
4.重启
通过docker-compose的方式进行部署
1.编辑docker-compose-kettle.yml文件
version: "3" services: mysql: image: mysql:5.7 container_name: mysql ports: - 3306:3306 volumes: - /opt/mysql/data:/var/lib/mysql environment: MYSQL_ROOT_PASSWORD: resafety@20220421 kettle: image: hiromuhota/webspoon container_name: kettle ports: - 8081:8080 environment: - "ES_JAVA_OPTS=-Xms1024m -Xmx1024m"
2.执行docker-compose-kettle.yml
docker-compose -f docker-compose-kettle.yml up -d
3.往kettle添加mysql的jar包(需要更换容器id)
docker cp ./mysql-connector-java-5.1.27-bin.jar acbcb2a2d947:/usr/local/tomcat/lib
4.重启kettle