aws / aws/aws-lambda-runtime-interface-emulator
Add a --watch option for docker development
- Ngôn ngữ chính
- Go
- Star
- 1.1k
- Fork
- 118
- Merge trung bình
- 42 phút
- Pull request đã merge (30 ngày)
- 2
Mô tả
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`.
Hướng dẫn đóng góp
Hướng nghiên cứu
The issue names the `rie` entrypoint and a docker-compose `command` using `app.handler --watch`, but no repository files or tests. Start by locating the command entrypoint and server launch path, then determine how file changes in a volume can trigger a restart. Done means the flag works in the shown container setup and reruns the server after source changes.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- docker, docker-compose, go
- Lĩnh vực
- cli, developer-experience, devops
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100