开虚拟机启动docker
systemctl start docker
下载kettle镜像
docker run -d -p 8080:8080 hiromuhota/webspoon
汉化
进入容器
3813cff0af77 为容器id
docker exec -it -u 0 3813cff0af77 /bin/bash
设置更新源
然后发现之前不断尝试更换各种源,以及各种修改DNS之类操作的文章以及教程,他们的发布时间都
从2023年4月23日起,debian9的源包地址更换至新地址。 debian 9 apt update失败 (404 ign: E: W: N:)_debian9源不能用了-CSDN博客
deb http://archive.debian.org/debian/ stretch main contrib non-free
deb-src http://archive.debian.org/debian/ stretch main contrib non-free
deb http://archive.debian.org/debian-security/ stretch/updates main contrib non-free
deb-src http://archive.debian.org/debian-security/ stretch/updates main contrib non-free
deb http://archive.debian.org/debian/ stretch-backports main contrib non-free
在容器里面执行设置源
echo -e "deb http://archive.debian.org/debian/ stretch main contrib non-free\ndeb-src http://archive.debian.org/debian/ stretch main contrib non-free\ndeb http://archive.debian.org/debian-security/ stretch/updates main contrib non-free\ndeb-src http://archive.debian.org/debian-security/ stretch/updates main contrib non-free\ndeb http://archive.debian.org/debian/ stretch-backports main contrib non-free\n" > /etc/apt/sources.list
更新软件列表 这个过程可能会有点慢 耐心等待 apt-get update 执行命令
apt-get install -y libtinfo5 --allow-remove-essential
apt-get install -y vim
编辑 setenv.sh 进入 Tomcat 的 bin目录 可以看到有一个 setenv.sh 的Tomcat 环境变量配置脚本
cd /usr/local/tomcat/bin
vim setenv.sh
汉化配置
在文件末尾追加这两项配置 保存
CATALINA_OPTS="-Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true" JAVA_OPTS="-Duser.language=zh -Duser.region=CN -Dfile.encoding=UTF-8"
查看是否编辑成功
cat setenv.sh
退出容器
exit;
查看容器
docker ps
重启容器
docker restart 容器id
保存镜像
docker commit -m="add vim ,change language 中文" -a="ddup" 3813cff0af77 ddup/webspoon:v1
参考: kettle web 版本 (webspoon) 中文部署 kettle 页面编辑 kettleweb 中文_kettle网页版-CSDN博客