forked from cocotb/cocotb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitpod.Dockerfile
45 lines (35 loc) · 1.09 KB
/
.gitpod.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
FROM gitpod/workspace-full-vnc
USER gitpod
## Install Python with --enable-shared
ARG PYTHON_VERSION=3.8.2
RUN rm -rf ${HOME}/.pyenv/versions/${PYTHON_VERSION}
RUN PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install ${PYTHON_VERSION}
RUN pyenv global ${PYTHON_VERSION}
RUN pip3 install --upgrade pip
# Install linters
RUN pip3 install -U flake8 pylint
# Re-synchronize the package index
RUN sudo apt-get update
# Install needed packages
RUN sudo apt-get install -y flex gnat gtkwave swig
RUN sudo rm -rf /var/lib/apt/lists/*
## Install Icarus Verilog
RUN brew install icarus-verilog
## Install Verilator
RUN brew install verilator
## Install GHDL
ENV GHDL_BRANCH=v0.37
RUN git clone https://github.com/ghdl/ghdl.git --depth=1 --branch ${GHDL_BRANCH} ghdl \
&& cd ghdl \
&& ./configure \
&& make -s \
&& sudo make -s install \
&& cd .. \
&& rm -rf ghdl
# Install cvc
RUN git clone https://github.com/cambridgehackers/open-src-cvc.git --depth=1 cvc \
&& cd cvc/src \
&& make -f makefile.cvc64 -s \
&& sudo cp cvc64 /usr/local/bin \
&& cd ../.. \
&& rm -rf cvc