-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (30 loc) · 1.08 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
33
34
35
36
37
38
39
40
41
FROM jupyter/scipy-notebook:dc9744740e12
USER root
RUN apt-get update -y
RUN apt-get install -y vim
RUN apt-get install -y less
RUN apt-get install -y curl
RUN apt-get install -y libhdf5-dev
RUN apt-get install -y screen
WORKDIR /
# Install pintool
# Fix PIN compilation (included in repo): https://chunkaichang.com/tool/pin-notes/
RUN git clone https://github.com/NVSL/CSE141pp-Tool-Moneta-Pin.git pin
ENV PIN_ROOT=/pin
# Install python libraries
COPY setup/requirements.txt ${DIR_SETUP}/
WORKDIR ${DIR_SETUP}
RUN pip install -r requirements.txt
# Create aliases for Pin and Moneta
COPY setup/bashrc_aliases ${DIR_SETUP}/
COPY moneta/setup.py ${DIR_MONETA}/
# Fix Windows to Linux file endings
#RUN sed -i 's/\r$//' bashrc_aliases
#RUN cat bashrc_aliases >> ~/.bashrc
RUN echo ".container{width: 100%;}" >> /opt/conda/lib/python3.7/site-packages/notebook/static/custom/custom.css
COPY setup/compile_pin.py ${DIR_SETUP}/
COPY setup/trace_tool.cpp ${DIR_SETUP}/
RUN python compile_pin.py
WORKDIR ${DIR_MONETA}
# Make Moneta a package to add path for pytest to locate
# RUN pip install -e .