Or "how to use couchapp python tool without installing python"
- docker
docker pull benel/couchdb
- List commands and options
docker run --rm benel/couchapp
- Convert the
app
directory intoapp.json
:
docker run --rm -v "$(pwd)"/app:/app benel/couchapp push . --export >app.json
- Push the
app
directory as a design document of thedb
database of thecouchdb1
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 thedb
database of thecouchdb1
running container:
docker run --rm -v "$(pwd)"/docs:/app --link couchdb1:couchdb -e URI=http://couchdb:5984/db benel/couchapp pushdocs .