Commit d0dfb3b2837039ad3c484c2ce4dd4e809fc1b7e6
1 parent
87751f87
Exists in
master
and in
4 other branches
Include renderer dependencies on dockerfile
Showing
1 changed file
with
20 additions
and
4 deletions
Show diff stats
Dockerfile
| 1 | -FROM ubuntu | |
| 1 | +FROM ubuntu:14.04 | |
| 2 | 2 | MAINTAINER Jonathan Brilhante |
| 3 | 3 | #USER root |
| 4 | 4 | |
| ... | ... | @@ -43,13 +43,23 @@ RUN pip install graypy |
| 43 | 43 | RUN pip install graypy[amqp] |
| 44 | 44 | |
| 45 | 45 | #Install aditional packages |
| 46 | -RUN apt-get install -y pkg-config libfreetype6-dev libpng-dev | |
| 46 | +RUN apt-get install -y pkg-config libfreetype6-dev libpng-dev xvfb | |
| 47 | 47 | RUN apt-get install -y python-yaml libgomp1 python-numpy python-pyfits python-matplotlib idle |
| 48 | 48 | RUN pip install nltk==3.0.5 nltk_tgrep --upgrade |
| 49 | +RUN pip install pysrt pyvirtualdisplay | |
| 50 | +RUN apt-get install -y software-properties-common | |
| 51 | + | |
| 52 | +#Install FFmpeg | |
| 53 | +RUN add-apt-repository ppa:mc3man/trusty-media | |
| 54 | +RUN apt-get -y update | |
| 55 | +RUN apt-get install -y ffmpeg gstreamer0.10-ffmpeg | |
| 49 | 56 | |
| 50 | -#Copy workers to container | |
| 51 | 57 | WORKDIR /root/ |
| 58 | +RUN mkdir -p ./storage/libras | |
| 59 | + | |
| 60 | +#Copy workers to container | |
| 52 | 61 | COPY ./core/translator.py /root/translator.py |
| 62 | +COPY ./core/renderer.py /root/renderer.py | |
| 53 | 63 | COPY ./core/PikaManager.py /root/PikaManager.py |
| 54 | 64 | COPY ./core/processManager.py /root/processManager.py |
| 55 | 65 | COPY ./core/logger.py /root/logger.py |
| ... | ... | @@ -59,6 +69,12 @@ COPY ./translate-api/ /root/translate-api/ |
| 59 | 69 | COPY ./vlibras-translate/ /root/vlibras-translate/ |
| 60 | 70 | COPY ./vlibras-libs/ /root/vlibras-libs/ |
| 61 | 71 | |
| 72 | +COPY ./unityVideo/ /root/unityVideo/ | |
| 73 | + | |
| 74 | +#Workers environment variables | |
| 75 | +ENV VLIBRAS_VIDEO_CREATOR="/root/unityVideo/videoCreator.x86_64" | |
| 76 | +ENV VLIBRAS_VIDEO_LIBRAS="/root/storage/libras" | |
| 77 | + | |
| 62 | 78 | #Translator environment variables |
| 63 | 79 | ENV HUNPOS_TAGGER="/root/vlibras-libs/aelius/bin/hunpos-tag" |
| 64 | 80 | ENV AELIUS_DATA="/root/vlibras-libs/aelius/aelius_data" |
| ... | ... | @@ -72,4 +88,4 @@ WORKDIR /root/translate-api/ |
| 72 | 88 | RUN npm i |
| 73 | 89 | |
| 74 | 90 | #Comando de entrada quando inicializado |
| 75 | -ENTRYPOINT (rabbitmq-server start & sleep 1m) ; npm start & python /root/translator.py | |
| 91 | +ENTRYPOINT (rabbitmq-server start & sleep 1m) ; npm start & python /root/translator.py & python /root/renderer.py | ... | ... |