Mapping folder with survey.tsv to /data
danieljwilson opened this issue · comments
Hi, I'm trying to get a bit more familiar with Expfactory and so was attempting to generate my own survey following these instructions.
I created the required config.json
and survey.tsv
files in a local folder and attempted to run:
$ docker run -v $PWD:/data expfactory/survey-generator start
This gave the error:
You must map the folder with your survey.tsv to /data
Which seems to be referred to by the note in the directions:
we map the
$PWD
(or where our survey and config are) to/data
in the container
However, I am not sure how we do this mapping? Is there any guidance on this?
Thanks!
Try running that same command but instead list files at /data to see if it's there. Either of these will probably do the trick:
docker run -it -v $PWD:/data --entrypoint bash expfactory/survey-generator ls /data
docker run -it -v $PWD:/data --entrypoint ls expfactory/survey-generator /data
Sometimes with environment variable binds, if you don't add the ending slash (e.g., $PWD/
) it treats it as a named volume. So you could try adding that.
Thanks for quick reply!
Running:
docker run -it -v $PWD:/data --entrypoint bash expfactory/survey-generator ls /data
gave:
/bin/ls: /bin/ls: cannot execute binary file
But running:
docker run -it -v $PWD:/data --entrypoint ls expfactory/survey-generator /data
gave:
config.json survey.tsv
Which seems to have solved the problem...thanks!
Sure thing!