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
cd ./buildbits/dockerfiles/
./build rabbitmq
./build rabbitmq-pytest
./build ghcjs-env
cd ./buildbits/bin
./create-rabbitmq
sleep 10
./create-rabbitmq-pytest
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
This is probably going to be:
cd beautilytics
stack setup; stack build --fast
*you might not need to do this if already complete
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]
Be sure to double check the --link command as the host 'ampq' may have changed in Beautilytics