Giter VIP home page Giter VIP logo

pman's Introduction

pman v3.0.0.0

Docker Image Version MIT License Github Actions

This repository provides pman -- a process manager, that provides a unified API over HTTP for running jobs on

  • docker swarm
  • Openshift

For more info see https://github.com/FNNDSC/pman/wiki/pman-overview

The most common use case for pman is for running jobs against docker swarm.

git clone https://github.com/FNNDSC/pman.git
cd pman
git checkout flask
docker build -t local/pman:dev .

In docker-compose_dev.yml change PMANREPO to local

./make.sh

Simulate incoming data

pman_dev=$(docker ps -f ancestor=local/pman:dev -f name=pman_service -q)
docker exec -it $pman_dev mkdir -p /home/localuser/storeBase/key-chris-jid-1/incoming
docker exec -it $pman_dev mkdir -p /home/localuser/storeBase/key-chris-jid-1/outgoing
docker exec -it $pman_dev touch /home/localuser/storeBase/key-chris-jid-1/incoming/test.txt

Using HTTPie <https://httpie.org/> to run a container

http POST http://localhost:5010/api/v1/ cmd_args='--saveinputmeta --saveoutputmeta --dir cube/uploads' cmd_path_flags='--dir' auid=cube number_of_workers=1 cpu_limit=1000 memory_limit=200 gpu_limit=0 image=fnndsc/pl-dircopy selfexec=dircopy selfpath=/usr/local/bin execshell=/usr/local/bin/python type=fs jid=chris-jid-1

Get the result

http http://localhost:5010/api/v1/chris-jid-1/

For pman detailed information, see the pman wiki page.

ARGS

    [--ip <IP>]

    The IP interface on which to listen.

    [--port <port>]
    The port on which to listen. Defaults to '5010'.

    [--enableTokenAuth]
    Enables token based authorization and can be configured to look
    for a .ini file or an openshift secret.

    [--tokenPath <tokenPath>]
    Specify the absolute path to the token in the file system.
    By default, this looks for the pfiohConfig.ini file in the current
    working directory.

    [-x|--desc]
    Provide an overview help page.

    [-y|--synopsis]
    Provide a synopsis help summary.

    [--version]
    Print internal version number and exit.

    [-v|--verbosity <level>]
    Set the verbosity level. "0" typically means no/minimal output.
    Allows for more fine tuned output control as opposed to '--quiet'
    that effectively silences everything.

pman's People

Contributors

rudolphpienaar avatar danmcp avatar ravisantoshgudimetla avatar nicolasrannou avatar jbernal0019 avatar husky-parul avatar iamemilio avatar betaredex avatar umohnani8 avatar sandip117 avatar awalkaradi95 avatar arnavn101 avatar

Watchers

 avatar

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.