RipcordSoftware / AvanceDB

An in-memory database based on the CouchDB REST API and containing the CouchDB Futon and Fauxton web sites
GNU Affero General Public License v3.0
161 stars 12 forks source link

Dockerfile for building an avancedb server #76

Closed amuino closed 7 years ago

amuino commented 7 years ago

Problem

Currently, binaries need to be built for every platform, which may not be convenient. There are plans to release packages for major linux distros, but that will also take some effort.

Solution

Provide a Dockerfile so it is easy to build and publish (in docker hub or similar) a prebuilt AvanceDB server.

How it works

Building: After cloning with submodules:

docker build . -t avancedb

This will create a docker image named avances which exposes port 5994

Running: This will run the AvanceDB container, mapping 5994 in the container to the CouchdDB standard port 5984. The container will run on foreground and can be killed by CTRL+C.

docker run --rm -it -p 5984:5994 avancedb
coveralls commented 7 years ago

Coverage Status

Changes Unknown when pulling e7a545e6091877cfde5ee1890a22e2223a8ed158 on amuino:docker into on RipcordSoftware:master.

craigminihan commented 7 years ago

Thanks for the PR @amuino - I didn't notice it until now. I've got some time to look at Docker so I'll get a chance to integrate your commit into the release build and a docker hub push which will be really cool.

craigminihan commented 7 years ago

@amuino I've created a bunch of Dockerfiles (based on your PR) and a Makefile to build the images and pushed a runnable image to hub.docker. The changes started at commit 798a939b762a478327174d9ddf2dec30250fa1aa.

You run the image with docker run -d -p 5994:5994 ripcordsoftware/avancedb. I'll update the README with more info on the process later - thanks for the inspiration!