diff --git a/u-os-app/manifest.json.template b/u-os-app/manifest.json.template new file mode 100644 index 0000000..659d7d4 --- /dev/null +++ b/u-os-app/manifest.json.template @@ -0,0 +1,180 @@ +{ + "manifestVersion": "0.2", + "version": "APPVERSION_TO_INSERT", + "title": "OpenWrt preview", + "description": "Open source OpenWrt software router project (https://openwrt.org/). This software router preview requires a UC20-M3000/4000 with enabled KVM Linux kernel feature. Otherwise it will be unusable slow.", + "logo": "openwrt_logo_text_vertical_blue_and_dark_blue.svg", + "vendor": { + "name": "Albrecht Lohofener", + "url": "https://github.com/AlbrechtL/openwrt-docker-arm64-build/", + "email": "albrechtloh@gmx.de", + "street": "", + "zip": "", + "city": "", + "country": "Germany" + }, + "services": { + "u-link-addon-u-link": { + "type": "docker-compose", + "config": { + "image": "localhost:5000:local/qemu-openwrt:latest", + "privileged": true, + "restart": "no", + "volumes": [ + "data:/storage", + "licenses:/licenses", + "/dev:/dev" + ], + "containerName": "u-os-app-openwrt", + "ports": ["127.0.0.1:65432:8006"], + "pid": "host", + "capAdd": ["NET_ADMIN"], + "deviceCgroupRules": ["c *:* rwm"], + "environment": { + "IS_U_OS_APP": "y" + }, + "extraHosts": ["host.docker.internal:host-gateway"] + } + } + }, + "publish": { + "openwrt": { + "from": "http://127.0.0.1:65432", + "to": "" + } + }, + "platform": ["ucu"], + "environments": { + "edgenode": { + "type": "docker-compose", + "config": { + "volumes": { + "data": {}, + "licenses": { + "driver": "local-public" + } + } + } + } + }, + "settings": { + "environmentVariables": [ + { + "name": "WAN_IF", + "label": "WAN Ethernet interface", + "description": "Which Ethernet interface shall be used by OpenWrt exclusively? WARNING: The selected Ethernet interface will be disconnect inside u-OS. Leave it blank if not used.", + "select": [ + { + "label": "none", + "value": "none", + "default": true + }, + { + "label": "u-OS (poor performace)", + "value": "" + }, + { + "label": "eth-x4", + "value": "eth-x4" + }, + { + "label": "eth-x5", + "value": "eth-x5" + }, + { + "label": "eth-x6", + "value": "eth-x6" + }, + { + "label": "eth-x7", + "value": "eth-x7" + } + ] + }, + { + "name": "LAN_IF", + "label": "LAN Ethernet interface", + "description": "Which Ethernet interface shall be used by OpenWrt exclusively? WARNING: The selected Ethernet interface will be disconnect inside u-OS. Leave it blank if not used.", + "select": [ + { + "label": "Virtual LAN to u-OS", + "value": "veth", + "default": true + }, + { + "label": "none", + "value": "" + }, + { + "label": "eth-x4", + "value": "eth-x4" + }, + { + "label": "eth-x5", + "value": "eth-x5" + }, + { + "label": "eth-x6", + "value": "eth-x6" + }, + { + "label": "eth-x7", + "value": "eth-x7" + } + ] + }, + { + "name": "FORWARD_LUCI", + "label": "Forward OpenWrt web interface to port 9000", + "description": "Shall OpenWrt LuCI be forwarded to local port 9000?", + "select": [ + { + "label": "Yes", + "value": "true" + }, + { + "label": "No", + "value": "false", + "default": true + } + ] + }, + { + "name": "USB_1", + "label": "Attached USB device 1. Format ':' e.g. '0e8d:7961' like 'lsusb' shows.", + "description": "Attached USB device 1. Format ':' e.g. '0e8d:7961' like 'lsusb' shows.", + "default": "" + }, + { + "name": "USB_2", + "label": "Attached USB device 2. Format ':' e.g. '0e8d:7961' like 'lsusb' shows.", + "description": "Attached USB device 2. Format ':' e.g. '0e8d:7961' like 'lsusb' shows.", + "default": "" + }, + { + "name": "CPU_COUNT", + "label": "Number of virtualized CPUs", + "description": "You can select how many CPUs OpenWrt can use. Leave it by default if you are unsure. Default is 2.", + "select": [ + { + "label": "1", + "value": "1" + }, + { + "label": "2", + "value": "2", + "default": true + }, + { + "label": "3", + "value": "3" + }, + { + "label": "4", + "value": "4" + } + ] + } + ] + } +} diff --git a/u-os-app/openwrt_logo_text_vertical_blue_and_dark_blue.svg b/u-os-app/openwrt_logo_text_vertical_blue_and_dark_blue.svg new file mode 100644 index 0000000..82c545d --- /dev/null +++ b/u-os-app/openwrt_logo_text_vertical_blue_and_dark_blue.svg @@ -0,0 +1,394 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/u-os-app/source-credentials.json b/u-os-app/source-credentials.json new file mode 100644 index 0000000..8bafa6a --- /dev/null +++ b/u-os-app/source-credentials.json @@ -0,0 +1,6 @@ +{ + "serveraddress": "localhost:5000", + "repositoryname": "local/qemu-openwrt", + "username": "", + "password": "" +} diff --git a/u-os-app/target-credentials.json b/u-os-app/target-credentials.json new file mode 100644 index 0000000..ff5e511 --- /dev/null +++ b/u-os-app/target-credentials.json @@ -0,0 +1,6 @@ +{ + "serveraddress": "localhost:5000", + "repositoryname": "local/u-os-app-openwrt", + "username": "", + "password": "" +}