forked from hernanponcedeleon/Dat3M
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (26 loc) · 958 Bytes
/
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
#Download base image ubuntu 20.04
FROM ubuntu:20.04
ARG DEBIAN_FRONTEND=noninteractive
# Update Ubuntu Software repository
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y software-properties-common && \
apt-get install -y git && \
apt-get install -y graphviz && \
apt-get install -y sudo && \
apt-get install -y wget && \
apt-get install -y maven && \
apt-get install -y openjdk-17-jdk && \
apt-get install -y openjdk-17-jre && \
apt-get install -y graphviz
# Install Dat3M
RUN cd home && \
git clone --branch development https://github.com/hernanponcedeleon/Dat3M.git && \
cd Dat3M && \
mvn clean install -DskipTests
# symlink for clang
RUN ln -s clang-12 /usr/bin/clang
ENV DAT3M_HOME=/home/Dat3M
ENV DAT3M_OUTPUT=$DAT3M_HOME/output
ENV CFLAGS="-I$DAT3M_HOME/include"
ENV OPTFLAGS="-mem2reg -sroa -early-cse -indvars -loop-unroll -fix-irreducible -loop-simplify -simplifycfg -gvn"