【问题标题】:Can't connect to kie-workbench git repo when running in Docker在 Docker 中运行时无法连接到 kie-workbench git repo
【发布时间】:2020-12-16 12:43:49
【问题描述】:

当我从终端在 Wildfly 上运行 kie-workbench 时,我能够 git clone ssh:// .... 成功。当我在 Docker 中运行相同的设置时,连接永远不会发生。

git clone ssh://kie-workbench@localhost:8001/DtsSpace/Eligibility
Cloning into 'Eligibility'...
kex_exchange_identification: Connection closed by remote host
Connection closed by 127.0.0.1 port 8001
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

我可以在浏览器的 8080 端口上正常访问工作台。

来自我的 Dockerfile:

####### CUSTOM JBOSS USER ############
USER jboss
WORKDIR $JBOSS_HOME/bin/
####### EXPOSE INTERNAL JBPM GIT PORT ############
EXPOSE 8080 8001

####### RUNNING DROOLS-WB ############
CMD ["/opt/jboss/wildfly/bin/standalone.sh", "-b", "0.0.0.0", "-bmanagement", "0.0.0.0", "-c", "standalone-full.xml"]

来自我的 docker-compose.yml:

version: '3'

services:

  kie-wb:
    container_name: business-central
    image: jatchison/kie-workbench:latest
    ports:
      - 8080:8080
      - 8001:8001
    volumes:
      - ./.niogit:/opt/jboss/wildfly/bin/.niogit

我之前在 Docker 中成功完成了它,但那是在 Linux 和 Mac 上完成的,那么 Windows 10 是否存在问题?

WILDFLY_VERSION 20.0.1.Final KIE_VERSION 7.42.0.Final

我已经尝试过 Wildfly 和 Workbench 的不同版本和版本组合。

【问题讨论】:

  • 我刚刚在 Linux 机器上尝试了相同的设置并得到相同的连接错误。所以它一定是我的设置中的东西。

标签: git docker wildfly drools kie-workbench


【解决方案1】:

我不知道为什么,但它有效,所以我会发布它。在 drools-workbench 的 DockerHub 文档中,Michael 谈到了使用内部 git 存储库:

如有必要,您可以使用以下 Java 系统属性从本地主机外部提供 GIT 存储库: -org.uberfire.nio.git.ssh.host=0.0.0.0

可以通过多种方式进行设置。我选择将它放在我的standalone-full.xml 中。 有可能,由于引擎不是“完全”在 localhost 上运行,因此这是必要的。现在可以了,我很满意。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-02-15
    • 2020-07-31
    • 2022-12-11
    • 2020-10-29
    • 2021-07-31
    • 1970-01-01
    • 1970-01-01
    • 2019-08-28
    相关资源
    最近更新 更多