Delivery of files from compendia, partial or complete, individual or as an archive - transporter delivers everything.
This microservice implements file download and archive download features of the o2r API.
It integrates the now deprecated microservices o2r-transportar and o2r-contentbutler
/api/v1/compendium/:id/data/api/v1/compendium/:id/data/filename.txt?size=42/api/v1/job/:id/data/api/v1/compendium/:id.zip/api/v1/compendium/:id.tar.gz.
- Node.js
- ImageMagic tool
convert(for image previews)
TRANSPORTER_PORTDefine on which Port muncher should listen. Defaults to8081.TRANSPORTER_MONGODBRequired Location for the mongo db. Defaults tomongodb://localhost:27017/. You will very likely need to change this.TRANSPORTER_MONGODB_DATABASEWhich database inside the mongo db should be used. Defaults tomuncher.TRANSPORTER_BASEPATHThe local path where compendia are stored. Defaults to/tmp/o2r/.SESSION_SECRETString used to sign the session ID cookie, must match other microservices.
Run locally with
npm install
DEBUG=transporter,transporter:* npm startRun in a container with
docker run -it --rm -p 8081:8081 o2rproject/o2r-transporternpm install -g mocha
# start required other services:
# - MongoDB at port 27017
# - o2r-loader at port 8088 (for loading compendia)
# - o2r-muncher at port 8080 (for publishing compendia)
npm start
npm testSee .travis.yml.
The Dockerfile is used to build an image on Docker Hub.
o2r transporter is licensed under Apache License, Version 2.0, see file LICENSE.
Copyright (C) 2016 - o2r project.