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吗? #30

Open
nageshuizeii opened this issue Jul 26, 2018 · 10 comments
Open

请问能支持docker吗? #30

nageshuizeii opened this issue Jul 26, 2018 · 10 comments

Comments

@nageshuizeii
Copy link

nohup和supervisor总是有点玄学问题

@nageshuizeii
Copy link
Author

FROM alpine:3.8
MAINTAINER FAN VINGA[email protected]

ENV TOKEN=token

ADD rssbot /
CMD chmod +x /rssbot && /rssbot xxxxx ${TOKEN}

@iovxw
Copy link
Owner

iovxw commented Sep 21, 2018

只有一个静态链接的可执行文件,如果是为了方便部署,实在没这个必要

@nageshuizeii
Copy link
Author

docker化可以使用-v /srv/rssbot:/data 在没有支持导入opml的情况下,如果这个项目小型迭代,能更好的延续上一个数据库的数据。另外就是docker化的话,可以针对订阅不同类型的订阅划分机器人,docker更容易维护。
您方便的话,pull一个就好

@iovxw
Copy link
Owner

iovxw commented Sep 21, 2018

数据库就是一个文件,在命令参数里直接指定位置就好的,我也会尽量保持兼容性

对于管理,可以使用任意 service manager 实现,配置都很简单,没有必要特殊化 docker

@darkskygit
Copy link

自用docker::docker pull darkskydocker/rustrssbot
带有一个环境变量TELEGRAM_BOT_TOKEN
欢迎使用

@nageshuizeii
Copy link
Author

感谢,你写的docker好小,我自己pull的镜像在60M,你的竟然只有7M,太厉害了

@nageshuizeii
Copy link
Author

自用docker::docker pull darkskydocker/rustrssbot
带有一个环境变量TELEGRAM_BOT_TOKEN
欢迎使用

能否加一个抓取时间的环境变量,5min还是长了点

@xardover
Copy link

xardover commented Nov 4, 2018

自用docker::docker pull darkskydocker/rustrssbot
带有一个环境变量TELEGRAM_BOT_TOKEN
欢迎使用

请添加环境变量以定义更新时间

@EkkoG
Copy link

EkkoG commented Mar 30, 2019

#39 原来造了个轮子

@senseab
Copy link

senseab commented Oct 9, 2023

#430 提了个 PR 可以看一下

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

No branches or pull requests

6 participants