adds support for docker

This commit is contained in:
Scott Opell 2016-08-18 16:20:29 -04:00
parent a3fa16ebcb
commit c2c592679e
3 changed files with 33 additions and 1 deletions

22
Dockerfile Normal file
View file

@ -0,0 +1,22 @@
FROM python:2.7.12
RUN echo "deb http://ftp.debian.org/debian jessie-backports main" >> /etc/apt/sources.list
RUN apt-get update && apt-get install -y \
git
RUN apt-get -t jessie-backports install -y "ffmpeg"
RUN cd /tmp \
&& git clone https://github.com/jakul/aggdraw.git \
&& cd aggdraw \
&& /usr/local/bin/python setup.py install
COPY requirements.txt /tmp
RUN pip install --no-cache-dir --requirement /tmp/requirements.txt
RUN mkdir /app
COPY . /app
WORKDIR /app
ENTRYPOINT ["python", "extract_scene.py"]

View file

@ -36,3 +36,13 @@ Try running the following:
python extract_scene.py -p example_scenes.py SquareToCircle
-p gives a preview of an animation, -w will write it to a file, and -s will show/save the final image in the animation.
## Docker Method
Since its a bit tricky to get all the dependencies set up just right, there is
a Dockerfile provided.
1. [Install Docker](https://www.docker.com/products/overview)
2. Build docker image. `docker build -t manim .`
3. Run it! `docker run --rm -v "$PWD/files":/app/files manim example_scenes.py WarpSquare`
You'll find the output images in `./files` as usual.

View file

@ -1,6 +1,6 @@
colour==0.1.2
numpy==1.11.0
Pillow==1.7.8
Pillow==3.2.0
progressbar==2.3
scipy==0.17.1
tqdm==4.7.1