benel / couchapp

Couchapp python tool as a docker image

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Couchapp for Docker

Or "how to use couchapp python tool without installing python"

Prerequisites

  • docker

Install

docker pull benel/couchdb

Use

  • List commands and options
docker run --rm benel/couchapp
  • Convert the app directory into app.json:
docker run --rm -v "$(pwd)"/app:/app benel/couchapp push . --export >app.json
  • Push the app directory as a design document of the db database of the couchdb1 running container:
docker run --rm -v "$(pwd)"/app:/app --link couchdb1:couchdb -e URI=http://couchdb:5984/ benel/couchapp push .
  • Push every JSON file in the docs directory as a document of the db database of the couchdb1 running container:
docker run --rm -v "$(pwd)"/docs:/app --link couchdb1:couchdb -e URI=http://couchdb:5984/db benel/couchapp pushdocs . 

About

Couchapp python tool as a docker image


Languages

Language:Shell 52.5%Language:Dockerfile 47.5%