HTTP -> AMQP proxy layer
RabbitMQ is required. Reommended method of installation is Homebrew
brew install rabbitmqCreate the mithril_test database
createdb mithril_testIf you don't have RabbitMQ launched by default
rabbitmq-serverThe build/test cycle uses make and should not require specification of
a specific target:
makeThis will execute the all target, which cleans, builds, runs Go tests,
and runs the black-box golden
suite. Once some of the more
expensive one-time prerequisites are out of the way, the cycle should be
between 3-7 seconds. If your build cycle is taking considerably longer,
please file an issue.
A docker image exists for this application on docker.io's registry https://registry.hub.docker.com/u/modcloth/mithril/.
Tagging this repo will cause Travis CI to queue a build of the Dockerfile on docker.io on successful build. This build will be tagged as latest.
In order to test the PostgreSQL integration, you will also have to have
a PostgreSQL server available. The default URI used by the tests is the
following, which requires the presence of a mithril_test database:
postgres://localhost/mithril_test?sslmode=disable
You may specify your own URI via the $MITHRIL_PG_URI env var, e.g.:
export MITHRIL_PG_URI='postgres://postgres@localhost?sslmode=disable'Your Ruby interpreter is too old 😸. The test suite uses
minitest from the Ruby standard library as of version 1.9. If you
install either rvm or rbenv, they should detect the presence of the
.ruby-version file and instruct you accordingly (or explosively).
