Skip to content

Latest commit

 

History

History
58 lines (38 loc) · 1.4 KB

README.md

File metadata and controls

58 lines (38 loc) · 1.4 KB

tbobm/apps

Build Containers License: MIT

A centralized collection of containers to use as example apps.

API

HTTP

Hello World

Path: ./api/http/hello/

Example usage:

$ docker run -p 8000:5000 -d --rm ghcr.io/tbobm/apps:api-http-hello-latest
$ curl localhost:8000/health
OK

http-dump

Path: ./api/http/dump/

Example usage:

$ docker run -p 8000:8000 -d --rm ghcr.io/tbobm/apps:api-http-dump-latest
$ curl localhost:8000/any/path -H "example-header: any-value"
{"path":"any/path","method":"GET","headers":{"host":"localhost:8000","user-agent":"curl/7.81.0","accept":"*/*","example-header":"any-value"},"form":{}}

Lambda

Hello World

Path: ./lambda/hello/

Example usage:

$ docker run -p 9000:8080 -d ghcr.io/tbobm/apps:lambda-hello-latest
$ curl "localhost:9000/2015-03-31/functions/function/invocations" -d '{}'
"Hello World"

SQS

Producer

Path: ./sqs/producer/

Example usage:

$ docker run -e SQS_QUEUE_URL="https://sqs.eu-west-1.amazonaws.com/111111111111/my-queue" \
  -it ghcr.io/tbobm/apps:sqs-producer-latest