利用 Cloudflare Workers 自建 Docker 镜像

19 天前
 SingeeKing

GitHub: https://github.com/ImSingee/hammal

文档: https://singee.atlassian.net/wiki/spaces/MAIN/pages/5079084/Cloudflare+Workers+Docker

已稳定自用 ~1 年

2914 次点击
所在节点    分享创造
17 条回复
yangg
19 天前
这个文档站是自己部署的?还不错,速度快。
iloveayu
19 天前
@yangg Confluence 的云服务吧。
luckycat
19 天前
很快就会犯法了,私自搭建非法镜像。
ColoThor
19 天前
wrangler 命令要在 npm 环境下执行,Cloudflare 网页执行不了?
q8515620
19 天前
原来是搭建代理啊,看标题我还以为是用 workers 搭建类似 harbor 那种镜像仓库,还想看看到底是怎么实现的
tallest
19 天前
⛅️ wrangler 3.60.0
-------------------

▲ [WARNING] Processing wrangler.toml configuration:

- 😶 Ignored: "type":
Most common features now work out of the box with wrangler, including modules, jsx,
typescript, etc. If you need anything more, use a custom build.
- 😶 Ignored: "webpack_config":
Most common features now work out of the box with wrangler, including modules, jsx,
typescript, etc. If you need anything more, use a custom build.
- Deprecation: "zone_id":
This is unnecessary since we can deduce this from routes directly.
- The "route" field in your configuration is an empty string and will be ignored.
Please remove the "route" field from your configuration.



✘ [ERROR] Missing entry-point: The entry-point should be specified via the command line (e.g. `wrangler deploy path/to/script`) or the `main` config field.

执行 wrangler deploy 报这个错怎么办诶?
SingeeKing
19 天前
@tallest 这个还是用的旧版本 rust 写的的 wrangler ;我刚才已经更新了文档和仓库使用了新版的 wrangler 了,可以再试试
tallest
18 天前
@SingeeKing 好的,感谢大佬!
oaa
18 天前
挺奇怪。搭好了之后,用自定义域名访问,返回 404 ,说明浏览已经通了。访问/v2 就超时了。。。
oaa
18 天前
好吧。我的问题。。子路由要用 xx/*.
可以用 npx wrangler tail 观察日志。挺好用的
oaa
18 天前
超棒。速度挺快。在阿里云和本地测下,都可用。
xianzheng
17 天前
@oaa 你好,子路由在哪里设置的,我弄好显示:404 page not found
polarpy
17 天前
如果 contanerd 怎么用啊?
polarpy
16 天前
可以改造成 yum 源吗?最近 yum 也上墙了
oaa
15 天前
@xianzheng 直接访问子域名 404 正常。试试 curl -v "https://子域名/v2" 看看返回是不是 200.
oaa
15 天前
xianzheng
14 天前
@oaa 好的已经在用了,感谢~~

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1047741

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX