Public | Automated Build

Last pushed: a year ago
Short Description
Create and upload example compendia for the o2r API
Full Description


Bagtainers drafts can be found in numbered subdirectories (ordered by creation date). The documentation of each level of the development is in the file


Uploader container


You can also simply run the latest container available on Docker Hub with

docker run --rm o2r-project/examplecompendia -a -s

Build and run

A container to upload example bagtainers to an implementation of the o2r api can be build and run with the following commands:

docker build -t examplecompendia .
docker run --rm examplecompendia -a -e 1
# note the returned ID
curl<compendium ID> | python -mjson.tool

It can be used to upload multiple test compendia from o2r-muncher or selected bagtainers from this repository, see next section.

  • -e <n>: upload n-many test compendia, e.g. -e 42
  • -s: upload sample steps, which complete each one more step of the job task chain
  • -b XXXX: upload specific examples, based on directory name, e.g. -b 0003
    • can be used multiple times, e.g. -b 0003 -b 0005
  • -a http://...: the API endpoint, e.g. -a http://myurl/api/v1/compendium
    • Default it is the local docker host IP:
  • -c <cookie>: the session cookie to authenticate the upload, e.g. -c s:MYSESSION (get it from the Browser after authentication)

Once the compendia are uploaded, you can start jobs:

docker run --rm examplecompendia -a -e 1 -c s:abcdef123...<rest of mycookie>
# docker run --rm o2r-upload -a -e 0 -b 0003 -b 0004
# docker run o2r-uploader -e 1 -b 0005 -b 0003 -b 0004

# note the returned compendium and start a new job for it
curl -F compendium_id=<compendium ID>
# note the returned job ID and use it to query job information
curl<job ID> | python -mjson.tool

Directory listings

The file is a little Perl script by Arjen Bax (via texblog to create directory listings for the LaTeX package dirtree.

perl path/to/directory


The bagtainers in this directory are all published under copyrights by the respective content authors.

Docker Pull Command
Source Repository