Open prismofeverything opened 8 years ago
Hello @prismofeverything, thank you for reporting this issue. I don't have a Mac testbed, but many others do. Let me know if you don't a response within a week.
Hello @mr-c, it has been a week : )
@prismofeverything There are few things to pay attention to. There are two things that are specific for mac. First one you run docker inside (boot2docker) VM and the second the only read write path available inside docker's VM is in the /Users/ directory.
So this error symlinking /var/folders/2l/0wpdpqws4jvg9lqjwrhvdcl8_c3ksp/T/tmpTvbsTy/indexed.bam to /var/lib/cwl/job956205074_input/original.bam
I think related to that issue.
@tetron has put all that notes for mac users somewhere on github about --tmpdir-prefix & --tmp-outdir-prefix. So try to use this tmp parameters to cwltool and point them into /Users directory.
The other question is it necessary to have --input test/input/original.bam
the bum file somewhere but not in the ./ directory?
@portah Aha, yes that was it. Though it still leaves the symlink and some temp dirs and files laying around the filesystem... at least it works now! Thank you.
├── indexed.bam -> /Users/poe/Code/samtools/test/input/original.bam
├── test3tuNdO
└── testGrHJZ9
Is the intention for cwltool
to create these files, symlinks and directories inside the docker container? Seems weird they are left hanging around... maybe an artifact of the nested VM's?
I am trying to run cwltool on Mac that invokes a Docker container. When I specify the input to cwltool, in order for the container to access the input file cwltool is trying to create a symlink to the input file inside the host VM. But since I am running cwltool locally it creates the link locally instead, which causes the container to fail because it can't locate the input file inside the host.
Here is the command line I am using:
and I end up with this symlink in my local directory:
I end up with these lines in the debug output:
Contents of samtools-workflow.cwl -----------------
Contents of samtools-index.cwl -------------------
Questions:
Is there some way to indicate I want to be symlinking the input inside the docker host instead of the process running the script?
Am I doing something else wrong here?
Any help would be greatly appreciated, thank you!