sidebar_current |
---|
kickoff-docker |
If you don't know docker, learn more on the official getting started guide.
Once installed, fire up an Intuition development environment :
$ docker run -i -t \
$ -e LANG=fr_FR.UTF-8 \ # Useful for timezone customization (default is New York)
$ hivetech/intuition bash
Everything should be setup (you can check it with intuition --help
), so you
can learn how to use Intuition and
code your first algorithm.
The Intuition container is also a smart way to run a self-contained instance of
the project. In the following example, I stored the configuration as a
mongodb
document (called bt-yahoo
). Since I use the AugmentedRethinkdb backtest data
source,
I also need to give the environment my Quandl API key.
$ docker run \
$ -e LANG=fr_FR.UTF-8 \
$ -e LOG=info \
$ -e DB_HOST=172.17.0.4 \
$ -e QUANDL_API_KEY=$QUANDL_API_KEY \
$ hivetech/intuition intuition --context insights.contexts.mongodb.MongodbContext://192.168.0.19:27017/intuition/contexts/bt-yahoo --id chuck --bot --showlog
Et voilà !