Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加 docker-compose 一键部署 #29

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

fishandsheep
Copy link

增加 docker-compose 一键部署的脚本并添加相关文档说明

@NoverNobida
Copy link

请问是如何制定配置文件application.properties的路径的?我使用dev分支的Dockerfile构建了镜像,并不读取位于/app/resources/application.properties的配置文件,而使用qinshower/spider:0.5.0-beta镜像则识别/app/resources/application.properties配置文件。

@fishandsheep
Copy link
Author

fishandsheep commented Aug 9, 2022

问是如何制定配置文件application.properties的路径的?我使用dev分支的Dockerfile构建了镜像,并不读取位于/app/resources/application.properties的配置文件,而使用qinshower/spider:0.5.0-beta镜像则识别/app/resources/application.properties配置文件。

@NoverNobida 我使用dev分支构建并启动了一个镜像,镜像中并没有 /app/resources/application.properties目录,看Dockerfile只有纯粹的 jar,application.properties目录集成在jar包里了。如果想使用 application.properties,可考虑在启动项目的时候,添加对应的环境变量。

qinshower/spider:0.5.0-beta,使用的是google的jib构建的镜像,具体步骤 可以参考我fork的项目spider-flow-jib

使用 docker ps --no-trunc 可看到COMMAND详细信息
spider-dev
/bin/sh -c 'java -jar spider-flow.jar'
qinshower/spider:0.5.0-beta
java -cp /app/resources:/app/classes:/app/libs/* org.spiderflow.SpiderApplication

如有疑问,欢迎相互探讨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants