mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
v2 testing
This commit is contained in:
@@ -41,6 +41,13 @@ RUN git clone https://github.com/pikvm/ustreamer \
|
||||
COPY testenv/requirements.txt requirements.txt
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
RUN mkdir -p /etc/kvmd/nginx
|
||||
RUN mkdir -p \
|
||||
/etc/kvmd/nginx \
|
||||
/var/lib/kvmd/msd/{images,meta} \
|
||||
/fake_sysfs/sys/kernel/config/usb_gadget/kvmd/functions/mass_storage.usb0/lun.0 \
|
||||
&& cd /fake_sysfs/sys/kernel/config/usb_gadget/kvmd/functions/mass_storage.usb0/lun.0 \
|
||||
&& touch file \
|
||||
&& echo 1 > cdrom \
|
||||
&& echo 1 > ro
|
||||
|
||||
CMD /bin/bash
|
||||
|
||||
32
testenv/v2-hdmi.override.yaml
Normal file
32
testenv/v2-hdmi.override.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
kvmd:
|
||||
server:
|
||||
unix_mode: 0666
|
||||
|
||||
hid:
|
||||
keyboard:
|
||||
device: /dev/null
|
||||
mouse:
|
||||
device: /dev/null
|
||||
noop: true
|
||||
|
||||
msd:
|
||||
remount_cmd: /bin/true
|
||||
unlock_cmd: /bin/true
|
||||
sysfs_prefix: /fake_sysfs
|
||||
|
||||
streamer:
|
||||
desired_fps: 30
|
||||
max_fps: 40
|
||||
cmd:
|
||||
- "/usr/bin/ustreamer"
|
||||
- "--device=/dev/kvmd-video"
|
||||
- "--quality={quality}"
|
||||
- "--desired-fps={desired_fps}"
|
||||
- "--resolution=800x600"
|
||||
- "--last-as-blank=0"
|
||||
- "--unix={unix}"
|
||||
- "--unix-rm"
|
||||
- "--unix-mode=0666"
|
||||
- "--exit-on-parent-death"
|
||||
- "--process-name-prefix={process_name_prefix}"
|
||||
- "--no-log-colors"
|
||||
Reference in New Issue
Block a user