-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
executable file
·27 lines (20 loc) · 1.27 KB
/
Dockerfile
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 debian:latest
# Install QEMU for virtualization, libvirt for configuration and management, virtinst for cli vm creation, libguestsfs for accessing images, telnet for establishing connection to the VMs.
RUN apt-get update && apt-get install --no-install-recommends -y qemu-system libvirt-clients libvirt-daemon-system virtinst libguestfs-tools telnet bridge-utils libosinfo-bin wget net-tools python3-pip qemu-efi-aarch64 tmux
# Download image x86 openwrt for QEMU
RUN mkdir /qemu_images
RUN wget -P /qemu_images https://downloads.openwrt.org/releases/19.07.7/targets/x86/64/openwrt-19.07.7-x86-64-combined-ext4.img.gz
RUN gunzip /qemu_images/openwrt-19.07.7-x86-64-combined-ext4.img.gz
# Download mips openwrt
RUN wget -P /qemu_images https://downloads.openwrt.org/releases/19.07.7/targets/malta/be/openwrt-19.07.7-malta-be-vmlinux-initramfs.elf
# Download arm image
RUN wget -P /qemu_images https://downloads.openwrt.org/releases/19.07.7/targets/armvirt/64/openwrt-19.07.7-armvirt-64-Image-initramfs
# Add qemu startup script
COPY ./qemu/ /qemu/
RUN chmod +x -R /qemu/
# Add iotpot to docker instance
RUN mkdir /iotpot
COPY ./iotpot/ /iotpot/
RUN python3 -m pip install -r /iotpot/requirements.txt
# https://wiki.debian.org/KVM
# https://jamielinux.com/docs/libvirt-networking-handbook/