aws / aws/aws-lambda-runtime-interface-emulator

Add a --watch option for docker development

未關閉
#30 5 則留言 27 個 reaction 已指派 0 人 在 GitHub 檢視
documentation enhancement
主要語言
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

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。