Repository navigation
Expand file tree
/
Copy pathunsuper.gruntfile.yml
More file actions
executable file
·49 lines (39 loc) · 2.16 KB
/
Copy pathunsuper.gruntfile.yml
File metadata and controls
executable file
·49 lines (39 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# A service consists of the following fields:
# endPoint -- REST endpoint, e.g. /rest/service/<endPoint>
# commandLine -- Command line to run
# Some special command line parameters are
# #value -- replace this argument with the parameter from the POST
# <in -- look for an uploaded file
# >out -- the process will generate this file for later download
# description -- description of the endpoint
# defaults -- a hashmap of default values for "#value" parameters
# this example configuration file exposes 2 endpoints, echo and copy
# echo simply echos the input and can be called like this:
# curl -X POST -v --form Message=hi localhost:9901/rest/service/echo
# copy takes input and output files. <in must be provided
# curl -X POST -v --form in=#README.md --form output=R.md localhost:9901/rest/service/copy
# NB: "--form input=#README.md" indicates that curl should send README.md as the form parameter "input"
# and the output filename is set to "R.md"
#
# to retrieve the output data, first find the UUID in the response, and request the file
# wget localhost:9901/rest/job/eab4ab07-c8f7-44f7-b7d8-87dbd7226ea4/file/out
# NB: we request the output file using the "out" parameter, not the filename we requested
# Here is the copy example using jq(http://stedolan.github.io/jq/) to help a bit
#
# id=`curl --silent -X POST --form in=#README.md --form out=small_file.txt localhost:9901/rest/service/copy | jq -r .uuid`
# wget --content-disposition localhost:9901/rest/job/$id/file/output
# This is the hostname:port that the server is running on.
# Used for logging and email
server: localhost:9901
# Working directory
# This is the directory path used for working files. If left blank,
# use a system temp directory.
# NB: To run in the pesscara/grunt docker, this must be set to /data
directory: /data
# Report Warn status to Consul when we have more than warnLevel jobs
warnLevel: 3
# Report Critical status to Consul when we have more than criticalLevel jobs
warnLevel: 5
services:
- endPoint: noduleclassifier
commandLine: ["python", "/_model_application.py","-i","<dataset","-o", ">output"]