Sign inSign up

ajmath/docker-fake-sqs

By ajmath

•Updated over 8 years ago

Fork of https://github.com/feathj/docker-fake-sqs trimmed down to use an alpine base image.

Image
0

1.9K

ajmath/docker-fake-sqs repository overview

⁠Fake-SQS

Docker image for the fake_sqs gem.

⁠Features

  • Uses thin as webserver to prevent reverse dns lookup (causing big slowdowns)
  • Exposes fake_sqs database to "/messages/sqs" VOLUME for file based verification
    • Note that fake_sqs does not persist messages, just queues

⁠Running

$ docker run -it -p 9494:9494 feathj/fake-sqs

Note that VIRTUAL_HOST environment variable can be added if run with dinghy client $ docker run -it -p 9494:9494 -e VIRTUAL_HOST=sqs.docker feathj/fake-sqs

Or from docker-compose.yml:

sqs:
  image: feathj/fake-sqs
  ports:
    - "9494:9494"
  environment:
    VIRTUAL_HOST: "sqs.docker"

⁠Getting started

The following curl commands can be run to verify that it is working (create queue, send message, receive message, assumes host is 'sqs.docker'):

$ curl http://sqs.docker:9494 -d "Action=CreateQueue&QueueName=test-queue&AWSAccessKeyId=access%20key%20id"
$ curl http://sqs.docker:9494 -d "Action=SendMessage&QueueUrl=http%3A%2F%2Fsqs.docker%3A9494%2Ftest-queue&MessageBody=testing123&AWSAccessKeyId=access%20key%20id"
$ curl http://sqs.docker:9494 -d "Action=ReceiveMessage&QueueUrl=http%3A%2F%2Fsqs.docker%3A9494%2Ftest-queue&AWSAccessKeyId=access%20key%20id"

fake_sqs⁠ docker-fake-sns⁠

Tag summary

Content type

Image

Digest

Size

42.7 MB

Last updated

over 8 years ago

docker pull ajmath/docker-fake-sqs