@@ -28,9 +28,9 @@ def test_singularity_1_nosubm(tmpdir):
28
28
no submitter
29
29
"""
30
30
cmd = "pwd"
31
- image = "library://sylabsed/linux /alpine"
31
+ image = "docker:/ /alpine"
32
32
singu = SingularityTask (name = "singu" , executable = cmd , image = image , cache_dir = tmpdir )
33
- assert singu .inputs .image == "library://sylabsed/linux /alpine"
33
+ assert singu .inputs .image == "docker:/ /alpine"
34
34
assert singu .inputs .container == "singularity"
35
35
assert (
36
36
singu .cmdline
@@ -48,7 +48,7 @@ def test_singularity_2_nosubm(tmpdir):
48
48
no submitter
49
49
"""
50
50
cmd = ["echo" , "hail" , "pydra" ]
51
- image = "library://sylabsed/linux /alpine"
51
+ image = "docker:/ /alpine"
52
52
singu = SingularityTask (name = "singu" , executable = cmd , image = image , cache_dir = tmpdir )
53
53
assert (
54
54
singu .cmdline
@@ -66,7 +66,7 @@ def test_singularity_2(plugin, tmpdir):
66
66
using submitter
67
67
"""
68
68
cmd = ["echo" , "hail" , "pydra" ]
69
- image = "library://sylabsed/linux /alpine"
69
+ image = "docker:/ /alpine"
70
70
singu = SingularityTask (name = "singu" , executable = cmd , image = image , cache_dir = tmpdir )
71
71
assert (
72
72
singu .cmdline
@@ -86,7 +86,7 @@ def test_singularity_2_singuflag(plugin, tmpdir):
86
86
using ShellComandTask with container_info=("singularity", image)
87
87
"""
88
88
cmd = ["echo" , "hail" , "pydra" ]
89
- image = "library://sylabsed/linux /alpine"
89
+ image = "docker:/ /alpine"
90
90
shingu = ShellCommandTask (
91
91
name = "shingu" ,
92
92
executable = cmd ,
@@ -113,7 +113,7 @@ def test_singularity_2a(plugin, tmpdir):
113
113
cmd_exec = "echo"
114
114
cmd_args = ["hail" , "pydra" ]
115
115
# separate command into exec + args
116
- image = "library://sylabsed/linux /alpine"
116
+ image = "docker:/ /alpine"
117
117
singu = SingularityTask (
118
118
name = "singu" , executable = cmd_exec , args = cmd_args , image = image , cache_dir = tmpdir
119
119
)
@@ -138,7 +138,7 @@ def test_singularity_3(plugin, tmpdir):
138
138
# creating a new directory
139
139
tmpdir .mkdir ("new_dir" )
140
140
cmd = ["ls" , "/tmp_dir" ]
141
- image = "library://sylabsed/linux /alpine"
141
+ image = "docker:/ /alpine"
142
142
singu = SingularityTask (name = "singu" , executable = cmd , image = image , cache_dir = tmpdir )
143
143
# binding tmp directory to the container
144
144
singu .inputs .bindings = [(str (tmpdir ), "/tmp_dir" , "ro" )]
@@ -161,7 +161,7 @@ def test_singularity_3_singuflag(plugin, tmpdir):
161
161
# creating a new directory
162
162
tmpdir .mkdir ("new_dir" )
163
163
cmd = ["ls" , "/tmp_dir" ]
164
- image = "library://sylabsed/linux /alpine"
164
+ image = "docker:/ /alpine"
165
165
shingu = SingularityTask (
166
166
name = "singu" ,
167
167
executable = cmd ,
@@ -189,7 +189,7 @@ def test_singularity_3_singuflagbind(plugin, tmpdir):
189
189
# creating a new directory
190
190
tmpdir .mkdir ("new_dir" )
191
191
cmd = ["ls" , "/tmp_dir" ]
192
- image = "library://sylabsed/linux /alpine"
192
+ image = "docker:/ /alpine"
193
193
shingu = SingularityTask (
194
194
name = "singu" ,
195
195
executable = cmd ,
@@ -214,7 +214,7 @@ def test_singularity_st_1(plugin, tmpdir):
214
214
splitter = executable
215
215
"""
216
216
cmd = ["pwd" , "ls" ]
217
- image = "library://sylabsed/linux /alpine"
217
+ image = "docker:/ /alpine"
218
218
singu = SingularityTask (
219
219
name = "singu" , executable = cmd , image = image , cache_dir = tmpdir
220
220
).split ("executable" )
@@ -232,7 +232,7 @@ def test_singularity_st_2(plugin, tmpdir):
232
232
splitter = image
233
233
"""
234
234
cmd = ["cat" , "/etc/issue" ]
235
- image = ["library ://sylabsed/linux/ alpine" , "library ://sylabsed/examples/lolcow " ]
235
+ image = ["docker ://alpine" , "docker ://ubuntu " ]
236
236
singu = SingularityTask (
237
237
name = "singu" , executable = cmd , image = image , cache_dir = tmpdir
238
238
).split ("image" )
@@ -248,7 +248,7 @@ def test_singularity_st_2(plugin, tmpdir):
248
248
def test_singularity_st_3 (plugin , tmpdir ):
249
249
"""outer splitter image and executable"""
250
250
cmd = ["pwd" , ["cat" , "/etc/issue" ]]
251
- image = ["library ://sylabsed/linux/ alpine" , "library ://sylabsed/examples/lolcow " ]
251
+ image = ["docker ://alpine" , "docker ://ubuntu " ]
252
252
singu = SingularityTask (
253
253
name = "singu" , executable = cmd , image = image , cache_dir = tmpdir
254
254
).split (["image" , "executable" ])
@@ -270,7 +270,7 @@ def test_singularity_st_3(plugin, tmpdir):
270
270
def test_singularity_st_4 (tmpdir , n ):
271
271
"""splitter over args (checking bigger splitters if slurm available)"""
272
272
args_n = list (range (n ))
273
- image = "library://sylabsed/linux /alpine"
273
+ image = "docker:/ /alpine"
274
274
singu = SingularityTask (
275
275
name = "singu" , executable = "echo" , image = image , cache_dir = tmpdir , args = args_n
276
276
).split ("args" )
@@ -291,7 +291,7 @@ def test_wf_singularity_1(plugin, tmpdir):
291
291
with open (tmpdir .join ("file_pydra.txt" ), "w" ) as f :
292
292
f .write ("hello from pydra" )
293
293
294
- image = "library://sylabsed/linux /alpine"
294
+ image = "docker:/ /alpine"
295
295
wf = Workflow (name = "wf" , input_spec = ["cmd1" , "cmd2" ], cache_dir = tmpdir )
296
296
wf .inputs .cmd1 = ["cat" , "/tmp_dir/file_pydra.txt" ]
297
297
wf .inputs .cmd2 = ["echo" , "message from the previous task:" ]
@@ -333,7 +333,7 @@ def test_wf_singularity_1a(plugin, tmpdir):
333
333
with open (tmpdir .join ("file_pydra.txt" ), "w" ) as f :
334
334
f .write ("hello from pydra" )
335
335
336
- image_sing = "library://sylabsed/linux /alpine"
336
+ image_sing = "docker:/ /alpine"
337
337
image_doc = "ubuntu"
338
338
wf = Workflow (name = "wf" , input_spec = ["cmd1" , "cmd2" ], cache_dir = tmpdir )
339
339
wf .inputs .cmd1 = ["cat" , "/tmp_dir/file_pydra.txt" ]
@@ -375,7 +375,7 @@ def test_singularity_outputspec_1(plugin, tmpdir):
375
375
output_path is automatically added to the bindings
376
376
"""
377
377
cmd = ["touch" , "newfile_tmp.txt" ]
378
- image = "library://sylabsed/linux /alpine"
378
+ image = "docker:/ /alpine"
379
379
380
380
my_output_spec = SpecInfo (
381
381
name = "Output" ,
@@ -409,7 +409,7 @@ def test_singularity_inputspec_1(plugin, tmpdir):
409
409
f .write ("hello from pydra" )
410
410
411
411
cmd = "cat"
412
- image = "library://sylabsed/linux /alpine"
412
+ image = "docker:/ /alpine"
413
413
414
414
my_input_spec = SpecInfo (
415
415
name = "Input" ,
@@ -454,7 +454,7 @@ def test_singularity_inputspec_1a(plugin, tmpdir):
454
454
f .write ("hello from pydra" )
455
455
456
456
cmd = "cat"
457
- image = "library://sylabsed/linux /alpine"
457
+ image = "docker:/ /alpine"
458
458
459
459
my_input_spec = SpecInfo (
460
460
name = "Input" ,
@@ -496,7 +496,7 @@ def test_singularity_inputspec_2(plugin, tmpdir):
496
496
f .write ("have a nice one" )
497
497
498
498
cmd = "cat"
499
- image = "library://sylabsed/linux /alpine"
499
+ image = "docker:/ /alpine"
500
500
501
501
my_input_spec = SpecInfo (
502
502
name = "Input" ,
@@ -555,7 +555,7 @@ def test_singularity_inputspec_2a_except(plugin, tmpdir):
555
555
f .write ("have a nice one" )
556
556
557
557
cmd = "cat"
558
- image = "library://sylabsed/linux /alpine"
558
+ image = "docker:/ /alpine"
559
559
560
560
# the field with default value can't be before value without default
561
561
my_input_spec = SpecInfo (
@@ -615,7 +615,7 @@ def test_singularity_inputspec_2a(plugin, tmpdir):
615
615
f .write ("have a nice one" )
616
616
617
617
cmd = "cat"
618
- image = "library://sylabsed/linux /alpine"
618
+ image = "docker:/ /alpine"
619
619
620
620
# if you want set default in the first field you can use default_value in metadata
621
621
my_input_spec = SpecInfo (
@@ -673,7 +673,7 @@ def test_singularity_cmd_inputspec_copyfile_1(plugin, tmpdir):
673
673
f .write ("hello from pydra\n " )
674
674
675
675
cmd = ["sed" , "-is" , "s/hello/hi/" ]
676
- image = "library://sylabsed/linux /alpine"
676
+ image = "docker:/ /alpine"
677
677
678
678
my_input_spec = SpecInfo (
679
679
name = "Input" ,
@@ -740,7 +740,7 @@ def test_singularity_inputspec_state_1(plugin, tmpdir):
740
740
741
741
cmd = "cat"
742
742
filename = [str (filename_1 ), str (filename_2 )]
743
- image = "library://sylabsed/linux /alpine"
743
+ image = "docker:/ /alpine"
744
744
745
745
my_input_spec = SpecInfo (
746
746
name = "Input" ,
@@ -791,7 +791,7 @@ def test_singularity_inputspec_state_1b(plugin, tmpdir):
791
791
792
792
cmd = "cat"
793
793
filename = [str (file_1 ), str (file_2 )]
794
- image = "library://sylabsed/linux /alpine"
794
+ image = "docker:/ /alpine"
795
795
796
796
my_input_spec = SpecInfo (
797
797
name = "Input" ,
@@ -835,7 +835,7 @@ def test_singularity_wf_inputspec_1(plugin, tmpdir):
835
835
f .write ("hello from pydra" )
836
836
837
837
cmd = "cat"
838
- image = "library://sylabsed/linux /alpine"
838
+ image = "docker:/ /alpine"
839
839
840
840
my_input_spec = SpecInfo (
841
841
name = "Input" ,
@@ -891,7 +891,7 @@ def test_singularity_wf_state_inputspec_1(plugin, tmpdir):
891
891
892
892
cmd = "cat"
893
893
filename = [str (file_1 ), str (file_2 )]
894
- image = "library://sylabsed/linux /alpine"
894
+ image = "docker:/ /alpine"
895
895
896
896
my_input_spec = SpecInfo (
897
897
name = "Input" ,
@@ -949,7 +949,7 @@ def test_singularity_wf_ndst_inputspec_1(plugin, tmpdir):
949
949
950
950
cmd = "cat"
951
951
filename = [str (file_1 ), str (file_2 )]
952
- image = "library://sylabsed/linux /alpine"
952
+ image = "docker:/ /alpine"
953
953
954
954
my_input_spec = SpecInfo (
955
955
name = "Input" ,
0 commit comments