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 | MAINTAINER Jonathan Brilhante | 2 | MAINTAINER Jonathan Brilhante |
3 | #USER root | 3 | #USER root |
4 | 4 | ||
@@ -43,13 +43,23 @@ RUN pip install graypy | @@ -43,13 +43,23 @@ RUN pip install graypy | ||
43 | RUN pip install graypy[amqp] | 43 | RUN pip install graypy[amqp] |
44 | 44 | ||
45 | #Install aditional packages | 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 | RUN apt-get install -y python-yaml libgomp1 python-numpy python-pyfits python-matplotlib idle | 47 | RUN apt-get install -y python-yaml libgomp1 python-numpy python-pyfits python-matplotlib idle |
48 | RUN pip install nltk==3.0.5 nltk_tgrep --upgrade | 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 | WORKDIR /root/ | 57 | WORKDIR /root/ |
58 | +RUN mkdir -p ./storage/libras | ||
59 | + | ||
60 | +#Copy workers to container | ||
52 | COPY ./core/translator.py /root/translator.py | 61 | COPY ./core/translator.py /root/translator.py |
62 | +COPY ./core/renderer.py /root/renderer.py | ||
53 | COPY ./core/PikaManager.py /root/PikaManager.py | 63 | COPY ./core/PikaManager.py /root/PikaManager.py |
54 | COPY ./core/processManager.py /root/processManager.py | 64 | COPY ./core/processManager.py /root/processManager.py |
55 | COPY ./core/logger.py /root/logger.py | 65 | COPY ./core/logger.py /root/logger.py |
@@ -59,6 +69,12 @@ COPY ./translate-api/ /root/translate-api/ | @@ -59,6 +69,12 @@ COPY ./translate-api/ /root/translate-api/ | ||
59 | COPY ./vlibras-translate/ /root/vlibras-translate/ | 69 | COPY ./vlibras-translate/ /root/vlibras-translate/ |
60 | COPY ./vlibras-libs/ /root/vlibras-libs/ | 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 | #Translator environment variables | 78 | #Translator environment variables |
63 | ENV HUNPOS_TAGGER="/root/vlibras-libs/aelius/bin/hunpos-tag" | 79 | ENV HUNPOS_TAGGER="/root/vlibras-libs/aelius/bin/hunpos-tag" |
64 | ENV AELIUS_DATA="/root/vlibras-libs/aelius/aelius_data" | 80 | ENV AELIUS_DATA="/root/vlibras-libs/aelius/aelius_data" |
@@ -72,4 +88,4 @@ WORKDIR /root/translate-api/ | @@ -72,4 +88,4 @@ WORKDIR /root/translate-api/ | ||
72 | RUN npm i | 88 | RUN npm i |
73 | 89 | ||
74 | #Comando de entrada quando inicializado | 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 |