We recently changed to not launch like this, but https://github.com/couchbase/Android-Couchbase/blob/35ae580f5c57d56b4f4cc927e68a63c4dca5dd2a/src/com/couchbase/android/CouchbaseService.java#L225
is how it booted via erlexec Cheers Dale On 27 September 2011 22:02, Robert Jones <[email protected]> wrote: > What's the trick for launching directly using erlexec? I basically used > the > Android-Couchbase-SourceBuild as a framework, but I stripped out all the > Android references and plugged in my own tools as necessary. > > Now I've come to the rather embarrassing conclusion that I don't know how > to > attempt to launch this thing. I suspect the following line from my > couchdb_wrapper script is the key, but what should the arguments be? I > guess my question is, how do I launch an OS process with erlexec, and how > can I get that process to be couchdb? > > exec $BINDIR/erlexec $@ > > On Sat, Sep 24, 2011 at 8:48 PM, Dale Harvey <[email protected]> wrote: > > > Hey > > > > The relevant files in the Android build is > > > > > > > https://github.com/couchbase/Android-Couchbase-SourceBuild/blob/master/build.final > > > > on android we strip away a lot of couch and erlangs boot files so you > might > > not want to do that, we launch directly with erlexec, one of the easy > > savings is to strip debug symbols from all the beam files, that reduced > the > > beams by around a half > > > > > > > https://github.com/couchbase/Android-Couchbase-SourceBuild/blob/master/build.final#L199 > > > > The current android build (in a compressed archive) is 4.5MB > > > > Cheers > > Dale > > > > On 25 September 2011 00:37, Paul J. Davis <[email protected] > > >wrote: > > > > > I can't point you at anything specific, but the two places I would look > > are > > > at the BigCouch `make dist` command as well as what Dale Harvey has > been > > > cooking up for the Android port. Both should be as minimal of an > install > > as > > > possible. I think Dale's probably got the list as small as possible for > > the > > > time being since he's been operating under similar "make it as small as > > > possible" constraints as I imagine you'd need. > > > > > > URLs of note: > > > > > > https://github.com/couchbase/Android-Couchbase > > > https://github.com/cloudant/bigcouch > > > > > > > > > > > > On Saturday, September 24, 2011 at 6:11 PM, Robert Jones wrote: > > > > > > > My evil plan is to use CouchDB on a semi-embedded platform. I'd like > to > > > > conserve space by only installing the Erlang libraries necessary to > > > support > > > > CouchDB. I've not been able to locate this information. I'm not an > > Erlang > > > > developer...yet. If I have to dig in, I will. > > > > > > > > So, does anyone have experience with this, and if so, what did you > > find? > > > > > > > > I'm using Erlang R14B03 and CouchDB 1.1.0 on Linux. > > > > > > > > I'm also interested in general advice for embedding Erlang/CouchDB. > > > > > > > > Thanks, > > > > Rob > > > > > > > > -- > > > > Robert Jones > > > > Technical Lead, Software Development > > > > > > > > L.B. Foster Company - Salient Systems > > > > 4393-K Tuller Rd > > > > Dublin, OH 43017-5008 > > > > phone: (614) 792-5800 EX 4636 > > > > fax: (614) 792-5888 > > > > email: [email protected] (mailto:[email protected]) > < > > > your%[email protected] (mailto:[email protected])> > > > > > > > > website: www.lbfoster.com (http://www.lbfoster.com) > > > > NASDAQ Ticker Symbol: FSTR > > > > > > > > > > > > -- > Robert Jones > Technical Lead, Software Development > > L.B. Foster Company - Salient Systems > 4393-K Tuller Rd > Dublin, OH 43017-5008 > phone: (614) 792-5800 EX 4636 > fax: (614) 792-5888 > email: [email protected] <your%[email protected]> > > website: www.lbfoster.com > NASDAQ Ticker Symbol: FSTR >
