-
Notifications
You must be signed in to change notification settings - Fork 0
/
Containerfile
84 lines (73 loc) · 1.67 KB
/
Containerfile
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
FROM ubuntu:18.04 AS build
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y \
autoconf \
bison \
build-essential \
clang \
cmake \
curl \
flex \
gawk \
git \
gperf \
graphviz \
gtkwave \
libboost-program-options-dev \
libffi-dev \
libftdi-dev \
libgmp-dev \
libreadline-dev \
mercurial \
pkg-config \
python \
python3 \
tcl-dev \
vim \
wget \
xdot
# sv2v
WORKDIR /build
RUN curl -sSL https://get.haskellstack.org/ | sh
RUN git clone https://github.com/zachjs/sv2v.git
WORKDIR /build/sv2v
RUN make
# yosys
WORKDIR /build
RUN git clone https://github.com/YosysHQ/yosys.git yosys
WORKDIR /build/yosys
RUN make config-clang
RUN DESTDIR=/install make install -j$(nproc)
# SymbiYosys
WORKDIR /build
RUN git clone https://github.com/cliffordwolf/SymbiYosys.git SymbiYosys
WORKDIR /build/SymbiYosys
RUN make DESTDIR=/install install
# boolector
WORKDIR /build
RUN git clone https://github.com/boolector/boolector
WORKDIR /build/boolector
RUN ./contrib/setup-lingeling.sh
RUN ./contrib/setup-btor2tools.sh
RUN ./configure.sh --prefix /install
RUN cd build && make all install
# yices 2
WORKDIR /build
RUN git clone https://github.com/SRI-CSL/yices2.git yices2
WORKDIR /build/yices2
RUN autoconf
RUN ./configure --prefix /install
RUN make -j$(nproc)
RUN make install
FROM ubuntu:18.04 AS dev
ENV DEBIAN_FRONTEND noninteractive
COPY --from=build /build/sv2v/bin/sv2v /usr/bin
COPY --from=build /install/ /
RUN apt-get update && apt-get install -y \
libffi-dev \
libtcl8.6 \
make \
python3 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
CMD ["/bin/bash"]