We’re moving the GATK website, docs and forum to a new platform. Read the full story and breakdown of key changes on this blog.
This section of the forum is now closed; we are working on a new support model for WDL that we will share here shortly. For Cromwell-specific issues, see the Cromwell docs and post questions on Github.
docker usable by cromwell? what are the requirements? /bin/bash nor /bin/sh usable?

What is required of a docker image for it to be usable by the cromwell runtime block for the command to be run in it.
Is it necessary to have /bin/sh in the image? What about /bin/bash?
I note that in the script it starts with a reference to /bin/bash (executing on firecloud) or /bin/sh (running locally)
What if, when running locally, that /bin/sh can't be run. If /bin/sh can't be run then is the docker image usable for running cromwell locally.
See examples below where an error occurs where neither /bin/bash nor /bin/sh is accessible that cromwell seemingly can't use to run a WDL locally. See how I can't get a shell on the container avkitex/soapfuse-ref ; it seems like a CMD or ENTRYPOINT is set that prevents a shell from launching in the container...either that or the shell has been removed. See also the copied/pasted WDL file for attempting to reproduce the bug/issue.
What causes the error? Is it that /bin/sh is not callable?
======================================================
wm8b1-75c:~ esalinas$ docker run -it avkitex/soapfuse-ref
Usage: constructBase.sh referenceName cytobandFile geneNamesFile fastaFile gtfFile
wm8b1-75c:~ esalinas$ docker run -it avkitex/soapfuse-ref bash
Usage: constructBase.sh referenceName cytobandFile geneNamesFile fastaFile gtfFile
wm8b1-75c:~ esalinas$ docker run -it avkitex/soapfuse-ref sh
Usage: constructBase.sh referenceName cytobandFile geneNamesFile fastaFile gtfFile
wm8b1-75c:~ esalinas$ docker run -it avkitex/soapfuse-ref /bin/sh
Usage: constructBase.sh referenceName cytobandFile geneNamesFile fastaFile gtfFile
wm8b1-75c:~ esalinas$ docker run -it avkitex/soapfuse-ref /bin/bash
Usage: constructBase.sh referenceName cytobandFile geneNamesFile fastaFile gtfFile
wm8b1-75c:~ esalinas$
======================================================================
wm8b1-75c:soap_docker_test esalinas$ java -jar ~/broadinstitute/wdltool/target/scala-2.11/wdltool-0.5.jar validate test.wdl
wm8b1-75c:soap_docker_test esalinas$
wm8b1-75c:soap_docker_test esalinas$ java -jar ~/broadinstitute/cromwell/target/scala-2.11/cromwell-0.20.jar run test.wdl
.........
[2016-07-07 14:21:23,10] [error] f8e6fbcb-bf8c-478a-9b95-4c04347a3023-BackendJobExecutionActor-test_wf.test_task:NA:1 f8e6fbcbtest_wf.test_task:NA:1: Non-zero return code: 1
[2016-07-07 14:21:23,10] [error] f8e6fbcb-bf8c-478a-9b95-4c04347a3023-BackendJobExecutionActor-test_wf.test_task:NA:1 f8e6fbcbtest_wf.test_task:NA:1: Standard error was:
Contents of cromwell-executions/test_wf/f8e6fbcb-bf8c-478a-9b95-4c04347a3023/call-test_task/stderr were empty.
=======================================
workflow test_wf { call test_task { } } task test_task { command <<< echo "Hello World" >>> runtime { docker : "avkitex/soapfuse-ref" } }
Answers
I tried to attach a WDL file, but got an error, "Not an allowed file type"
Eddie, you can get a shell on that Docker image by doing this:
$ docker run -it --entrypoint=/bin/bash avkitex/soapfuse-ref -i
[email protected]:/mnt/data1# ls -lah /bin/bash
-rwxr-xr-x 1 root root 998K Oct 7 2014 /bin/bash
[email protected]:/mnt/data1# ls -lah /bin/sh
lrwxrwxrwx 1 root root 4 Feb 19 2014 /bin/sh -> dash
It appears as if BASH is installed, I'm going to try using this image to run a local workflow and I'll let you know how that goes
So it's definitely the docker image. I think the entry-point might be screwing things up, though I have not figured out a work-around yet
Is it possible to publish a version of this without the entrypoint or cmd?
If cromwell were to use docker with "--entrypoint=/bin/bash" or with "--entrypoint=/bin/sh" when invoking it would that fix the issue with WDL using it? As far as I know the image is a 3rd party image! See https://hub.docker.com/r/avkitex/soapfuse-ref/