Skip to content
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

Docker image for running command line tools #28

Open
FranceCosta opened this issue Sep 4, 2023 · 5 comments
Open

Docker image for running command line tools #28

FranceCosta opened this issue Sep 4, 2023 · 5 comments

Comments

@FranceCosta
Copy link

Hi MolProbity team!
I am interested in running some of the command line tools you provide and in particular "oneline-analysis" in an HPC cluster. To do so I need a docker image that I can convert to a singularity image and run from the cluster. Do you have available image in Docker-hub I can use for this purpose? Or do you have instructions to create one?

@chrissciwilliams
Copy link
Collaborator

chrissciwilliams commented Sep 4, 2023 via email

@FranceCosta
Copy link
Author

Thank you Christopher for your answer. Which version of PHP would be better having? I will try creating an image.

@smlewis
Copy link
Collaborator

smlewis commented Sep 5, 2023

With the caveat that this was a "do once, get it working, don't touch it" kind of job - so no promises that it still works - we got MP dockerized for some purposes here: https://github.com/CyrusBiotechnology/MolProbity/blob/master/Dockerfile

This repo should be public so you should be able to grab that file as a starting point. I looked at the merge to this repo and it's not in conflict but it smells a little funny with files added, so you might want to cherry pick instead (or, just grab the file and play with it directly).

@aozalevsky
Copy link

aozalevsky commented Mar 1, 2024

@FranceCosta @smlewis another option is a singularity container.

Here is an example: Singularity.def

arthur@flute:~$: singularity build molprobity.sif Singularity.def
arthur@flute:~$: singularity exec --pid molprobity.sif molprobity.molprobity 4PRF.pdb

============================== Collecting inputs ==============================


                   ----------Processing PDB file(s)----------                  

As a bonus: .sif is just a binary image that can be easily transferred/copied to other machines with singularity.

NB: it takes ~20 minutes on a decent workstation to build the image on 4 cores (as recommended for the bootstrap installation).

@FranceCosta
Copy link
Author

FranceCosta commented Jul 31, 2024

In case this could be useful, I converted @aozalevsky singularity recipe to a docker one. I find it handy for creating singularity images on my institute's computing cluster avoiding permission issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants