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

Add a --watch option for docker development

Aperta
#30 5 commenti 27 reazioni 0 assegnatari Vedi su GitHub
documentation enhancement
Lingua principale
Go
Stelle
1.1k
Fork
118
Merge medio
42m
PR unite (30g)
2

Descrizione

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`.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.