forked from cocotb/cocotb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (36 loc) · 982 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
32
33
34
35
36
37
38
39
40
41
FROM ubuntu:16.04
# travis-ci only provides 2
ARG MAKE_JOBS=-j2
# Simulation
ARG ICARUS_VERILOG_VERSION=10_3
RUN apt-get -qq update && apt-get -qq install -y --no-install-recommends \
wget \
git \
gperf \
make \
autoconf \
g++ \
flex \
bison \
python3-dev\
python3-pip \
python3-setuptools \
python3 \
virtualenv \
python3-venv \
swig \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean \
&& pip3 install --upgrade pip \
&& g++ --version
# Icarus Verilog
ENV ICARUS_VERILOG_VERSION=${ICARUS_VERILOG_VERSION}
WORKDIR /usr/src/iverilog
RUN git clone https://github.com/steveicarus/iverilog.git --depth=1 --branch v${ICARUS_VERILOG_VERSION} . \
&& sh autoconf.sh \
&& ./configure \
&& make -s ${MAKE_JOBS} \
&& make -s install \
&& rm -r /usr/src/iverilog
# make sources available in docker image - one copy per python version
COPY . /src