Trial with creating lambda docker image
- clone repository to your local -
git clone <link>
- navigate to repo folder -
cd docker_trial
- build docker image -
docker build . -t docker_trial
- run the image
docker run -p 9000:8080 --rm docker_trial
Steps 1 to 4 will create an lambda function api end point that is running in port 8080 of your system. Then open another termina to make calls to the lambda api
script.sh
has a sample script to make calls to the lambda api. Runsh script.sh
This should give you a response like this
{"statusCode": 200, "body": {"Hi there": "Hello"}}
- Remove existing image before rebuilding to avoid polluting your local maching with unused images
docker rmi docker_trial
- Make changes to your code and start from step 2 above