Coder Social home page Coder Social logo

o2r-bagtainers's Introduction

bagtainers

Build Status

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

Tools

Uploader container

tl;dr

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

docker run --rm o2r-project/examplecompendia -a http://172.17.0.1/api/v1/compendium -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 http://172.17.0.1/api/v1/compendium -e 1
# note the returned ID
curl http://172.17.0.1/api/v1/compendium/<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.

Parameters
  • -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: http://172.17.0.1/api/v1/compendium
  • -c <cookie>: the session cookie to authenticate the upload, e.g. -c s:MYSESSION (get it from the Browser after authentication)
Jobs

Once the compendia are uploaded, you can start jobs:

docker run --rm examplecompendia -a http://172.17.0.1/api/v1/compendium -e 1 -c s:abcdef123...<rest of mycookie>
# docker run --rm o2r-upload -a http://172.17.0.1/api/v1/compendium -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> http://172.17.0.1/api/v1/job
# note the returned job ID and use it to query job information
curl http://172.17.0.1/api/v1/job/<job ID> | python -mjson.tool

Directory listings

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

perl dirtree.pl path/to/directory

License

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.