open-research / sumatra

http://neuralensemble.org/sumatra/
BSD 2-Clause "Simplified" License
127 stars 48 forks source link

Add support for Docker #387

Open apdavison opened 4 years ago

apdavison commented 4 years ago

and other containers

felix11h commented 4 years ago

@apdavison what would be needed? I've played around with Sumatra running in a Docker container for a bit in the past, maybe I'm able to contribute something here.

apdavison commented 4 years ago

Hi @felix11h - the idea was more about Sumatra launching computations that will run inside Docker containers. (I'm sorry I didn't yet have time to add more detail to the ticket, I just wanted to create it before I forgot).

This would be somewhat similar to the machinery for launching MPI jobs with Sumatra, but would also capture additional metadata such as the ID of the Docker image, the content of the Dockerfile, the log file from docker build, etc. In principle, you could then avoid having to introspect the environment to determine the versions of dependencies.

felix11h commented 4 years ago

@apdavison ah, yes, I can see this being helpful! With computing on clusters in mind, Singularity might be an important container format to support besides Docker.

babsey commented 4 years ago

I also used Sumatra in singularity container. See this example of singularty recipes which consider Sumatra. It is quite usefull and no sudo rights is required to run it.