Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating docs to include install for alpine and node 12 #424

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sstewart199
Copy link

@sstewart199 sstewart199 commented Jan 28, 2020

Installing pouchdb-server on Alpine Linux based images

You need the following packages:

  • build-base
  • python
apk --no-cache add --virtual builds-deps build-base python

We recommend using no-cache and virtual, in order to keep the resulting container size same.

Alpine linux based images use musl libc instead of the standard glibc and thus are not compatible with compiled binaries. node-pre-gyp currently does not test the pre-compiled binaries to be ABI-compatible and thus you may see segfaults. We are working to resolve this issue.

As a workaround, In alpine based images, force recompiling the leveldown native addon after a npm install with this command: npm rebuild leveldown --build-from-source.

RUN apk --no-cache add --virtual builds-deps build-base python
RUN yarn --production && npm rebuild leveldown --build-from-source
CMD node node_modules/pouchdb-server -p 5432

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant