300Geeks / aws-elk-billing

Tools for Loading and Visualising AWS Detailed Billing with ELK(Elasticsearch, Logstash, Kibana)
MIT License
157 stars 26 forks source link

Prevent aws-elk-billing from exiting once /sbin/init is done #23

Closed Philip-Scott closed 6 years ago

Philip-Scott commented 6 years ago

Running the tool had a 100% CPU usage on a core from the orchestrate.py script and it's infinite loop.

In this PR, i removed said loop and changed CMD to ENTRYPOINT on the Dockerfile to prevent the container from exiting

droidlabour commented 6 years ago

@Philip-Scott Thanks for your contribution. Moving from CMD to ENTRYPOINT makes tests in docker-compose-test.yml & docker-compose-test-rerun.yml fail.

aws-elk-billing isn't even starting. Refer Travis logs for your PR https://travis-ci.org/PriceBoardIn/aws-elk-billing/builds/308206017

Instead of CMD /sbin/init, I've added to just tail -f /dev/null