LEAP icon indicating copy to clipboard operation
LEAP copied to clipboard

Is there an official Docker image for LEAP?

Open 2sjkim opened this issue 1 year ago • 4 comments

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:)

2sjkim avatar Jan 30 '24 01:01 2sjkim

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!

kylechampley avatar Jan 30 '24 16:01 kylechampley

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

zhangr05 avatar Oct 04 '24 02:10 zhangr05

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?

kylechampley avatar Oct 04 '24 02:10 kylechampley

Hey Kyle, I’m not very experienced with Docker, but here’s what I know:

  1. Save the provided text as Dockerfile (no extension).

  2. Build the image using the following command: docker build -t leap_docker .

  3. Tag the image and push it to your DockerHub repository: docker tag leap_docker yourusername/leap_docker:latest docker push yourusername/leap_docker:latest

  4. After that, others can pull the image using: docker pull yourusername/leap_docker:latest

  5. To run a container: docker run -it --gpus all yourusername/leap_docker

Hope it helps!

zhangr05 avatar Oct 04 '24 02:10 zhangr05