yousty / dokku-sphinx

A sphinx plugin for dokku
MIT License
1 stars 0 forks source link

Improve the README #1

Open tyagow opened 7 years ago

tyagow commented 7 years ago

Hi guys, First thanks for sharing this plugin, i search a lot and this is the only one i saw... So, i am new with dokku and sphinx... i got a django aplication inside a dokku container, and now i need to use it with sphinx. 1) How can i must set the sphinx.conf and where i should put ? 2) I just need to put the sphinx.conf inside /var/lib/dokku/data/storage , should i make a storage/link with dokku to this path ? 3) how sphinx will connect to mysql that is inside another dokku container ? Should i make a link with mysql container and this sphinx container ? Sorry for so many questions but as i said i am new with this and really need to get it working.... If you guys manage to answer or give me some clue i will do a PR with a UPDATE in the README to help others like me .... Thanks for this plugin and if you guys manage to answer it, double thanks !!

mateusz-useo commented 7 years ago

If memory serves I managed to get most of the functions working, including creating a container, linking, getting it to start, stop and destroying. Don’t know where I left the README page and if it’s anyhow useful. Problem that I was struggling at the end and eventually I wasn’t able to solve because of lack of time was the configuration of sphinx. Again, if memory serves, container takes the configuration from specific place in the app and copies it (or if I’m wrong the config has to be copied some place in the plugin directories). The problems which were not solved include things like reloading the config, don’t know how about real time indexing, and I think at some point I was struggling with the container manually and don’t remember now how much automated everything is. Bottom line is that it was working with already generated indices and manually triggered reindexing. For more info I’d have to dig in the code again.

Regarding your questions:

  1. The conf file should be placed within an app container (https://github.com/yousty/dokku-sphinx/blob/master/functions#L315)
  2. Don't need to I guess, the conf should be taken from the app container
  3. The sphinx connects to mysql over specified in the conf ports and mysql41 protocol. I'm not sure how exactly technically it happens but it does :)

Hope you'll manage to figure something out as we pretty much abandoned the project, at least for now. Good luck!