File tree 3 files changed +5
-16
lines changed
3 files changed +5
-16
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ An installation of Python (version >=_3.6_) is required to run *gvanno*. Check t
61
61
62
62
##### 1.1: Installation of Singularity (optional)
63
63
64
- 0 . ** Note: this has only been tested with Singularity version 2.4.2, your mileage may vary with other versions ** .
64
+ 0 . ** Note: this works for Singularity version 3.0 and higher ** .
65
65
1 . [ Install Singularity] ( https://sylabs.io/docs/ )
66
66
2 . Test that singularity works by running ` singularity --version `
67
67
3 . If you are in the gvanno directory, build the singularity image like so:
Original file line number Diff line number Diff line change @@ -282,15 +282,15 @@ def run_gvanno(arg_dict, host_directories):
282
282
if arg_dict ['container' ] == 'docker' :
283
283
container_command_run1 = container_command_run1 + " -w=/workdir/output " + str (DOCKER_IMAGE_VERSION ) + " sh -c \" "
284
284
elif arg_dict ['container' ] == 'singularity' :
285
- container_command_run1 = container_command_run1 + " -W /workdir/output " + 'src/gvanno.simg ' + " sh -c \" "
285
+ container_command_run1 = container_command_run1 + " -W /workdir/output " + 'src/gvanno.sif ' + " sh -c \" "
286
286
287
287
if arg_dict ['container' ] == 'docker' :
288
288
container_command_run2 = "docker run --rm -t -u " + str (uid ) + " -v=" + str (databundle_volume_mapping ) + " -v=" + str (output_volume_mapping )
289
289
container_command_run2 = container_command_run2 + " -w=/workdir/output " + str (DOCKER_IMAGE_VERSION ) + " sh -c \" "
290
290
docker_command_run_end = '\" '
291
291
elif arg_dict ['container' ] == 'singularity' :
292
292
container_command_run2 = "singularity exec " + " -B " + str (databundle_volume_mapping ) + " -B " + str (output_volume_mapping )
293
- container_command_run2 = container_command_run2 + " -W /workdir/output " + 'src/gvanno.simg ' + " sh -c \" "
293
+ container_command_run2 = container_command_run2 + " -W /workdir/output " + 'src/gvanno.sif ' + " sh -c \" "
294
294
docker_command_run_end = '\" '
295
295
296
296
## GVANNO|start - Log key information about sample, options and assembly
Original file line number Diff line number Diff line change @@ -24,19 +24,8 @@ docker build -t gvanno .
24
24
docker tag gvanno localhost:5000/gvanno
25
25
docker push localhost:5000/gvanno
26
26
27
- # create a temporary singularity def file
28
- declare -r TMPFILE=" $( mktemp --suffix ' singularity.def' ) "
29
- cat > " $TMPFILE " << EOI
30
- Bootstrap: docker
31
- Registry: http://localhost:5000
32
- Namespace:
33
- From: gvanno:latest
34
- EOI
35
- # build singularity image
36
- sudo SINGULARITY_NOHTTPS=1 singularity build gvanno.simg " $TMPFILE "
37
-
38
- # remove temp file
39
- rm -f " $TMPFILE "
27
+ # build singularity image from the docker cached local gvanno image
28
+ sudo SINGULARITY_NOHTTPS=1 singularity build gvanno.sif docker-daemon://gvanno:latest
40
29
41
30
# stop registry server
42
31
docker container stop registry
You can’t perform that action at this time.
0 commit comments