aws / aws/aws-lambda-runtime-interface-emulator
Add a --watch option for docker development
- 主要语言
- Go
- 星标
- 1.1k
- 派生
- 118
- 平均合并
- 42 分钟
- 30 天内合并 PR
- 2
描述
We are using `public.ecr.aws/lambda/python:3.8`which uses `rie` as an entrypoint.
We use docker as a local development environment, so we do not need to setup a python **virtualenv** and avoid **"it works on my machine"** errors. We map the source code into the container using a volume and at the moment the only way to get the container to the run the latest changes, is `docker-compose restart CONTAINER-NAME`.
This is not ideal and we would appreciate having a `--watch` flag added to `rie` such that we could add it to the docker-compose `command` option, e.g. `["app.handler", "--watch"]`. This flag would rerun the server inside the container upon changes, similar to Flask's `runserver`.
贡献指南
调研方向
该 issue 提到了 `rie` 入口点和使用 `app.handler --watch` 的 docker-compose `command`,但没有提供任何仓库文件或测试。首先定位命令入口点和服务器启动路径,然后确定 volume 中的文件变更如何触发重启。当该 flag 在所示的容器设置中生效,并在源代码变更后重新运行服务器时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- docker, docker-compose, go
- 领域
- cli, developer-experience, devops
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100