Dockerfile.buildenv 1.31 KB
Newer Older
1
2
FROM ubuntu:jammy
RUN apt-get update \
3
4
5
6
 && DEBIAN_FRONTEND=noninteractive \
    TZ=Europe/Berlin \
    apt-get install -y \
	apt-utils \
7
8
9
10
11
12
13
14
	autoconf \
	bc \
	bison \
	build-essential \
	doxygen \
	g++ \
	flex \
	git \
15
	kmod \
16
17
18
19
20
	libboost-coroutine-dev \
	libboost-fiber-dev \
	libboost-iostreams-dev \
	libelf-dev \
	libglib2.0-dev \
21
	libgoogle-perftools-dev \
22
23
	libpcap-dev \
	libpixman-1-dev \
24
	libprotobuf-dev \
25
	ninja-build \
26
27
28
	protobuf-compiler \
	python-is-python3 \
	python3-dev \
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
	python3-sphinx \
	python3-sphinx-rtd-theme \
	rsync \
	scons \
	unzip \
	wget \
 && rm -rf /var/lib/apt/lists/*
COPY verilator.patch /tmp/
RUN cd /tmp \
 && git clone -b v4.010 https://github.com/verilator/verilator \
 && cd verilator \
 && patch -p1 < /tmp/verilator.patch \
 && autoupdate \
 && autoconf \
 && ./configure \
 && make -j`nproc` \
 && make install \
 && rm -rf /tmp/verilator
47
48
49
50
51
52
53
54
55
56
57
58

# Add non-root user for vs code devcontainer.
ARG USERNAME=simbricks
ARG USER_UID=1000
ARG USER_GID=$USER_UID
RUN groupadd --gid $USER_GID $USERNAME \
 && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME --shell /bin/bash \
# Add sudo support for this user and remove the need to type in password.
 && apt-get update \
 && apt-get install -y sudo \
 && echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
 && chmod 0440 /etc/sudoers.d/$USERNAME