-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (22 loc) · 1006 Bytes
/
Dockerfile
File metadata and controls
27 lines (22 loc) · 1006 Bytes
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
from ubuntu:22.04
run apt-get update && apt-get install -y build-essential
# compile QEMU 7.2.0
run apt-get install -y git python3 ninja-build zlib1g-dev pkg-config libglib2.0-dev binutils-dev libboost-all-dev autoconf libtool libssl-dev libpixman-1-dev python3-pip python3-capstone virtualenv libslirp-dev
run git clone -b v7.2.0 --depth 1 https://git.qemu.org/git/qemu.git /qemu
run mkdir /qemu/build && cd /qemu/build && ../configure --target-list=x86_64-softmmu --python=`which python3` --disable-debug-info --enable-slirp && make -j`nproc`
# install ropr
run apt-get install -y curl
run curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/a && bash /tmp/a -y
env PATH="/root/.cargo/bin/:${PATH}"
run cargo install ropr
# setup the running environment
run apt-get install -y gdb
run mkdir /root/.ssh/
run pip install uv
workdir /RetSpill
copy ./pyproject.toml ./uv.lock ./
run uv sync
# clone the repo and upload the disk image
copy . /RetSpill/
workdir /RetSpill/igni
# cmd ["bash"]