1

我使用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上部署?

4

1 回答 1

0

你好,我试过一种方法,它对我有用。
也许它会帮助你:

  • 下载适用于 windows 的 docker 工具箱
  • 下载docker-credential-wincred 存档
  • 解压存档并将可执行文件放入docker文件中
  • 下载最新版Spring Cloud Data Flow Local-Server的Docker Compose神器(主页链接)
  • 启动 Docker 的终端并使用它转到包含 docker-compose.yml 文件的目录
  • 类型:码头工人组成
  • 在浏览器上转到页面:MachineDockerIPAdress:9393/dashboard
    (要查找机器 docker ip 地址,您应该输入 docher 的终端:docker-machine ip)
于 2018-06-13T14:34:36.233 回答