JPHutchins / open-energy-view

View resource consumption trends, history, analysis, and insights.
https://www.openenergyview.com
Other
70 stars 11 forks source link

[WIP] Still erroring out, but I am a bit stuck #43

Open ianwinsemius opened 2 years ago

ianwinsemius commented 2 years ago

If you'd like to run this and see if you recognize the errors, I think I'm getting close, but also think that the fact that celery workers are going to run in the background will cause them to be ignored, and for the container to exit.

JPHutchins commented 2 years ago

So cool! I will check this out tomorrow.

JPHutchins commented 2 years ago

This is awesome, it builds my 30+ minute instructions in a few minutes! Commenting the diff with some fixes and workarounds

JPHutchins commented 2 years ago

With this the uwsgi server runs and I am able to go to Docker Desktop and click view in browser. I tried with ports 5000 and 5001, I think either is OK.

Unless docker is way more magic than I understand, I would think that the run-io-work and run-cpu-worker need there own service since the run-wsgi-dev script should never exit.

I was feeling spicy so I changed the init.sh to:

./run-wsgi-dev &
./run-io-worker &
./run-cpu-worker

Which ends up revealing some weird celery errors.

JPHutchins commented 2 years ago

The script test-gui should run the flask development server.