-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
59 lines (51 loc) · 2.07 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
FROM docker.io/ubuntu:20.04
LABEL description="sam-artifact"
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y \
build-essential software-properties-common && \
add-apt-repository -y ppa:ubuntu-toolchain-r/test && \
add-apt-repository -y ppa:zeehio/libxp && \
dpkg --add-architecture i386 && \
apt-get update && \
apt-get install -y \
wget \
curl \
git make gcc-9 g++-9 \
python3 python3-dev python3-pip python3-venv \
graphviz \
xxd \
time \
vim \
&& \
update-alternatives --install /usr/bin/python python /usr/bin/python3 100 && \
update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 100 && \
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100 \
--slave /usr/bin/g++ g++ /usr/bin/g++-9 && \
pip install cmake && \
wget -nv -O ~/clang7.tar.xz http://releases.llvm.org/7.0.1/clang+llvm-7.0.1-x86_64-linux-gnu-ubuntu-18.04.tar.xz && \
tar -xvf ~/clang7.tar.xz --strip-components=1 -C /usr/ && \
rm -rf ~/clang7.tar.xz
# Switch shell to bash
SHELL ["/bin/bash", "--login", "-c"]
COPY . /sam-artifact
WORKDIR /sam-artifact
RUN python -m venv .
WORKDIR /sam-artifact/sam
RUN source /sam-artifact/bin/activate && pip install scipy numpy pytest tqdm pytest-benchmark matplotlib pandas pydot pyyaml && pip install -e .
RUN apt-get install -y python-tk
RUN make sam
COPY ./taco-website /sam-artifact/taco-website
WORKDIR /sam-artifact
RUN echo "source /sam-artifact/bin/activate" >> /root/.bashrc
RUN mkdir SS
RUN mkdir SS_F
RUN mkdir FROSTT
RUN mkdir FROSTT_F
RUN mkdir TEMP_TENSOR
RUN echo "export SUITESPARSE_PATH=/sam-artifact/SS" >> /root/.bashrc
RUN echo "export SUITESPARSE_FORMATTED_PATH=/sam-artifact/SS_F" >> /root/.bashrc
RUN echo "export FROSTT_PATH=/sam-artifact/FROSTT" >> /root/.bashrc
RUN echo "export FROSTT_FORMATTED_PATH=/sam-artifact/FROSTT_F" >> /root/.bashrc
RUN echo "export TACO_TENSOR_PATH=/sam-artifact/TEMP_TENSOR" >> /root/.bashrc
RUN echo "export SAM_HOME=/sam-artifact/sam/" >> /root/.bashrc