Skip to content

Instantly share code, notes, and snippets.

@CFM880
Created December 15, 2024 07:37
Show Gist options
  • Save CFM880/360b1968bda6ef6d85a350ac078706c0 to your computer and use it in GitHub Desktop.
Save CFM880/360b1968bda6ef6d85a350ac078706c0 to your computer and use it in GitHub Desktop.
Openvela Dockerfile
FROM ubuntu:jammy
RUN apt update && apt install -y locales && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG=en_US.utf8
RUN apt upgrade -y
RUN apt install -y bison flex gettext texinfo libncurses5-dev libncursesw5-dev xxd \
git gperf automake libtool build-essential gperf genromfs \
libgmp-dev libmpc-dev libmpfr-dev libisl-dev binutils-dev libelf-dev \
libexpat1-dev gcc-multilib g++-multilib picocom u-boot-tools util-linux \
dfu-util libx11-dev libxext-dev net-tools pkgconf unionfs-fuse zlib1g-dev \
libusb-1.0-0-dev libv4l-dev libuv1-dev npm nodejs nasm yasm libdivsufsort-dev \
libc++-dev libc++abi-dev libprotobuf-dev protobuf-compiler protobuf-c-compiler mtools
RUN apt install -y kconfig-frontends \
python3 python3-pip python-is-python3
RUN pip3 install kconfiglib pyelftools cxxfilt
RUN dpkg --add-architecture i386
RUN apt-get install -y software-properties-common
RUN add-apt-repository ppa:ubuntu-toolchain-r/test
RUN apt-get update
RUN apt-get install -y libncurses5 lib32ncurses5-dev libx11-dev:i386 libxext-dev:i386 \
libpulse-dev:i386 libasound2-dev:i386 libasound2-plugins:i386 libusb-1.0-0-dev:i386 \
libv4l-dev:i386 libmp3lame-dev:i386 libmad0-dev:i386 libv4l-dev:i386 qemu-system-arm \
qemu-efi-aarch64 qemu-utils
RUN apt clean
WORKDIR /openvela
@CFM880
Copy link
Author

CFM880 commented Dec 15, 2024

xhost +Local:* # x11 转发
docker run -it --rm \
           --name openvela \
           --net=host
           -e DISPLAY=$DISPLAY \
           -v /tmp/.X11-unix:/tmp/.X11-unix \
           openvela:lastest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment