feat:添加docker-android到列表

This commit is contained in:
okxlin 2024-08-29 17:20:53 +08:00
parent 5ee7c141ab
commit 5fa97745b6
6 changed files with 139 additions and 0 deletions

View File

@ -0,0 +1,44 @@
# Docker-Android
Docker-Android 是一个用于 Android 相关一切事务的 Docker 镜像。它可以用于应用程序开发和测试(包括原生应用、网页应用和混合应用)。
## 使用说明
要验证您的系统是否支持 KVM请运行以下命令
```
sudo apt install cpu-checker
sudo kvm-ok
```
**容器镜像与模拟的设备型号可从以下选择 (后续官方可能有修改,以官方文档为准)**
Docker 镜像列表
---------------------
|Android |API |最新版本镜像 |指定版本镜像|
|:---|:---|:---|:---|
|9.0|28|budtmo/docker-android:emulator_9.0|budtmo/docker-android:emulator_9.0_<release_version>|
|10.0|29|budtmo/docker-android:emulator_10.0|budtmo/docker-android:emulator_10.0_<release_version>|
|11.0|30|budtmo/docker-android:emulator_11.0|budtmo/docker-android:emulator_11.0_<release_version>|
|12.0|32|budtmo/docker-android:emulator_12.0|budtmo/docker-android:emulator_12.0_<release_version>|
|13.0|33|budtmo/docker-android:emulator_13.0|budtmo/docker-android:emulator_13.0_<release_version>|
|14.0|34|budtmo/docker-android:emulator_14.0|budtmo/docker-android:emulator_14.0_<release_version>|
|-|-|budtmo/docker-android:genymotion|budtmo/docker-android:genymotion_<release_version>|
设备列表
---------------
|类型 | 设备名称|
|----- | -----|
|手机 | Samsung Galaxy S10|
|手机 | Samsung Galaxy S9|
|手机 | Samsung Galaxy S8|
|手机 | Samsung Galaxy S7 Edge|
|手机 | Samsung Galaxy S7|
|手机 | Samsung Galaxy S6|
|手机 | Nexus 4|
|手机 | Nexus 5|
|手机 | Nexus One|
|手机 | Nexus S|
|平板 | Nexus 7|

View File

@ -0,0 +1,19 @@
name: Docker-Android
tags:
- 实用工具
title: 在 Docker 中运行 Android
description: 在 Docker 中运行 Android
additionalProperties:
key: docker-android
name: Docker-Android
tags:
- Tool
shortDescZh: 在 Docker 中运行 Android
shortDescEn: Run Android in Docker
type: tool
crossVersionUpdate: true
limit: 0
recommend: 0
website: https://github.com/budtmo/docker-android
github: https://github.com/budtmo/docker-android
document: https://github.com/budtmo/docker-android

View File

@ -0,0 +1,6 @@
CONTAINER_NAME="docker-android"
EMULATOR_DEVICE="Samsung Galaxy S10"
IMAGE="budtmo/docker-android:latest"
PANEL_APP_PORT_HTTP=40288
RESTART_POLICY="always"
WEB_VNC="true"

View File

@ -0,0 +1,50 @@
additionalProperties:
formFields:
- default: "budtmo/docker-android:latest"
edit: true
envKey: IMAGE
labelEn: Container Image
labelZh: 容器镜像
required: true
type: text
- default: "always"
edit: true
envKey: RESTART_POLICY
labelEn: Restart Policy
labelZh: 重启策略
required: true
type: select
values:
- label: "Always"
value: "always"
- label: "Unless Stopped"
value: "unless-stopped"
- label: "No"
value: "no"
- default: "Samsung Galaxy S10"
edit: true
envKey: EMULATOR_DEVICE
labelEn: Emulator Device
labelZh: 模拟的设备
required: true
type: text
- default: "true"
edit: true
envKey: WEB_VNC
labelEn: Web VNC
labelZh: Web VNC
required: true
type: select
values:
- label: "True"
value: "true"
- label: "False"
value: "false"
- default: "40288"
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number

View File

@ -0,0 +1,20 @@
services:
docker-android:
image: ${IMAGE}
container_name: ${CONTAINER_NAME}
restart: ${RESTART_POLICY}
networks:
- 1panel-network
devices:
- /dev/kvm
environment:
- EMULATOR_DEVICE=${EMULATOR_DEVICE}
- WEB_VNC=${WEB_VNC}
ports:
- ${PANEL_APP_PORT_HTTP}:6080
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB