Skip to main content

A demo/testing simplefsapp for the MOC compute environment.

Project description

https://badge.fury.io/py/simplefsapp_moc.svg https://travis-ci.org/FNNDSC/simplefsapp_moc.svg?branch=master https://img.shields.io/badge/python-3.5%2B-blue.svg

Abstract

A demo/testing simplefsapp for the MOC compute environment.

Synopsis

python simplefsapp_moc.py                                       \
    [-v <level>] [--verbosity <level>]                          \
    [--version]                                                 \
    [--man]                                                     \
    [--meta]                                                    \
    <outputDir>

Description

simplefsapp_moc.py is a testing/demo application for an FS-type application on the Massachusetts Open Cloud (MOC) remote computing environment.

The application simply “touches” new files in its output directory which are the names of the files in the ‘–dir <path>’ target directory.

Arguments

[-v <level>] [--verbosity <level>]
Verbosity level for app. Not used currently.

[--version]
If specified, print version number.

[--man]
If specified, print (this) man page.

[--meta]
If specified, print plugin meta data.

[--dir <path>]
A directory on the process filesystem (if run outside ChRIS) or a
path inside openstorage (if run within ChRIS) to examine.

[--sleepLength <sleepLength>]
If specified, sleep for <sleepLength> seconds before starting
script processing. This is to simulate a possibly long running
process.

Run

This plugin can be run in two modes: natively as a python package or as a containerized docker image.

Using PyPI

To run from PyPI, simply do a

pip install simplefsapp_moc

and run with

simplefsapp_moc.py --man /tmp

to get inline help. The app should also understand being called with only two positional arguments

simplefsapp_moc.py /destination/directory

Using docker run

To run using docker, be sure to assign an output directory to /outgoing. Make sure that the $(pwd)/out directory is world writable!

Now, prefix all calls with

docker run --rm -v $(pwd)/out:/outgoing                             \
        fnndsc/pl-simplefsapp_moc simplefsapp_moc.py                        \

Thus, getting inline help is:

mkdir in out && chmod 777 out
docker run --rm -v $(pwd)/in:/incoming -v $(pwd)/out:/outgoing      \
        fnndsc/pl-simplefsapp_moc simplefsapp_moc.py                        \
        --man                                                       \
        /outgoing

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for simplefsapp-moc, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size simplefsapp_moc-1.0.2.tar.gz (4.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page