gpt4 book ai didi

docker - 如何在Docker上部署Spring Cloud数据流

转载 作者:行者123 更新时间:2023-12-02 20:23:33 24 4
gpt4 key购买 nike

我使用https://github.com/spring-cloud/spring-cloud-dataflow/tree/master/spring-cloud-dataflow-app-launcher

作业系统:ubuntu 15.10

然后

$ mvn package docker:build
$ docker-compose up

但遇到错误:
    timesource_1 | java.lang.IllegalStateException: No 'Start-Class' manifest entry specified in jar:file:/root/.m2/repository/org/springframework/cloud/stream/module/time-source/1.0.0.BUILD-SNAPSHOT/time-source-1.0.0.BUILD-SNAPSHOT.jar!/
timesource_1 | at org.springframework.boot.loader.archive.Archive.getMainClass(Archive.java:57)
timesource_1 | at org.springframework.boot.loader.ExecutableArchiveLauncher.getMainClass(ExecutableArchiveLauncher.java:69)
timesource_1 | at org.springframework.boot.loader.Launcher.launch(Launcher.java:61)
timesource_1 | at org.springframework.cloud.dataflow.app.launcher.ModuleJarLauncher.launch(ModuleJarLauncher.java:47)
timesource_1 | at org.springframework.cloud.dataflow.app.launcher.ModuleLauncher.launchModule(ModuleLauncher.java:238)
timesource_1 | at org.springframework.cloud.dataflow.app.launcher.ModuleLauncher.launchIndividualModules(ModuleLauncher.java:228)
timesource_1 | at org.springframework.cloud.dataflow.app.launcher.ModuleLauncher.launch(ModuleLauncher.java:100)
timesource_1 | at org.springframework.cloud.dataflow.app.launcher.ModuleLauncherRunner.run(ModuleLauncherRunner.java:67)
timesource_1 | at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:806)
timesource_1 | at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:790)
timesource_1 | at org.springframework.boot.SpringApplication.afterRefresh(SpringApplication.java:777)
timesource_1 | at org.springframework.boot.SpringApplication.run(SpringApplication.java:308)
timesource_1 | at org.springframework.boot.SpringApplication.run(SpringApplication.java:1191)
timesource_1 | at org.springframework.boot.SpringApplication.run(SpringApplication.java:1180)
timesource_1 | at org.springframework.cloud.dataflow.app.launcher.ModuleLauncherApplication.main(ModuleLauncherApplication.java:45)
timesource_1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
timesource_1 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
timesource_1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
timesource_1 | at java.lang.reflect.Method.invoke(Method.java:498)
timesource_1 | at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:54)
timesource_1 | at java.lang.Thread.run(Thread.java:745)

我的方法错误吗?还是如何在docker上部署?

最佳答案

嗨,我尝试了一种方法,它对我有用。
也许它将帮助您:

  • 下载docker toolbox for windows
  • 下载 docker-credential-wincred archive
  • 解压缩存档并将可执行文件放入docker文件
  • 下载Spring Cloud Data Flow Local Server的Docker Compose构件的最新版本(home page中的链接)
  • 启动Docker终端,并使用它,转到包含docker-compose.yml文件
  • 的目录
  • 类型: docker -组成
  • 在浏览器上转到页面:MachineDockerIPAdress:9393 / dashboard
    (要查找机器docker ip地址,您应该在推土机的终端中键入:docker-machine ip)
  • 关于docker - 如何在Docker上部署Spring Cloud数据流,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35970832/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com