-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
afabiani
committed
Oct 18, 2019
1 parent
60c4ca2
commit beac9c0
Showing
4 changed files
with
197 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
166 changes: 166 additions & 0 deletions
166
src/wpsremote/xmpp_data/configs/myservice/service.config.sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,166 @@ | ||
# (c) 2016 Open Source Geospatial Foundation - all rights reserved | ||
# (c) 2014 - 2015 Centre for Maritime Research and Experimentation (CMRE) | ||
# (c) 2013 - 2014 German Aerospace Center (DLR) | ||
# This code is licensed under the GPL 2.0 license, available at the root | ||
# application directory. | ||
|
||
# This is a INI file to be read with python ConfigParser (https://docs.python.org/2/library/configparser.html) | ||
# Is possible to reference another variable in the ini file using the format %(<variable name>)s (note the 's' at the end) | ||
|
||
# ########################################### # | ||
# Default Service Params # | ||
# ########################################### # | ||
|
||
[DEFAULT] | ||
service = GdalContour | ||
namespace = default | ||
description = GDAL Contour Remote Service | ||
executable_path = ./xmpp_data/configs/myservice/code | ||
executable_cmd = python %(executable_path)s/test.py | ||
output_dir = ./xmpp_data/output/ | ||
unique_execution_id = %(unique_exe_id)s | ||
workdir = %(output_dir)s/%(unique_execution_id)s | ||
active = True | ||
max_running_time_seconds = 300 | ||
|
||
# . This option allows you to set the CPU and Memory average load scan time. | ||
# . It is espressed in 'minutes' and if disabled here it will be set by default | ||
# . to 15 minutes. | ||
load_average_scan_minutes = 1 | ||
|
||
# . Use this option to completely avoid using this host (and prevent starting a new | ||
# . 'processbot') whenever one of the following process names are running. | ||
# . In other words, if one of the following processes are currently running on this machine, | ||
# . GeoServer won't send any WPS execute request until they are finished. | ||
process_blacklist = [{"cwd": "/mnt/d/work/code/python/geonode/geonode-master", "name": "celery", "cmdline": "-A geonode.celery_app:app worker -Q default,geonode,cleanup,update,email -B -E -l INFO"}] | ||
|
||
# ########################################### # | ||
# Inputs and Actions Declaration # | ||
# ########################################### # | ||
|
||
[Input1] | ||
class = param | ||
name = interval | ||
title = Elevation Interval | ||
type = application/json | ||
input_mime_type = application/json | ||
description = Elevation interval between contours. | ||
min = 1 | ||
max = 1 | ||
default = 200 | ||
|
||
[Action1] | ||
class = cmdline | ||
input_ref = interval | ||
alias = i | ||
template = -name value | ||
|
||
[Const1] | ||
class = const | ||
name = workdir | ||
type = string | ||
description = Remote process sandbox working directory | ||
value = %(workdir)s | ||
|
||
[Action2] | ||
class = cmdline | ||
input_ref = workdir | ||
alias = w | ||
template = -name value | ||
|
||
[Const2] | ||
class = const | ||
name = execution_id | ||
type = string | ||
description = Remote process unique execution id | ||
value = %(unique_execution_id)s | ||
|
||
[Action2] | ||
class = cmdline | ||
input_ref = execution_id | ||
alias = e | ||
template = -name value | ||
|
||
# ########################################### # | ||
# Output Parameters Declaration # | ||
# ########################################### # | ||
|
||
#[Output1] | ||
#name = result1 | ||
#type = application/zip | ||
#output_mime_type = application/zip | ||
#description = WPS Resource Binary File | ||
#title = SRTM | ||
#filepath = %(workdir)s/contour.zip | ||
#publish_as_layer = true | ||
#publish_default_style = polygon | ||
#publish_target_workspace = it.geosolutions | ||
#publish_layer_name = contour | ||
|
||
# . Enable this option in order to perform a backup of this output | ||
# . before sending it to GeoServer. | ||
# . WARNING: This option works only along with 'wps_execution_shared_dir' | ||
# . option on 'remote.config', and takes precedence on 'upload_data' | ||
# backup_on_wps_execution_shared_dir = true | ||
|
||
# . Enable this option if you want the output to be uploaded on remote host. | ||
# . Notice that you must also configure uploader parameters on 'remote.config' | ||
# upload_data = true | ||
|
||
# . Optionally it is possible to specify a root folder if the uploader class supports it. | ||
# upload_data_root = /remote-wps/default | ||
|
||
#[Output2] | ||
#name = result2 | ||
#type = application/x-netcdf | ||
#output_mime_type = application/x-netcdf | ||
#description = NetCDF Binary File | ||
#title = flexpart | ||
#filepath = %(output_dir)s/flexpart.nc | ||
#publish_as_layer = true | ||
#publish_default_style = raster | ||
#publish_target_workspace = it.geosolutions | ||
#publish_layer_name = flexpart | ||
|
||
[Output2] | ||
name = result2 | ||
type = application/zip | ||
output_mime_type = application/zip | ||
description = Test ShapeFile | ||
title = watermask | ||
filepath = d:/tmp/DE_USNG_UTM18.zip | ||
publish_as_layer = true | ||
publish_default_style = polygon | ||
publish_target_workspace = it.geosolutions | ||
publish_layer_name = DE_USNG_UTM18 | ||
|
||
# . Enable this option in order to perform a backup of this output | ||
# . before sending it to GeoServer. | ||
# . WARNING: This option works only along with 'wps_execution_shared_dir' | ||
# . option on 'remote.config', and takes precedence on 'upload_data' | ||
# backup_on_wps_execution_shared_dir = true | ||
|
||
# . Enable this option if you want the output to be uploaded on remote host. | ||
# . Notice that you must also configure uploader parameters on 'remote.config' | ||
# upload_data = true | ||
|
||
# . Optionally it is possible to specify a root folder if the uploader class supports it. | ||
# upload_data_root = /remote-wps/default | ||
|
||
#[Output3] | ||
#name = result3 | ||
#type = application/owc | ||
#output_mime_type = application/xml | ||
#description = WPS OWC Json MapContext | ||
#layers_to_publish = result2 | ||
#publish_as_layer = true | ||
#publish_layer_name = owc_json_ctx | ||
#publish_metadata = ./xmpp_data/resource_dir/owc_json_ctx.json | ||
|
||
# ########################################### # | ||
# Logging Options Declaration # | ||
# ########################################### # | ||
|
||
[Logging] | ||
stdout_parser = [.*\[DEBUG\](.*), .*\[INFO\] ProgressInfo\:([-+]?[0-9]*\.?[0-9]*)\%, .*\[(INFO)\](.*), .*\[(WARN)\](.*), .*\[(ERROR)\](.*), .*\[(CRITICAL)\](.*)] | ||
stdout_action = [ignore, progress, log, log, abort, abort] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters