Skip to content

Instantly share code, notes, and snippets.

@afbjorklund
Last active September 16, 2019 08:45
Show Gist options
  • Save afbjorklund/4155bdd4c4e2ed2e1489062662b57d32 to your computer and use it in GitHub Desktop.
Save afbjorklund/4155bdd4c4e2ed2e1489062662b57d32 to your computer and use it in GitHub Desktop.
Building moxi

Installing moxi

You need to use a supported OS, for the binary build dependencies to download.

This was tested with Ubuntu 16.04, but other distributions might also work...

Installing repo

https://code.google.com/archive/p/git-repo/

Installing cmake

https://cmake.org/

Installing ninja

https://ninja-build.org/

Building moxi

See https://github.com/couchbase/tlm

To download the full amount of repositories (800M), use the default manifests:

   # repo init -u git://github.com/couchbase/manifest -m couchbase-server/spock/5.0.0.xml
   # repo init -u git://github.com/couchbase/manifest -m couchbase-server/vulcan/5.5.0.xml

Or use these reduced manifests, that only include the moxi dependencies (128M):

$ mkdir moxi
$ cd moxi
$ repo init --no-clone-bundle -u https://github.com/afbjorklund/couchbase-manifest -b moxi -m moxi-5.0.0.xml
$ repo sync

Then to build, you can either use make to build everything or just moxi:

$ mkdir build
$ cd build
$ cmake -GNinja -DCOUCHBASE_KV_COMMIT_VALIDATION=True -DCB_DOWNLOAD_DEPS_DEFAULT_MANIFEST=$PWD/../moxi-manifest.cmake ..
$ ninja moxi

To install, you need the moxi program and the various libraries it uses.

The default distribution installs in either /opt/moxi or /opt/couchbase.

Available versions

  • 2.5.0 (legacy)
  • 5.0.0
  • 5.0.1
  • 5.1.0
  • 5.1.1
  • 5.5.0 (community unreleased, enterprise only)
  • 5.5.1 (community unreleased, enterprise only)

Binary downloads

See https://www.couchbase.com/downloads

Note: the new package insists on having 4 CPU and 4 GB RAM, even if you only want to run the moxi server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment