aws / aws/aws-lambda-runtime-interface-emulator
Add a --watch option for docker development
- Vorherrschende Sprache
- Go
- Sterne
- 1.1k
- Forks
- 118
- Ø Merge
- 42 Min.
- Gemergte PRs (30 T.)
- 2
Beschreibung
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`.
Beitragsleitfaden
Rechercherichtung
Das Issue nennt den `rie`-Entry-Point und einen docker-compose-`command` mit `app.handler --watch`, aber keine Repository-Dateien oder Tests. Beginne damit, den Command-Entry-Point und den Startpfad des Servers zu finden, und ermittle anschließend, wie Dateiänderungen in einem Volume einen Neustart auslösen können. Als erledigt gilt die Aufgabe, wenn das Flag im gezeigten Container-Setup funktioniert und der Server nach Änderungen am Quellcode erneut gestartet wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- docker, docker-compose, go
- Bereich
- cli, developer-experience, devops
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100