-
Notifications
You must be signed in to change notification settings - Fork 2
/
cosim.dockerfile
97 lines (80 loc) · 1.87 KB
/
cosim.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
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
85
86
87
88
89
90
91
92
93
94
95
96
97
ARG IMAGE="ubuntu:bionic"
#
# Build GtkWave
#
FROM $IMAGE AS build
WORKDIR /work
RUN apt-get update -qq \
&& DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \
ca-certificates \
gcc \
git \
libstdc++-8-dev \
make \
build-essential \
flex \
gawk \
gperf \
libbz2-dev \
libreadline-dev \
libffi-dev \
libgtk-3-dev \
liblzma-dev \
pkg-config \
tcl-dev \
tk-dev \
&& apt-get autoclean && apt-get clean && apt-get -y autoremove \
&& update-ca-certificates
ENV PREFIX=/usr/local/bin
RUN mkdir -pv /tmp/gtkwave && cd /tmp/gtkwave \
&& git clone https://github.com/gtkwave/gtkwave ./ \
&& cd gtkwave3-gtk3 \
&& ./configure --prefix="/usr/local" --with-tk=/usr/lib --enable-gtk3 \
&& make -j$(nproc) \
&& make check \
&& make DESTDIR="/tmp/build-dir" install
#
# GtkWave
#
FROM $IMAGE AS base
RUN apt update -qq \
&& DEBIAN_FRONTEND=noninteractive apt -y install --no-install-recommends \
ca-certificates \
gcc \
git \
graphviz \
libc6-dev \
libgnat-8 \
libgtk-3-0 \
libllvm6.0 \
libtcl8.6 \
libtk8.6 \
make \
python3 \
python3-pip \
tango-icon-theme \
time \
xdot \
xterm \
zlib1g-dev \
&& apt autoclean && apt clean && apt -y autoremove \
&& update-ca-certificates
# && echo 'gtk-icon-theme-name = "Tango"' >> /usr/share/themes/Raleigh/gtk-2.0/gtkrc
COPY --from=build /tmp/build-dir/ /
#
# amd64
#
FROM base AS amd64
RUN pip3 install flask Pillow numpy
#
# arm
#
FROM base AS arm
RUN apt update -qq \
&& DEBIAN_FRONTEND=noninteractive apt -y install --no-install-recommends \
libjpeg-dev \
libpython3-dev \
libtiff5-dev \
zlib1g-dev \
&& pip3 install setuptools wheel \
&& pip3 install Cython flask Pillow numpy