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

Dockerfile for WSL #1

Closed
trufty opened this issue Jun 27, 2022 · 2 comments
Closed

Dockerfile for WSL #1

trufty opened this issue Jun 27, 2022 · 2 comments

Comments

@trufty
Copy link

trufty commented Jun 27, 2022

:edit: made some small changes as I learn new things about Docker
I put together a Dockerfile for us poor WSL users, so we can run the notebook from our browser in Windows.

FROM nvidia/cuda:11.6.2-base-ubuntu20.04

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && \
    apt-get install python3 -y && \
    apt-get install python3-pip -y && \
    apt-get install git curl wget ffmpeg libsm6 libxext6 -y

RUN pip3 install torch torchvision --extra-index-url https://download.pytorch.org/whl/cu116

RUN pip3 install jupyterlab notebook numpy pillow

WORKDIR /root/data/

CMD ["python3", "-m", "jupyter", "notebook", "/root/data/", "-i 0.0.0.0", "--allow-root", "--no-browser", "--NotebookApp.token=''"]

Then download the jupyter notebook to some local drive.

Run with

start wsl.exe -e sh -c "docker run  -p 8888:8888 --network host --shm-size=200m --rm --gpus all -it -v <WSL path to jupyter notebook directory>:/root/data <your docker image name>"

Then open your browser to localhost:8888 That's it!

Note: the WSL path to the notebook will be like /mnt/c/.../ c being the C: drive

@nousr
Copy link
Collaborator

nousr commented Aug 4, 2022

@trufty 😄 thanks for giving an easy-to-use interface for people during the infancy of this project !

I'm believe that this is now outdated as the repository has changed dramatically in the past month, and support has moved to scripts (instead of a notebook). As a result, I am going to close this issue.

thanks again!

@nousr nousr closed this as completed Aug 4, 2022
@trufty
Copy link
Author

trufty commented Aug 4, 2022

No problem! I will create a new one once the inference scripts become more finalized.

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

2 participants