m3apps.dev.json 5.62 KB
Newer Older
1
2
3
[
  { "url": null,
    "name": "Desktop",
4
    "startscript": "#!/bin/bash\n/usr/local/sv2/dev/desktop/desktop.slurm\n ",
5
6
7
8
9
10
    "actions": [ 
        {
            "name": "Connect",
            "paramscmd": "/usr/local/sv2/dev/desktop/params.py {jobid}",
            "client": {"cmd": null, "redir": "vnc.html?password={password}" },
            "states": ["RUNNING"]
Chris Hines's avatar
Chris Hines committed
11
12
13
14
15
        },
        {
            "name": "View log",
            "paramscmd": "/usr/local/sv2/dev/desktop/logparams.py {jobid}",
            "client": {"cmd": null, "redir": "index.html?token={token}" },
16
17
            "states": ["RUNNING","Finished"]
        },
18
19
20
21
22
23
        {
            "name": "View Usage",
            "paramscmd": "/usr/local/sv2/dev/desktop/usageparams.py {jobid}",
            "client": {"cmd": null, "redir": "index.html?token={token}" },
            "states": ["Finished"]
        },
24
25
26
27
28
        {
            "name": "Remove log",
            "paramscmd": "/usr/local/sv2/dev/rmlog.py {jobid}",
            "client": null,
            "states": ["Finished"]
29
30
        }
    ],
31
32
33
34
35
36
    "localbind": true,
    "applist": null
  },
 {
   "url": null,
   "name": "Jupyter Lab",
37
   "startscript": "#!/bin/bash\n/usr/local/sv2/dev/jupyter/jupyter.slurm\n",
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
63
64
65
66
67
68
69
70
71
   "actions": [ 
       {
           "name": "Connect",
           "paramscmd": "/usr/local/sv2/dev/jupyter/jupyter_params.py {jobid}",
           "client": {"cmd": null, "redir": "?token={token}"},
           "states": ["RUNNING"]
       },
       {
           "name": "View log",
           "paramscmd": "/usr/local/sv2/dev/desktop/logparams.py {jobid}",
           "client": {"cmd": null, "redir": "index.html?token={token}" },
           "states": ["RUNNING","Finished"]
       },
        {
            "name": "View Usage",
            "paramscmd": "/usr/local/sv2/dev/desktop/usageparams.py {jobid}",
            "client": {"cmd": null, "redir": "index.html?token={token}" },
            "states": ["Finished"]
        },
       {
           "name": "Remove log",
           "paramscmd": "/usr/local/sv2/dev/rmlog.py {jobid}",
           "client": null,
           "states": ["Finished"]
       }

   ],
   "localbind": true,
   "applist": null
  },
 {
   "url": null,
   "name": "Jupyter Lab - custom venv",
   "startscript": "#!/bin/bash\n/usr/local/sv2/jupyter/jupyter_custom.sh\n",
72
73
74
   "actions": [ 
       {
           "name": "Connect",
Chris Hines's avatar
Chris Hines committed
75
           "paramscmd": "/usr/local/sv2/dev/jupyter/jupyter_params.py {jobid}",
76
77
           "client": {"cmd": null, "redir": "?token={token}"},
           "states": ["RUNNING"]
78
79
80
81
82
83
84
       },
       {
           "name": "View log",
           "paramscmd": "/usr/local/sv2/dev/desktop/logparams.py {jobid}",
           "client": {"cmd": null, "redir": "index.html?token={token}" },
           "states": ["RUNNING","Finished"]
       },
85
86
87
88
89
90
        {
            "name": "View Usage",
            "paramscmd": "/usr/local/sv2/dev/desktop/usageparams.py {jobid}",
            "client": {"cmd": null, "redir": "index.html?token={token}" },
            "states": ["Finished"]
        },
91
92
93
94
95
       {
           "name": "Remove log",
           "paramscmd": "/usr/local/sv2/dev/rmlog.py {jobid}",
           "client": null,
           "states": ["Finished"]
96
       }
97

98
   ],
99
100
101
102
103
104
105
   "localbind": true,
   "applist": null
  },
  {
    "url": null,
    "name": "CryoSPARC",
    "startscript": null,
106
107
108
109
110
111
    "actions": [ {
        "name": "Connect",
        "paramscmd": "/usr/local/sv2/dev/cryosparc/cryosparc_params.py",
        "client": {"cmd": null, "redir": ""}
    }],

112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
    "localbind": true,
    "applist": null
  },
  {
  "url": null,
  "name": "History",
  "startscript": "#!/bin/bash\n/usr/local/sv2/dev/desktop/desktop.slurm\n ",
  "actions": [ 
       {
           "name": "Connect",
           "paramscmd": "/usr/local/sv2/dev/jupyter/jupyter_params.py {jobid}",
           "client": {"cmd": null, "redir": "?token={token}"},
           "states": ["RUNNING"]
       },
        {
            "name": "View Usage",
            "paramscmd": "/usr/local/sv2/dev/desktop/usageparams.py {jobid}",
            "client": {"cmd": null, "redir": "index.html?token={token}" },
            "states": ["Finished"]
        },
       {
           "name": "Remove log",
           "paramscmd": "/usr/local/sv2/dev/rmlog.py {jobid}",
           "client": null,
           "states": ["Finished"]
       }
    ],

Chris Hines's avatar
Chris Hines committed
140
141
142
143
144
145
146
147
    "localbind": true,
    "applist": null
  },
  { "url": "transfer",
    "name": "Transfer files",
    "startscript": "#!/bin/bash\n echo '{appparams}' > ft.json",
    "paramscmd": "/usr/local/sv2/copytool.py",
    "client": {"cmd": null, "redir": null },
148
149
    "localbind": true,
    "applist": null
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
  },
  { "url": null,
    "name": "File Explorer",
    "startscript": "#!/bin/bash\n/usr/local/sv2/cloudcmd/start.sh\n ",
    "actions": [ 
        {
            "name": "Connect",
            "paramscmd": "/usr/local/sv2/dev/cloudcmd/params.py {jobid}",
            "client": {"cmd": null, "redir": "", "usebasicauth": true },
            "states": ["RUNNING"]
        },
        {
            "name": "View log",
            "paramscmd": "/usr/local/sv2/dev/desktop/logparams.py {jobid}",
            "client": {"cmd": null, "redir": "index.html?token={token}" },
            "states": ["RUNNING","Finished"]
        },
        {
            "name": "View Usage",
            "paramscmd": "/usr/local/sv2/dev/desktop/usageparams.py {jobid}",
            "client": {"cmd": null, "redir": "index.html?token={token}" },
            "states": ["Finished"]
        },
        {
            "name": "Remove log",
            "paramscmd": "/usr/local/sv2/dev/rmlog.py {jobid}",
            "client": null,
            "states": ["Finished"]
        }
    ],
    "localbind": true,
    "applist": null
182
183
  }
]