Skip to content
Permalink
Browse files
fixes for snapcraft
  • Loading branch information
wohali committed Mar 2, 2020
1 parent e26bddf commit deef8181036cf32a01c134612f447d3da80b76bc
Showing 2 changed files with 6 additions and 11 deletions.
@@ -253,15 +253,15 @@ upstream image is fully patched for `core18`, we'll move to it instead.)
From an Ubuntu 18.04 machine with Docker installed:

```bash
$ git clone https://github.com/couchdb/couchdb-pkg && cd couchdb-pkg`
$ docker pull yakshaveinc/snapcraft:core18-edge`
$ docker run -it -v "$PWD":/build:Z -w /build yakshaveinc/snapcraft:core18-edge snapcraft
$ git clone https://github.com/couchdb/couchdb-pkg && cd couchdb-pkg
$ docker pull yakshaveinc/snapcraft:core18
$ docker run -it -v "$PWD":/build:Z -w /build yakshaveinc/snapcraft:core18 snapcraft
```

The self-built snap will need to be installed using `--dangerous`:

```bash
sudo snap install ./couchdb_2.3.1_amd64.snap --dangerous
sudo snap install ./couchdb_3.0.0_amd64.snap --dangerous
```

Clean up with:
@@ -1,5 +1,5 @@
name: couchdb
version: 2.3.1
version: 3.0.0
summary: Official Apache CouchDB snap - a clustering document oriented database
description: |
CouchDB is a database that completely embraces the web. Store your data with
@@ -28,7 +28,7 @@ parts:
couchdb:
after: [add-repo]
plugin: dump
source: https://apache.bintray.com/couchdb-deb/pool/C/CouchDB/couchdb_2.3.1~bionic_amd64.deb
source: https://apache.bintray.com/couchdb-deb/pool/C/CouchDB/couchdb_3.0.0~bionic_amd64.deb
source-type: deb
# because this doesn't use apt, we have to manually list all of our dependencies :(
# the following are all in core18, and warning output can safely be ignored:
@@ -62,8 +62,6 @@ parts:
- couch-libmozjs185-1.0
- lsb-base
- procps
- python3
- python3-requests
- libcurl4
- libgcc1
- libicu60
@@ -111,9 +109,6 @@ apps:
remsh:
command: opt/couchdb/bin/remsh
plugs: [network, network-bind]
couchup:
command: opt/couchdb/bin/couchup
plugs: [network, network-bind]
couchjs:
command: opt/couchdb/bin/couchjs
plugs: [network, network-bind]

0 comments on commit deef818

Please sign in to comment.