Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 85B4C9603 for ; Tue, 27 Sep 2011 23:10:46 +0000 (UTC) Received: (qmail 93562 invoked by uid 500); 27 Sep 2011 23:10:45 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 93516 invoked by uid 500); 27 Sep 2011 23:10:45 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 93508 invoked by uid 99); 27 Sep 2011 23:10:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2011 23:10:44 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rjones@salientsystems.com designates 74.125.82.180 as permitted sender) Received: from [74.125.82.180] (HELO mail-wy0-f180.google.com) (74.125.82.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2011 23:10:38 +0000 Received: by wyh11 with SMTP id 11so8259827wyh.11 for ; Tue, 27 Sep 2011 16:10:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.227.6.215 with SMTP id a23mr8131799wba.44.1317165018421; Tue, 27 Sep 2011 16:10:18 -0700 (PDT) Received: by 10.180.8.201 with HTTP; Tue, 27 Sep 2011 16:10:18 -0700 (PDT) In-Reply-To: References: <3D88CE7B490E4801946E7EDBA439075A@gmail.com> Date: Tue, 27 Sep 2011 19:10:18 -0400 Message-ID: Subject: Re: Minimum Erlang Libraries for CouchDB From: Robert Jones To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=002215b02e3e089b7604adf46197 X-Virus-Checked: Checked by ClamAV on apache.org --002215b02e3e089b7604adf46197 Content-Type: text/plain; charset=ISO-8859-1 Thanks! That was just the pointer I needed. Rob On Tue, Sep 27, 2011 at 5:26 PM, Dale Harvey wrote: > 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 > 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 > 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 > > >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: rjones@salientsystems.com (mailto:rjones@salientsystems.com > ) > > < > > > > your%20name@salientsystems.com (mailto:20name@salientsystems.com)> > > > > > > > > > > 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: rjones@salientsystems.com > > > > website: 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: rjones@salientsystems.com website: www.lbfoster.com NASDAQ Ticker Symbol: FSTR --002215b02e3e089b7604adf46197--