Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Haskell to Python RabbitMQ Test Stack

Haskell to Python RabbitMQ Test Stack

This Gist is intended for BD developers who wish to test Haskell-to-Python RabbitMQ communication.


Follow each instruction, skipping any optional segments or those which you've already executed. You'll have to infer certain commands e.g. making sure you're in the right directory. This applies to many of the buildbits commands. The instructions assumes that you're inside a directory containing the following repositories:

  • beautilytics
  • buildbits

1. Build Docker Images

cd ./buildbits/dockerfiles/
./build rabbitmq
./build rabbitmq-pytest
./build ghcjs-env

2. Create Docker Containers

cd ./buildbits/bin
sleep 10

3. Create Beautilytics Container

This is needed so stack can access GitHub

export DO="--link rabbitmq:amqp -v $(dirname $SSH_AUTH_SOCK):$(dirname $SSH_AUTH_SOCK) -e SSH_AUTH_SOCK=$SSH_AUTH_SOCK"
./buildbits/bin/c ghcjs-env

4. Change directory to beautilytics

This is probably going to be:

cd beautilytics

5. Build the basic Haskell stack*

stack setup; stack build --fast

*you might not need to do this if already complete

6. Send a test message to the message queue

You can disable database connection if running locally as it's not needed at all. Just invoke the optional argument: --disable-database-connection.

stack exec -- beautilytics-tasks config.json.docker msg-sender "A test message." [--disable-database-connection]

This comment has been minimized.

Copy link
Owner Author

commented Sep 26, 2016

Be sure to double check the --link command as the host 'ampq' may have changed in Beautilytics

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.