Github user mhall119 commented on a diff in the pull request:

    https://github.com/apache/couchdb/pull/442#discussion_r84740327
  
    --- Diff: configure ---
    @@ -184,6 +192,85 @@ EOF
     cat > $rootdir/config.erl << EOF
     {with_curl, $WITH_CURL}.
     EOF
    + 
    +if [ "${WITH_SNAP}" -eq "1" ]; then
    +echo "==> configuring snapcraft config"
    +cat > rel/snapcraft.yaml << EOF
    +name: couchdb
    +version: 2.0
    +summary: Document based database
    +description: CouchDB is a database that completely embraces the web. Store 
your data with JSON documents. Access your documents and query your indexes 
with your web browser, via HTTP. Index, combine, and transform your documents 
with JavaScript. 
    +confinement: strict
    +grade: stable
    +
    +apps:
    +    couchdb:
    +        daemon: simple
    +        command: snap_run
    +        plugs: [network-bind]
    +    run:
    +        command: snap_run
    +        plugs: [network-bind]
    +parts:
    +    couchdb: 
    +        plugin: dump
    +        source: .
    +        organize:
    +            snap.ini: couchdb/etc/snap.ini
    +            snap_run: bin/snap_run
    +        stage:
    +            - couchdb
    +            - bin
    +        snap:
    +            - couchdb
    +            - bin
    +    erlang:
    +        plugin: nil
    +        stage-packages:
    +            - erlang-base-hipe
    +            - erlang-crypto
    +            - erlang-eunit
    +            - erlang-inets
    +            - erlang-os-mon
    +            - erlang-public-key
    +            - erlang-ssl
    +            - erlang-syntax-tools
    +            - erlang-tools
    +            - erlang-xmerl
    +            - libc6
    +            - libcurl3
    +            - libgcc1
    +            - libicu55
    --- End diff --
    
    They are pulled from Ubuntu's archives at build-time, and included in the 
.snap file, so they will always work. Snaps bundle dependencies like this, and 
run everything on a "core" image that is compatible with them, so that the snap 
will always "just work" no matter where it's run


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to