maystroh / RL_cataract

A reinforcement learning agent doing one cataract surgery task
4 stars 1 forks source link

singularity images #1

Open SalemTree opened 2 years ago

SalemTree commented 2 years ago

How can i obtain the singularity images for installation?

maystroh commented 2 years ago

Sorry for the late reply. As I said in the README, you can do the following:

* From docker file to singularity image***

# Start a docker registry or push the image on the online docker hub registry
docker pull registry (https://hub.docker.com/r/library/registry/)
docker run -d -p 5000:5000 --restart=always --name registry registry:2 (here is the source https://docs.docker.com/registry/deploying/#copy-an-image-from-docker-hub-to-your-registry)

#Build a docker image from a docker file
nvidia-docker build -t name_image -f ~/pathToDockerfile .

# Push local docker container to it
docker tag name_image localhost:5000/nameOfTag
docker push localhost:5000/nameOfTag

# Build singularity container
SINGULARITY_NOHTTPS=1 singularity build NameOfImage.simg docker://localhost:5000/nameOfTag:latest