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

Examples

Project details


Download files

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

Source Distribution

simplefsapp_moc-1.0.2.tar.gz (4.7 kB view details)

Uploaded Source

File details

Details for the file simplefsapp_moc-1.0.2.tar.gz.

File metadata

  • Download URL: simplefsapp_moc-1.0.2.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for simplefsapp_moc-1.0.2.tar.gz
Algorithm Hash digest
SHA256 9ea3f187fa4fdc9cca63b66aae50136f58ccedaac1afee4dee9f97c1f45fd90d
MD5 ac09e1c5364400c3ebd84e465b662fc4
BLAKE2b-256 2ac46b9b860f477746dc1a1efc3422d687d9d26d760cdab9b28986f4c2b895bb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page