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 and docker-compose for running code in any OS environment🐳 #109

Open
Ujstor opened this issue Dec 14, 2023 · 0 comments

Comments

@Ujstor
Copy link

Ujstor commented Dec 14, 2023

I've noticed that many people have a hard time running this code outside of Linux. Also, there are individuals who won't monetize others' hard work. These are the reasons for this PR #108. I am open to suggestions

Install Docker and Nvidia-container-runtime. Place pretrained_models as expected. Docker will ignore models in the building stage.

Building and Running the Docker Image

Run the following command to build and start the Docker image/container::

docker-compose up -d

Open a terminal and create an SSH tunnel to the Docker container:

ssh -L 7860:127.0.0.1:7860 -p 2222 models@localhost

Password: root

Execute ./entrypoint.sh to run the Gradio demo. The Gradio demo will be available at http://localhost:7860.

The SSH tunnel needs to remain active at all times for the Gradio demo to work. Additionally, you need to be inside the Docker container to execute commands.

Before running commands like:

python3 -m magicanimate.pipelines.animation --config configs/prompts/animation.yaml

or any other command that is not a script that automatically activates the environment, make sure to have the conda environment active:

conda activate manimate

A volume is mounted at the root directory and all changes, files, etc. will be saved in the root directory and accessible from the Docker container.

@Ujstor Ujstor changed the title 🐳 Dockerfile and docker-compose for running code in any OS environment.🐳 🐳 Dockerfile and docker-compose for running code in any OS environment🐳 Dec 14, 2023
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

1 participant