m3apps.dev.json 6.53 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
    "appactions": [
        { 
            "name": "Clear Logs",
Chris Hines's avatar
Chris Hines committed
8
            "paramscmd": "/usr/local/sv2/dev/rmlogs Desktop | /usr/local/sv2/dev/jsonify.py",
9
10
11
12
13
14
            "client": {"cmd": null, "redir": null},
            "states": null
        }
    ],

    "instactions": [ 
15
16
17
18
19
        {
            "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
20
21
22
23
24
        },
        {
            "name": "View log",
            "paramscmd": "/usr/local/sv2/dev/desktop/logparams.py {jobid}",
            "client": {"cmd": null, "redir": "index.html?token={token}" },
25
26
            "states": ["RUNNING","Finished"]
        },
27
28
29
30
31
32
        {
            "name": "View Usage",
            "paramscmd": "/usr/local/sv2/dev/desktop/usageparams.py {jobid}",
            "client": {"cmd": null, "redir": "index.html?token={token}" },
            "states": ["Finished"]
        },
33
34
35
36
37
        {
            "name": "Remove log",
            "paramscmd": "/usr/local/sv2/dev/rmlog.py {jobid}",
            "client": null,
            "states": ["Finished"]
38
39
        }
    ],
40
41
42
    "localbind": true,
    "applist": null
  },
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
  { "url": null,
    "name": "Terminal",
    "startscript": "#!/bin/bash\n/usr/local/sv2/dev/smux/smux.sbatch",
    "appactions": [
        { 
            "name": "Instant Connect",
            "paramscmd": "/usr/local/sv2/dev/smux/term_params.py 1",
            "client": {"cmd": null, "redir": "tmux?token={token}"},
            "states": null
        }
    ],
   "instactions": [ 
       {
           "name": "Connect",
           "paramscmd": "/usr/local/sv2/dev/smux/params.py {jobid}",
           "client": {"cmd": null, "redir": "tmux?token={token}"},
           "states": ["RUNNING"]
       }
   ],
    "localbind": true,
    "applist": null
  },
65
66
67
 {
   "url": null,
   "name": "Jupyter Lab",
68
   "startscript": "#!/bin/bash\n/usr/local/sv2/dev/jupyter/jupyter.slurm\n",
69
   "instactions": [ 
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
       {
           "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",
103
   "instactions": [ 
104
105
       {
           "name": "Connect",
Chris Hines's avatar
Chris Hines committed
106
           "paramscmd": "/usr/local/sv2/dev/jupyter/jupyter_params.py {jobid}",
107
108
           "client": {"cmd": null, "redir": "?token={token}"},
           "states": ["RUNNING"]
109
110
111
112
113
114
115
       },
       {
           "name": "View log",
           "paramscmd": "/usr/local/sv2/dev/desktop/logparams.py {jobid}",
           "client": {"cmd": null, "redir": "index.html?token={token}" },
           "states": ["RUNNING","Finished"]
       },
116
117
118
119
120
121
        {
            "name": "View Usage",
            "paramscmd": "/usr/local/sv2/dev/desktop/usageparams.py {jobid}",
            "client": {"cmd": null, "redir": "index.html?token={token}" },
            "states": ["Finished"]
        },
122
123
124
125
126
       {
           "name": "Remove log",
           "paramscmd": "/usr/local/sv2/dev/rmlog.py {jobid}",
           "client": null,
           "states": ["Finished"]
127
       }
128

129
   ],
130
131
132
133
134
135
136
   "localbind": true,
   "applist": null
  },
  {
    "url": null,
    "name": "CryoSPARC",
    "startscript": null,
137
    "instactions": [ {
138
139
140
141
142
        "name": "Connect",
        "paramscmd": "/usr/local/sv2/dev/cryosparc/cryosparc_params.py",
        "client": {"cmd": null, "redir": ""}
    }],

143
144
145
146
147
148
149
    "localbind": true,
    "applist": null
  },
  {
  "url": null,
  "name": "History",
  "startscript": "#!/bin/bash\n/usr/local/sv2/dev/desktop/desktop.slurm\n ",
150
  "instactions": [ 
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
       {
           "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
171
172
173
174
175
176
177
178
    "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 },
179
180
    "localbind": true,
    "applist": null
181
182
183
184
  },
  { "url": null,
    "name": "File Explorer",
    "startscript": "#!/bin/bash\n/usr/local/sv2/cloudcmd/start.sh\n ",
185
    "instactions": [ 
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
        {
            "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
213
214
  }
]