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镜像 #43

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

kmod-midori
Copy link

因为这个项目目前已经不能在Actions上正常运行,我就把相关文件去掉了,改为在更新时构建Docker镜像(x86_64和ARM64),方便在自己的服务器、NAS之类的设备上运行。已经在开发机和N1盒子上验证过可以使用。

docker run -e USERNAME=xxx -e PASSWORD=xxx --rm docker_hub_name/beijing-daxuexi-simple:latest

需要配置相关Secret以推送镜像,可参考 https://docs.docker.com/docker-hub/access-tokens/

@Bistutu
Copy link

Bistutu commented Mar 27, 2023

因为这个项目目前已经不能在Actions上正常运行,我就把相关文件去掉了,改为在更新时构建Docker镜像(x86_64和ARM64),方便在自己的服务器、NAS之类的设备上运行。已经在开发机和N1盒子上验证过可以使用。

docker run -e USERNAME=xxx -e PASSWORD=xxx --rm docker_hub_name/beijing-daxuexi-simple:latest

需要配置相关Secret以推送镜像,可参考 https://docs.docker.com/docker-hub/access-tokens/

I am glad to see your program , and how to pull?

@mayjack0312
Copy link

拉取后我看log发现后台一直跑,这个不会封号吧
还是我少了个配置环节呢?

@kmod-midori
Copy link
Author

@mayjack0312 你是不是配置restart=unless-stopped/always了,这个容器执行一次任务之后就会退出,需要你自己用cron之类的方法定时运行,如果设置restart的话就会自己不断一直跑

@mayjack0312
Copy link

@mayjack0312 你是不是配置restart=unless-stopped/always了,这个容器执行一次任务之后就会退出,需要你自己用cron之类的方法定时运行,如果设置restart的话就会自己不断一直跑

噢噢,懂了懂了,已经玩明白了 O(∩_∩)O~
我用的crontab已经搞好了,谢谢大佬

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.

3 participants