mirror of
https://github.com/lukechilds/dockerpi.git
synced 2026-01-23 02:14:37 +00:00
Initial commit
This commit is contained in:
commit
6ae5d8ae81
5 changed files with 85 additions and 0 deletions
24
Dockerfile
Normal file
24
Dockerfile
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
FROM qemu/arm as dockerpi-base
|
||||
LABEL maintainer="Luke Childs <lukechilds123@gmail.com>"
|
||||
|
||||
ADD https://github.com/dhruvvyas90/qemu-rpi-kernel/archive/master.zip /tmp/qemu-rpi-kernel-master.zip
|
||||
|
||||
RUN unzip /tmp/qemu-rpi-kernel-master.zip -d ~ && rm -rf /tmp/*
|
||||
|
||||
VOLUME /filesystem.img
|
||||
|
||||
ENTRYPOINT ["qemu-system-arm"]
|
||||
CMD [ \
|
||||
"-M", "versatilepb", \
|
||||
"-cpu", "arm1176", \
|
||||
"-m", "256", \
|
||||
"-hda", "/filesystem.img", \
|
||||
"-net", "nic", \
|
||||
"-net", "user,hostfwd=tcp::5022-:22", \
|
||||
"-dtb", "/root/qemu-rpi-kernel-master/versatile-pb.dtb", \
|
||||
"-kernel", "/root/qemu-rpi-kernel-master/kernel-qemu-4.19.50-buster", \
|
||||
"-append", "root=/dev/sda2 panic=1", \
|
||||
"-no-reboot", \
|
||||
"-display", "none", \
|
||||
"-serial", "mon:stdio" \
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue