一个简单的ds-type-chris应用程序,专门为马萨诸塞州开放云远程计算环境创建。
simpledsapp-moc的Python项目详细描述
Abstract
一个简单的ds-type-chris应用程序,专门为马萨诸塞州开放云远程计算环境创建。
Synopsis
python simpledsapp_moc.py \ [--prefix <filePrefixString>] \ [--sleepLength <sleepLength>] \ [--ignoreInputDir] \ [-v <level>] [--verbosity <level>] \ [--version] \ [--man] \ [--meta] \ <inputDir> <outputDir>
Description
^ TT2}$是一个基于克里斯的应用程序,它基本上在输入目录中对输出目录中的每个文件进行显式拷贝,对每个文件名预置一个可选字符串。
Agruments
[--prefix <prefixString>] If specified, a prefix string to append to each file copied. [--sleepLength <sleepLength>] If specified, sleep for <sleepLength> seconds before starting script processing. This is to simulate a possibly long running process. [--ignoreInputDir] If specified, ignore the input directory. Simply write a single json file to the output dir that is a timestamp. Useful if the input directory contains large nested file trees. [-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.
Run
这个plugin可以在两种模式下运行:以python包的形式运行,或者以容器化的docker映像的形式运行。
Using PyPI
要从pypi运行,只需执行a
pip install simpledsapp_moc
并使用
simpledsapp_moc.py --man /tmp /tmp
获取内联帮助。应用程序还应理解仅使用两个位置参数调用
simpledsapp_moc.py /some/input/directory /destination/directory
Using ^{tt1}$
要使用docker运行,请确保将“input”目录分配给/incoming,将输出目录分配给/outgoing。确保$(pwd)/out目录是全局可写的!
现在,在所有通话前加上
docker run --rm -v $(pwd)/out:/outgoing \ fnndsc/pl-simpledsapp_moc simpledsapp_moc.py \
因此,获得内联帮助是:
mkdir in out && chmod 777 out docker run --rm -v $(pwd)/in:/incoming -v $(pwd)/out:/outgoing \ fnndsc/pl-simpledsapp_moc simpledsapp_moc.py \ --man \ /incoming /outgoing