Add docker compose deployment handler
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 30/100
调研方向
先阅读现有的 SSH 部署方法以及 image: 背后的处理器选择路径,然后跟踪此处描述的 subprocess、rsync-over-SSH、slugify-d 目录命名和远程 docker compose up -d 步骤。没有指定文件或测试;完成的标准是一个约定好的处理器或选项同步整个 challenge 文件夹,并在远程启动 Compose 部署。
由索引模型根据 Issue 内容生成。
描述
I'd like to use the SSH deploy method, but deploy an entire docker compose file with potentially multiple containers. I can probably start adding this myself, but I want to ask where this would fit. Would you like an additional option in image:? Potentially something like ssh-compose? Or would you prefer an entirely new deployment handler?
I envision this process as follows:
- Use subprocess to rsync-over-ssh the entire challenge folder to the remote server. Use the same slugify-d name as the directory name on the remote server.
- SSH to the remote server and run
docker compose up -din the target directory. Let docker handle all the building/deploying on the remote server.
- 主要语言
- Python
- 星标
- 216
- 派生
- 96
- 平均合并
- 1 分钟
- 30 天内合并 PR
- 2
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
CTFd/ctfcli 的其他 Issue
-
难度 5/5 一周以上 新手友好度 35/100
-
难度 3/5 1-2 天 新手友好度 42/100
-
难度 3/5 1-2 天 新手友好度 35/100
-
难度 2/5 1-3 小时 新手友好度 45/100
-
难度 3/5 1-2 天 新手友好度 48/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
-
EvaluationSuite.run fails with default args_for_task and mutates supplied kwargs可能已有人在做 @ktz03 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
huggingface/evaluate#825 ·
维护者通常 1 天内回复
-
dependencies feature github_actions good first issue
难度 2/5 1-3 小时 新手友好度 62/100
wemake-services/wemake-django-template#3149 ·
维护者通常 1 天内回复
-
upstream update
难度 2/5 1-3 小时 新手友好度 65/100
conan-io/conan-center-index#31142 ·
维护者通常 1 天内回复
-
area:core bug
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复