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

Is there an official Docker image for LEAP? #19

Open
2sjkim opened this issue Jan 30, 2024 · 4 comments
Open

Is there an official Docker image for LEAP? #19

2sjkim opened this issue Jan 30, 2024 · 4 comments

Comments

@2sjkim
Copy link

2sjkim commented Jan 30, 2024

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

@kylechampley
Copy link
Collaborator

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!

@zhangr05
Copy link

zhangr05 commented Oct 4, 2024

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

@kylechampley
Copy link
Collaborator

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?

@zhangr05
Copy link

zhangr05 commented Oct 4, 2024

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!

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

3 participants