forked from rostedt/trace-cmd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (32 loc) · 1.02 KB
/
Dockerfile
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
FROM python:3.7.6
WORKDIR /home/server
RUN apt update \
&& apt install -y \
swig
# COPY directories
COPY Documentation Documentation
COPY include include
COPY lib lib
COPY tracecmd tracecmd
COPY kernel-shark kernel-shark
COPY LICENSES LICENSES
COPY python python
COPY scripts scripts
# COPY files
COPY COPYING COPYING.LIB DCO features.mk LICENSES Makefile README setup.py MANIFEST.in ./
ENV PYTHON_VERS python3
RUN make \
&& python3 setup.py sdist bdist_wheel \
&& pip3 install -U dist/tracecmd*.tar.gz
# RUN make \
# && make install_python \
# && cp -vn /usr/local/lib/trace-cmd/python/* /usr/local/lib/python3.7/
COPY TraceDisplay/pip3.install.txt TraceDisplay/pip3.install.txt
RUN pip3 install -r TraceDisplay/pip3.install.txt
COPY TraceDisplay TraceDisplay
RUN cd TraceDisplay \
&& python3 setup.py sdist bdist_wheel \
&& pip3 install -U dist/TraceDisplay*.tar.gz
RUN patch /usr/local/lib/python3.7/site-packages/nbconvert/preprocessors/execute.py TraceDisplay/nbconvert.patch
ENTRYPOINT [ "TraceDisplay/entrypoint.sh" ]
EXPOSE 443