This repository has been archived by the owner on May 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
submit_orchent_tmpl.sh
63 lines (56 loc) · 2.45 KB
/
submit_orchent_tmpl.sh
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
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
#
# Copyright (c) 2017 - 2019 Karlsruhe Institute of Technology - Steinbuch Centre for Computing
# This code is distributed under the MIT License
# Please, see the LICENSE file
#
# Bash script example for submitting jobs to DEEP Testbeds
topology_file="deep-oc-mesos-webdav.yml"
USAGEMESSAGE="[Usage]: $0 [topology yaml file, default=$topology_file]"
if [[ $1 == "-h" ]] || [[ $1 == "--help" ]]; then
shopt -s xpg_echo
echo $USAGEMESSAGE
exit 1
elif [ $# -eq 1 ]; then
topology_file=$1
fi
# let's download tosca template automatically, if not found:
if [ ! -f $topology_file ]; then
curl -o $topology_file \
https://raw.githubusercontent.com/indigo-dc/tosca-templates/master/deep-oc/$topology_file
fi
### EXAMPLES FOR SOME PARAMETERS
# For CPU:
# "docker_image": "deephdc/deep-oc-semseg_vaihingen:latest",
# "num_gpus": "0",
# ## run_command options: ##
# "run_command": "deepaas-run --listen-port=0.0.0.0",
# "run_command": "/srv/.debug_log/debug_log.sh --deepaas_port=5000 --remote_dir=rshare:/Logs/",
# "run_command": "/srv/.jupyter/run_jupyter.sh --allow-root",
###
# For GPU:
# "docker_image": "deephdc/deep-oc-semseg_vaihingen:gpu",
# "num_gpus": "1",
# ## run_command options: ##
# "run_command": "deepaas-run --listen-port=0.0.0.0 --listen-port=$PORT0",
# "run_command": "/srv/.debug_log/debug_log.sh --deepaas_port=$PORT0 --remote_dir=rshare:/Logs/",
# "run_command": "jupyterPORT=$PORT2 /srv/.jupyter/run_jupyter.sh --allow-root",
###
# For Jupyter add jupyter_password!:
# "jupyter_password": "my_s3cret",
# You may load jupyter's config from an external URL:
# "jupyter_config_url": "rshare:/Datasets/jupyter"
###
### MAIN CALL FOR THE DEPLOYMENT
# DEFINE PARAMETERS OF YOUR DEPLOYMENT HERE
#
orchent depcreate $topology_file '{ "docker_image": "deephdc/deep-oc-semseg_vaihingen:latest",
"mem_size": "8192 MB",
"num_cpus": "1",
"num_gpus": "0",
"run_command": "deepaas-run --listen-ip=0.0.0.0",
"flaat_disable": "no",
"rclone_conf": "/srv/.rclone/rclone.conf",
"rclone_url": "https://nc.deep-hybrid-datacloud.eu/remote.php/webdav/",
"rclone_user": "DEEP-XYXYXYXYXYXYXYXYXYXY",
"rclone_password": "jXYXYXYXYXYXYXYXYXYXYXYX" }'