From fb92666b2695333bf2c5196f2584f1f1df17195c Mon Sep 17 00:00:00 2001 From: Kenny Coyle Date: Sat, 14 Apr 2018 18:35:53 +0100 Subject: [PATCH 1/2] render with docker --- Dockerfile | 11 +++++++++++ README.md | 9 +++++++++ 2 files changed, 20 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..00c4267 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM ubuntu:xenial + +RUN apt-get update +RUN apt-get -y upgrade +RUN apt-get install -y python3 python3-pip python3-lxml python3-cssutils libxml2-dev libxslt1-dev inkscape libav-tools +RUN apt-get install -y zlib1g-dev + +ADD . /app +WORKDIR /app + +RUN pip3 install -r requirements.txt \ No newline at end of file diff --git a/README.md b/README.md index d42a4d2..292d2b2 100644 --- a/README.md +++ b/README.md @@ -161,6 +161,15 @@ Save your file as `artwork/overlay.svg` When you're done, call `./make-overlay.sh yourproject/` which will generate three .pngs in your artwork directory. One of them looks squeezed - don't worry, that is correct. +Running with Docker +------------------- +If you're looking to run the intro-outro-generator on an unsupported platform (mac, windows, etc), it is possible to use docker to generate and render the intros and outros: + +```bash +docker build -t introoutro . +docker run -v {eventName}:/app/{eventName} -i -t introoutro ./make.py {eventName} --debug +``` + It works! It doesn't work! -------------------------- If it works, push your code to github. This way everybody can see which beautiful animations you created and we can all learn from each other. From e45c2d9a7cdfbbe489c2d46cb7ea293b190ed4e0 Mon Sep 17 00:00:00 2001 From: Kenny Coyle Date: Sat, 14 Apr 2018 19:11:12 +0100 Subject: [PATCH 2/2] Install zlib1g-dev at the same time as other dependencies --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 00c4267..ede5d6c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,10 +2,9 @@ FROM ubuntu:xenial RUN apt-get update RUN apt-get -y upgrade -RUN apt-get install -y python3 python3-pip python3-lxml python3-cssutils libxml2-dev libxslt1-dev inkscape libav-tools -RUN apt-get install -y zlib1g-dev +RUN apt-get install -y python3 python3-pip python3-lxml python3-cssutils libxml2-dev libxslt1-dev inkscape libav-tools zlib1g-dev ADD . /app WORKDIR /app -RUN pip3 install -r requirements.txt \ No newline at end of file +RUN pip3 install -r requirements.txt