-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile
More file actions
68 lines (59 loc) · 1.53 KB
/
Containerfile
File metadata and controls
68 lines (59 loc) · 1.53 KB
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
FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
git \
build-essential \
g++ \
cmake \
wget \
perl \
python3 \
python3-pip \
python3-dev \
flex \
bison \
libfl-dev \
zlib1g-dev \
libelf-dev \
ccache \
autoconf \
help2man \
gawk \
gperf \
libgmp-dev \
libmpfr-dev \
libmpc-dev \
texinfo \
libisl-dev \
patchutils \
&& rm -rf /var/lib/apt/lists/*
ENV VERILATOR_VERSION=794247450
ENV VERILATOR_INSTALL_DIR=/usr/local
RUN set -ex && \
git clone https://github.com/verilator/verilator.git /tmp/verilator_src && \
cd /tmp/verilator_src && \
echo "Checking out Verilator git hash: ${VERILATOR_VERSION}" && \
git checkout ${VERILATOR_VERSION} && \
git clean -fdx && \
unset VERILATOR_ROOT && \
autoconf && \
./configure --prefix=${VERILATOR_INSTALL_DIR} && \
echo "Building Verilator..." && \
make && \
echo "Installing Verilator..." && \
make install && \
cd / && \
rm -rf /tmp/verilator_src
RUN set -ex && \
apt-get update && \
apt-get install -y \
gcc-riscv64-unknown-elf-newlib \
binutils-riscv64-unknown-elf \
gcc-riscv64-unknown-elf || true && \
rm -rf /var/lib/apt/lists/*
WORKDIR /work
COPY --from=docker.io/astral/uv:latest /uv /uvx /bin/
RUN uv venv
RUN uv pip install cocotb==1.9.2
# RUN "echo 'source .venv/bin/activate' >> ~/.bashrc"
CMD ["source", ".venv/bin/activate", "/bin/bash"]