Is there an official Docker image for LEAP?
Hi,
Thank you for your great CT geometry tools! I am really using well in window system.
So my question is, is there a Docker image to install and run on Linux system?
Although there is a way of installing LEAP on Linux using .sh file, I want to utilize LEAP by using docker image.
Is there any way to make a Docker image for LEAP?
Thanks:)
Hello and you're welcome.
The short answer to your question is yes, I'm sure a Docker image could be made for LEAP, but I don't know how to do this.
This is an area that would be great to have some help on from the community. I am an applied mathematician who writes algorithms, but I am not so good at these computer engineering things.
If you'd like to help with this, it would be much appreciated!
Here is a dockerfile I used, seems to be working.
FROM pytorch/pytorch:2.4.1-cuda12.1-cudnn9-devel
RUN apt-get update && apt-get install -y
build-essential
cmake
autoconf
automake
libtool
curl
g++
unzip
git
vim
RUN pip install --upgrade pip
RUN git clone https://github.com/LLNL/LEAP.git /root/LEAP WORKDIR /root/LEAP RUN pip install . RUN pip install imageio RUN pip install matplotlib
Wow, this is awesome! Thank you so much!
Please forgive me as I am very ignorant when it comes to Docker, but what do I do with the above text?
Hey Kyle, I’m not very experienced with Docker, but here’s what I know:
-
Save the provided text as Dockerfile (no extension).
-
Build the image using the following command: docker build -t leap_docker .
-
Tag the image and push it to your DockerHub repository: docker tag leap_docker yourusername/leap_docker:latest docker push yourusername/leap_docker:latest
-
After that, others can pull the image using: docker pull yourusername/leap_docker:latest
-
To run a container: docker run -it --gpus all yourusername/leap_docker
Hope it helps!