-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dockerfile #320
Comments
Great! Sounds like an awesome addition. I just rebuilt with the same command as you on my machine and it worked fine, so I'm guessing it's something nextflow-specific? I'm not familiar with it at all, but your output looks a bit different so I'm imagining the env is also different. It looks like the build script isn't correctly cd'ing into the ham dir for you, so I'm guessing the script dir variable isn't getting set correctly? It looks like I changed it to this weird/complicated way pretty recently so it'd work in the linearham build, but in retrospect it's a bit silly to make it bash dependent. Maybe you can figure out what shell you're in there and suggest something that'll work in both? edit: although, the build script does have |
Thanks for the prompt feedback! It's not Nextflow dependent, as Nextflow just calls the docker (or conda, singularity...) container and runs it in pipelines and/or submit jobs... Actually, I already tried partis with Nextflow, and it works nicely with your already build image (quay.io/matsengrp/partis), so that part is fine. |
ah, ok, then sounds like a difference in the macos vs linux docker versions. If it's possible to suggest a fix that'd be great. |
When you do just the
This populates all those folders and gets you the code for building the image. |
That's a great point, running the wrong git clone command would cause this error. Do you know why there would be a difference in this (maybe in the COPY behavior) in different docker versions, though? |
COPY behavior is the same once docker build starts, that's kinda the point of docker. There are some differences though in the build process on new Macs. This major difference happens on newer MacOS, due to different processor instructions. On an Intel/AMD Machine (even an older Mac), docker pull will pull the linux AMD64 image with But here we quite clearly have a file missing. I might be a bit over confident, because I got the same error as he did - when I cloned it wrong :). Regular clone will give you the ham folder, but it will be empty. Since there was nothing in the ham folder, the Sconstruct file was not found. |
Yes I think you're likely right that this is the issue. It seems absolutely wild to me that this kind of difference exists (like, isn't avoiding this the whole point of docker?). In any case, let me know if there's anything I can do to avoid it, otherwise I guess I can just put a note that it may not work on mac. I've tried setting submodule.recurse in the repo's .git/config, but i don't think there's a way for that to propagate. |
You could build an image yourself for each version you release and push it somewhere. Like dockerhub. |
Does anyone know if this is still an issue with the new python 3 docker file? |
Oh, and yeah, I used to manually build and push images to docker hub for the year or so between when dockerhub disabled auto builds and I switched to quay. If it would really solve a problem I could potentially do it occasionally, but I'm not sure I've understood how me building partis would get around the problems above? Maybe if I had access to a mac, but I don't -- perhaps a better fix would be adding documentation to help people build their own docker image on mac? |
Hi @psathyrella, thanks for creating "partis".

I've started playing a bit with making a nextflow pipeline for partis. Among other things (ease of use and integration with other pipelines), this would easily solve the potential complications with docker images with batch systems.
I tried to make a docker image using the Dockerfile (running "docker build -t partis_docker ." inside the partis folder) and got an error.
The ides was to make sure this step works, so that I could gradually build/include the dependencies (e.g., R and R packages) for simulation, MDS and other analyses.
Any advice on this would be great, not sure if I missed something !
Thanks.
The text was updated successfully, but these errors were encountered: