1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: Apache-2.0
8 arv: "http://arvados.org/cwl#"
9 cwltool: "http://commonwl.org/cwltool#"
11 container_name: string
12 arvbox_data: Directory
21 var sp = self[0].contents.split("\n");
22 for (var i = 0; i < sp.length; i++) {
23 if (sp[i].startsWith("Cluster id: ")) {
24 return sp[i].substr(12);
35 var sp = self[0].contents.split("\n");
36 for (var i = 0; i < sp.length; i++) {
37 if (sp[i].startsWith("Container IP: ")) {
38 return sp[i].substr(14)+":8000";
45 glob: superuser_token.txt
47 outputEval: $(self[0].contents.trim())
51 outputEval: $(inputs.arvbox_data)
55 ARVBOX_CONTAINER: $(inputs.container_name)
56 ARVBOX_DATA: $(inputs.arvbox_data.path)
57 ShellCommandRequirement: {}
58 InitialWorkDirRequirement:
60 - entry: $(inputs.arvbox_data)
61 entryname: $(inputs.container_name)
63 cwltool:InplaceUpdateRequirement:
65 InlineJavascriptRequirement: {}
71 arvbox status > status.txt
72 arvbox cat /var/lib/arvados/superuser_token > superuser_token.txt