Table of Contents
A simple ChRIS ds app demo.
simpledsapp recursively walks an input directory, recreates the directory structure
in the output directory, and copies each file using explicit streaming I/O (8 MiB chunks).
It can optionally prefix each output filename.
If --ignoreInputDir is set, the input directory is ignored and a timestamp.json
file is written to the output directory.
simpledsapp
[-h] [--help]
[--json]
[--man]
[--meta]
[--savejson <DIR>]
[-v <level>] [--verbosity <level>]
[--version]
<inputDir>
<outputDir>
[--prefix <PREFIX>]
[--ignoreInputDir]
[--sleepLength <SECONDS>]
[--dummyInt <INT>]
[--dummyFloat <FLOAT>]
[--pftelDB <URL>]
[-h] [--help] If specified, show help message and exit. [--json] If specified, show json representation of app and exit. [--man] If specified, print (this) man page and exit. [--meta] If specified, print plugin meta data and exit. [--savejson <DIR>] If specified, save json representation file to DIR and exit. [-v <level>] [--verbosity <level>] Verbosity level for app. Not used currently. [--version] If specified, print version number and exit. <inputDir> Input directory. <outputDir> Output directory. [--prefix <PREFIX>] If specified, append this prefix to resulting output files. [--ignoreInputDir] If specified, ignore the input dir completely and write ``timestamp.json`` in the output directory. [--sleepLength <SECONDS>] If specified, time to sleep before performing plugin action. [--dummyInt <INT>] If specified, this is a dummy (not used) input integer parameter. [--dummyFloat <FLOAT>] If specified, this is a dummy (not used) input float parameter. [--pftelDB <URL>] Optional pftel telemetry logger endpoint of the form ``<pftelURL>/api/v1/<object>/<collection>/<event>``.
Getting inline help is:
docker run --rm fnndsc/pl-simpledsapp simpledsapp --manYou need you need to specify input and output directories using the -v flag to docker run.
docker run --rm -u $(id -u) \
-v $(pwd)/in:/incoming -v $(pwd)/out:/outgoing \
fnndsc/pl-simpledsapp simpledsapp \
/incoming /outgoingBuild the Docker container:
docker build -t local/pl-simpledsapp .Run unit tests:
docker run --rm local/pl-simpledsapp nosetests
- docker run --rm -u $(id -u)
- -v $(pwd)/in:/incoming -v $(pwd)/out:/outgoing fnndsc/pl-simpledsapp simpledsapp /incoming /outgoing --prefix lolo