Building snaps

Prerequisites

CouchDB requires Ubuntu 16.04. If building on 18.04, then LXD might be useful.

  1. lxc launch ubuntu:16.04 couchdb-pkg

  2. lxc exec couchdb-pkg bash

  3. sudo apt update

  4. sudo apt install snapd snapcraft

  5. git clone https://github.com/couchdb/couchdb-pkg.git

  6. cd couchdb-pkg

How to do it

  1. Edit snap/snapcraft.yaml to point to the correct tag (e.g. 2.2.0)
  2. snapcraft

Instalation

You may need to pull the LXD file to the host system.

$ lxc file pull couchdb-pkg/root/couchdb-pkg/couchdb_2.2.0_amd64.snap /tmp/couchdb_2.2.0_amd64.snap

The self crafted snap will need to be installed in devmode

$ sudo snap install /tmp/couchdb_2.2.0_amd64.snap --devmode