当我从终端运行Wildfly上的kie-workbench时,我能够使用git克隆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上,那么Windows10有问题吗?
WILDFLY_VERSION 20.0.1最终KIE_VERSION 7.42.0最终
我已经尝试了wildfly和workbench的不同版本和组合。
发布于 2020-08-28 02:59:24
我不知道为什么,但它很有效,所以我会把它贴出来。在drools-workbench的DockerHub文档中,Michael谈到了使用内部git存储库:
如有必要,您可以使用以下Java system属性使GIT存储库从外部本地主机可用:-org.uberfire.nio.git.ssh.host=0.0.0.0
它可以通过多种方式进行设置。我选择将它放在我的standalone-full.xml中。有可能,由于引擎不是“完全”在localhost上运行的,所以这是必要的。它现在可以工作了,所以我很满意。
https://stackoverflow.com/questions/63619259
复制相似问题