Example on how to run locally an AWS Lambda via API Gateway using localstack.
Based on...
# Stop all containers | |
docker stop `docker ps -qa` | |
# Remove all containers | |
docker rm `docker ps -qa` | |
# Remove all images | |
docker rmi -f `docker images -qa ` | |
# Remove all volumes |
Example on how to run locally an AWS Lambda via API Gateway using localstack.
Based on...
#!/usr/bin/env bash | |
docker_nuke() { | |
local COLOR_RED="\033[0;31m" | |
local COLOR_GREEN="\033[0;32m" | |
local COLOR_CYAN="\033[0;36m" | |
local containers="$(docker ps -aq)" | |
local images="$(docker images -q)" | |
local success="$COLOR_GREEN✓" |