Loading Dockerfile +1 −1 Original line number Diff line number Diff line Loading @@ -48,7 +48,7 @@ VOLUME /images EXPOSE 5000 EXPOSE 5001 ENV SPACE 16G ENV DISK_SIZE 16G ENV URL https://global.synologydownload.com/download/DSM/release/7.0.1/42218/DSM_VirtualDSM_42218.pat #ENV URL https://global.synologydownload.com/download/DSM/beta/7.2/64216/DSM_VirtualDSM_64216.pat Loading run.sh +9 −2 Original line number Diff line number Diff line Loading @@ -2,6 +2,11 @@ set -eu if [ ! -f "/run/server.sh" ]; then echo "Script must run inside Docker container!" exit 1 fi /run/server.sh 5000 "<HTML><BODY><H1><CENTER>Please wait while Synology is installing...</CENTER></H1></BODY></HTML>" > /dev/null & [ ! -f "/images/boot.img" ] && rm -f /images/dsm.pat Loading Loading @@ -94,7 +99,7 @@ fi FILE="/images/data.img" if [ ! -f "$FILE" ]; then truncate -s $SPACE $FILE truncate -s $DISK_SIZE $FILE mkfs.ext4 -q $FILE fi Loading Loading @@ -148,7 +153,7 @@ ip link set dev $QEMU_BRIDGE up touch /var/lib/misc/udhcpd.leases # Finally, start our DHCPD server udhcpd -I $DUMMY_DHCPD_IP -f $DHCPD_CONF_FILE & udhcpd -I $DUMMY_DHCPD_IP -f $DHCPD_CONF_FILE 2>&1 & echo "Launching Synology Serial Emulator..." Loading Loading @@ -185,3 +190,5 @@ exec qemu-system-x86_64 -name Synology -enable-kvm -nographic -serial mon:stdio -device scsi-hd,bus=hw-userdata.0,channel=0,scsi-id=0,lun=0,drive=drive-userdata,id=userdata0,bootindex=3 \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 exit 0 Loading
Dockerfile +1 −1 Original line number Diff line number Diff line Loading @@ -48,7 +48,7 @@ VOLUME /images EXPOSE 5000 EXPOSE 5001 ENV SPACE 16G ENV DISK_SIZE 16G ENV URL https://global.synologydownload.com/download/DSM/release/7.0.1/42218/DSM_VirtualDSM_42218.pat #ENV URL https://global.synologydownload.com/download/DSM/beta/7.2/64216/DSM_VirtualDSM_64216.pat Loading
run.sh +9 −2 Original line number Diff line number Diff line Loading @@ -2,6 +2,11 @@ set -eu if [ ! -f "/run/server.sh" ]; then echo "Script must run inside Docker container!" exit 1 fi /run/server.sh 5000 "<HTML><BODY><H1><CENTER>Please wait while Synology is installing...</CENTER></H1></BODY></HTML>" > /dev/null & [ ! -f "/images/boot.img" ] && rm -f /images/dsm.pat Loading Loading @@ -94,7 +99,7 @@ fi FILE="/images/data.img" if [ ! -f "$FILE" ]; then truncate -s $SPACE $FILE truncate -s $DISK_SIZE $FILE mkfs.ext4 -q $FILE fi Loading Loading @@ -148,7 +153,7 @@ ip link set dev $QEMU_BRIDGE up touch /var/lib/misc/udhcpd.leases # Finally, start our DHCPD server udhcpd -I $DUMMY_DHCPD_IP -f $DHCPD_CONF_FILE & udhcpd -I $DUMMY_DHCPD_IP -f $DHCPD_CONF_FILE 2>&1 & echo "Launching Synology Serial Emulator..." Loading Loading @@ -185,3 +190,5 @@ exec qemu-system-x86_64 -name Synology -enable-kvm -nographic -serial mon:stdio -device scsi-hd,bus=hw-userdata.0,channel=0,scsi-id=0,lun=0,drive=drive-userdata,id=userdata0,bootindex=3 \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 exit 0