Git Product home page Git Product logo

docker-iqfeed's Introduction

Dockerized IQFeed client with X11VNC for remote viewing

CircleCI

See CHANGELOG for a list of notable changes

Usage

Clone this repository and build the image:

git clone https://github.com/jaikumarm/iqfeed-docker.git
cd iqfeed-docker
docker build . -t iqfeed-docker

Run your image with docker run

docker run -e IQFEED_PRODUCT_ID=CHANGEME \
    -e IQFEED_LOGIN=CHANGEME \
    -e IQFEED_PASSWORD=CHANGEME \
    -p 5009 -p 9100 -p 9200 -p 9300 -p 9400 \
    -p 5901:5901 -p 8088:8080 \
    -v /var/log/iqfeed:/root/DTN/IQFeed \
    -d iqfeed-docker

OR you can directly run my image from dockerhub with docker run

docker run -e IQFEED_PRODUCT_ID=CHANGEME \
    -e IQFEED_LOGIN=CHANGEME \
    -e IQFEED_PASSWORD=CHANGEME \
    -p 5009 -p 9100 -p 9200 -p 9300 -p 9400 \
    -p 5901:5901 -p 8088:8080 \
    -v /var/log/iqfeed:/root/DTN/IQFeed \
    -d jaikumarm/iqfeed:v62025-w8

With docker-compose edit the docker-compose.yml with your iqfeed credentials, then run

docker-compose -f docker-compose.yml up -d iqfeed

In docker logs of the container and you should see

...
2020-03-03 05:52:11,281 INFO supervisord started with pid 1
...
2020-03-03 05:52:12,521 INFO pyiqfeed_admin_conn.<module>.64:  PyIQFeed admin conn started.
2020-03-03 05:52:12,524 INFO pyiqfeed_admin_conn.<module>.144:  iqfeed service not running.
2020-03-03 05:52:13,822 INFO success: iqfeed-proxy entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-03-03 05:52:13,822 INFO success: Xvfb entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-03-03 05:52:13,822 INFO success: wine-iqfeed-startup entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-03-03 05:52:13,822 INFO success: pyiqfeed-admin-conn entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
..
2020-03-03 05:52:30,221 INFO pyiqfeed_admin_conn.<module>.136:  iqfeed service running.
...

If you see iqfeed service running. it means it all good.

You can also see a very chatty version of whats going on with iqfeed client if you tail tail -f /var/log/iqfeed/pyiqfeed-admin-conn.log.

SideNote: As of right now for some reason not known to me the iqfeed client will crash every few days or hours :( I have worked around it by building the docker container health check script that monitors for wine crashes in the wine.log file and will mark the conatainer as unhealthy. Once this is done the container can be restarted by an external service, most popular ways are either docker stacks or docker-autoheal. I use autoheal becasue its simpler and good enough for my usecase. See docker-compose.yml file for details.

docker-compose -f docker-compose.yml up -d autoheal

This is fairly a opinionated configuration based on my own needs, if you dont like it fork it!

Also some of the code is borrowed and/or inspired from in no particular order

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.