Forum archive
Guidance request for OpenERP - TKLDEV build
I have been drafting a OpenERP App which can be found a the following location.
https://github.com/l-arnold/postgresql---openerp
It is based on the basic way I built my running ap. There are a few "moves" involved wich I am unclear on the scripting of.
- I am assuming I don't use apt-get for some "apt-gets" in (conf.d/main)
- There are several Python Library Pulls (conf.d/main)
- There are some bzr branch pulls (hopefully run after bzr is actually brought in
- There is a New User Declaration for Postgres and also SSH (su - ) (inside conf.d/downloads)
- There is a Start Script Creation (should likely move into a configuration/auto start system soon) that is run under su - (non root)
- In general I feel I need to get my hands around how the sequencing of calls will work in TKLDEV.
- Any and all recomendations / help is appreciated.
In Points of focus, I branched this from PostgreSQL. I added the File "Downloads" in conf.d (as I saw downloads in some other App builds. I have no idea what may call the download file and when sequentially. Moreover I put some "generally sequential script elements" into the file and I expect they should go somewhere else.
I have not actually run anything as I am sure I need to clean this up some.
thanks in advance,
Landis (L. Arnold)
And I'm going to assume that you are further along than you were when you started this?!
Regardless, here are some comments on your questions (you may have worked it out but others might be looking for answers...). To be clear though, I am certainly no TKLDev expert...
Packages are generally installed by the plan (requires package name only) rather than apt-get in the conf.d (which it looks like your all over). Exceptions to that might be when you are installing from a non-default repo (i.e. not Debian stable or TKL).
Not sure what you mean by this...
The plan runs first so bzr should be installed fine by the time you start pulling down from version control...
From a brief glance your conf.d/downloads looks fine... (But I didn't look carefully)
I don't know about OpenERP but often software that needs to be run as a service (in Windows speak) can be started with a init script. If OpenERP can do that then I suspect that would be the go... Then you could just put that in the overlay.
AFAIK it's Something like this:
FWIW I'm not sure on the rationale of splitting conf.d into downloads and main, but from what i can see of what Alon and Liraz have done, is downloads is simply that... It downloads what ever files are needed. Then main actually does stuff to them (like unpacking them, moving them, deleting them when done, etc)
Hope that's of some help...