Build as a VM

This commit is contained in:
Alex Davies 2024-05-09 17:22:46 -03:00
parent 3b3f3bd794
commit 1e421a0de1
3 changed files with 85 additions and 0 deletions

View File

@ -16,3 +16,10 @@ distrobox enter spiri-sdk-desktop-main
cd /opt/spiri-sdk/PX4-Autopilot/ cd /opt/spiri-sdk/PX4-Autopilot/
make px4_sitl gazebo-classic #Start the simulator make px4_sitl gazebo-classic #Start the simulator
``` ```
# Building
```bash
docker build -t spiri-desktop-sdk ./
./virtualize.sh spiri-desktop-sdk spiri-sdk.ova
```

75
ova-compose.yml Normal file
View File

@ -0,0 +1,75 @@
system:
name: spiri-sdk
type: vmx-17
os_vmw: other4xLinux64Guest
firmware: efi
secure_boot: false
# default_configuration: grande
networks:
vm_network:
name: "VM Network"
description: "The VM Network network"
hardware:
cpus: 2
memory: 2048
# sata1:
# type: sata_controller
scsi1:
type: scsi_controller
# cdrom1:
# type: cd_drive
# parent: sata1
rootdisk:
type: hard_disk
parent: scsi1
#Set automatically as part of our pipeline, do not change
disk_image: /tmp/output.vmdk
usb1:
type: usb_controller
# ethernet1:
# type: ethernet
# subtype: VmxNet3
# network: vm_network
# videocard1:
# type: video_card
# vmci1:
# type: vmci
# configurations:
# tall:
# label: Tall
# description: too little for the money
# grande:
# label: Grande
# description: just right
# venti:
# label: Venti
# description: too much
# environment:
# transports:
# - com.vmware.guestInfo
# - iso
# categories:
# email: Email Settings
# properties:
# guestinfo.admin.email:
# value: admin@company.org
# user_configurable: true
# type: string
# description: "The Admin's email address"
# label: "Email Address"
# category: email
# extra_configs:
# feature.enabled:
# required: false
# value: true
# log.rotateSize:
# value: 2048000
product:
product: Spiri SDK desktop
vendor: Spiri Robotics

3
virtualize.sh Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock --privileged -v $PWD:/d2vm -w /d2vm git.spirirobotics.com/spiri/utils-docker_to_ovf:main $@