forked from snuids/nyx_containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfileoo2
66 lines (38 loc) · 1.55 KB
/
Dockerfileoo2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
FROM openjdk:11.0.3-jdk
MAINTAINER snuids
RUN apt-get update
RUN apt-get install -y vim
RUN java --version
RUN apt-get install -y locales locales-all
RUN apt-get install sqlite3
RUN apt-get install -y libsqlite3-dev
RUN apt-get install -y python3-tk tk
RUN apt install -y build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev wget
RUN cd /tmp && wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tar.xz && tar -xf Python-3.7.2.tar.xz
RUN cd /tmp/Python-3.7.2 && ls -l && ./configure --enable-optimizations
RUN cd /tmp/Python-3.7.2 && make -j 1 && make install
RUN python3 --version
RUN pip3 --version
RUN apt-get update
RUN apt-get install -y libreoffice
#RUN apt-get install -y libreoffice-core --no-install-recommends
RUN mkdir installoo
WORKDIR /opt/sources/installoo
RUN wget https://tdf.mirror.liteserver.nl/libreoffice/stable/6.3.5/deb/x86_64/LibreOffice_6.3.5_Linux_x86-64_deb.tar.gz
RUN gunzip *.gz
RUN tar -xvf *.tar
WORKDIR /opt/sources/installoo/LibreOffice_6.3.5.2_Linux_x86-64_deb/DEBS
RUN dpkg -i *.deb
COPY ./jaspergenerator /opt/sources/jaspergenerator
COPY ./shellscripts /opt/sources/shellscripts
COPY ./sources/requirements.txt /opt/sources/requirements.txt
RUN pip3 install sqlalchemy
RUN pip3 install psycopg2-binary
RUN pip3 install -r /opt/sources/requirements.txt
COPY ./sources /opt/sources
RUN ls -l /opt/sources
RUN rm -d -r /opt/sources/logs
RUN mkdir /opt/sources/logs
RUN rm -d -r /opt/sources/installoo
WORKDIR /opt/sources
CMD ["python3", "nyx_reportrunner.py"]