-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
48 lines (39 loc) · 1.58 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
# Specify the base image
FROM ubuntu:20.04
# Set some appropriate metadata
LABEL maintainer="Intel Corporation"
LABEL version="1.0"
LABEL description="This is custom Docker Image built for running AutoPerf"
# Disable prompt during package installation
ARG DEBIAN_FRONTEND=noninteractive
# Used for miniconda installation
ENV PATH="/root/miniconda3/bin:${PATH}"
ARG PATH="/root/miniconda3/bin:${PATH}"
# Download all dependencies
RUN apt update \
&& apt install -y wget vim libpapi5.7 libpapi-dev papi-tools \
&& apt install -y build-essential libssl-dev libz-dev time gdb \
&& rm -rf /var/lib/apt/lists* \
&& apt clean
# Install miniconda
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
&& mkdir /root/.conda \
&& bash Miniconda3-latest-Linux-x86_64.sh -b \
&& rm -f Miniconda3-latest-Linux-x86_64.sh
# Copy the AutoPerf source code into the container
COPY autoperf /usr/local/autoperf/autoperf/
COPY profiler /usr/local/autoperf/profiler/
COPY tests /usr/local/autoperf/tests/
COPY environment_ubuntu.yml /usr/local/autoperf/
COPY data/dedup /usr/local/autoperf/data/dedup/
COPY data/dedup_faster /usr/local/autoperf/data/dedup_faster/
COPY data/defines.mk /usr/local/autoperf/data/
COPY data/Makefile /usr/local/autoperf/data/
COPY Default.mk /usr/local/autoperf/
COPY datasets/dedup/enwik8.zip /usr/local/datasets/dedup/enwik8.zip
# Create the AutoPerf Python environment
RUN cd /usr/local/autoperf \
&& conda init bash \
&& conda update conda \
&& conda env create -f environment_ubuntu.yml \
&& conda clean --all -f --yes