From 5ee7c141ab042ec3255368413f1a0c1c3920b9f1 Mon Sep 17 00:00:00 2001 From: okxlin Date: Mon, 26 Aug 2024 23:58:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=B7=BB=E5=8A=A0docker-osx=E5=88=B0?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/docker-osx/README.md | 5 ++ apps/docker-osx/data.yml | 19 +++++ apps/docker-osx/latest-online/.env.sample | 4 + apps/docker-osx/latest-online/data.yml | 31 ++++++++ .../latest-online/docker-compose.yml | 31 ++++++++ .../latest-online/scripts/uninstall.sh | 3 + apps/docker-osx/latest/.env.sample | 10 +++ apps/docker-osx/latest/data.yml | 75 ++++++++++++++++++ apps/docker-osx/latest/docker-compose.yml | 33 ++++++++ apps/docker-osx/latest/scripts/uninstall.sh | 3 + apps/docker-osx/logo.png | Bin 0 -> 4768 bytes 11 files changed, 214 insertions(+) create mode 100644 apps/docker-osx/README.md create mode 100644 apps/docker-osx/data.yml create mode 100644 apps/docker-osx/latest-online/.env.sample create mode 100644 apps/docker-osx/latest-online/data.yml create mode 100644 apps/docker-osx/latest-online/docker-compose.yml create mode 100644 apps/docker-osx/latest-online/scripts/uninstall.sh create mode 100644 apps/docker-osx/latest/.env.sample create mode 100644 apps/docker-osx/latest/data.yml create mode 100644 apps/docker-osx/latest/docker-compose.yml create mode 100644 apps/docker-osx/latest/scripts/uninstall.sh create mode 100644 apps/docker-osx/logo.png diff --git a/apps/docker-osx/README.md b/apps/docker-osx/README.md new file mode 100644 index 00000000..264be07b --- /dev/null +++ b/apps/docker-osx/README.md @@ -0,0 +1,5 @@ +# Docker-OSX + +在 Docker 中运行 Mac OS X,几乎拥有原生性能!支持 X11 转发!iMessage 安全研究!iPhone USB 可用!在 Docker 容器中运行 macOS! + +使用 Linux 和 Windows 在 macOS 上进行安全研究! \ No newline at end of file diff --git a/apps/docker-osx/data.yml b/apps/docker-osx/data.yml new file mode 100644 index 00000000..3f686ee1 --- /dev/null +++ b/apps/docker-osx/data.yml @@ -0,0 +1,19 @@ +name: Docker-OSX +tags: + - 实用工具 +title: 在 Docker 中运行 macOS +description: 在 Docker 中运行 macOS +additionalProperties: + key: docker-osx + name: Docker-OSX + tags: + - Tool + shortDescZh: 在 Docker 中运行 macOS + shortDescEn: Run macOS in Docker + type: tool + crossVersionUpdate: true + limit: 0 + recommend: 0 + website: https://github.com/sickcodes/Docker-OSX + github: https://github.com/sickcodes/Docker-OSX + document: https://github.com/sickcodes/Docker-OSX diff --git a/apps/docker-osx/latest-online/.env.sample b/apps/docker-osx/latest-online/.env.sample new file mode 100644 index 00000000..f2cc0dbd --- /dev/null +++ b/apps/docker-osx/latest-online/.env.sample @@ -0,0 +1,4 @@ +CONTAINER_NAME="docker-osx" +DISPLAY=":0.0" +PANEL_APP_PORT_SSH=40287 +RESTART_POLICY="unless-stopped" diff --git a/apps/docker-osx/latest-online/data.yml b/apps/docker-osx/latest-online/data.yml new file mode 100644 index 00000000..84420ed2 --- /dev/null +++ b/apps/docker-osx/latest-online/data.yml @@ -0,0 +1,31 @@ +additionalProperties: + formFields: + - default: ":0.0" + edit: true + envKey: DISPLAY + labelEn: Display + labelZh: 显示 + required: true + type: text + - default: "40287" + edit: true + envKey: PANEL_APP_PORT_SSH + labelEn: SSH Port + labelZh: SSH 端口 + required: true + rule: paramPort + type: number + - default: "unless-stopped" + 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" \ No newline at end of file diff --git a/apps/docker-osx/latest-online/docker-compose.yml b/apps/docker-osx/latest-online/docker-compose.yml new file mode 100644 index 00000000..30c37829 --- /dev/null +++ b/apps/docker-osx/latest-online/docker-compose.yml @@ -0,0 +1,31 @@ +services: + docker_osx: + image: "sickcodes/docker-osx:latest" + container_name: ${CONTAINER_NAME} + restart: ${RESTART_POLICY} + networks: + - 1panel-network + devices: + - /dev/kvm + environment: + - INTERNAL_SSH_PORT=10022 + - DISPLAY:=${DISPLAY:-:0.0} + ports: + - ${PANEL_APP_PORT_SSH}:10022 + volumes: + - /tmp/.X11-unix:/tmp/.X11-unix + - /dev:/dev + - /lib/modules:/lib/modules + - docker-osx_data:/home + cap_add: + - ALL + labels: + createdBy: "Apps" + +volumes: + docker-osx_data: + name: docker-osx_data + +networks: + 1panel-network: + external: true diff --git a/apps/docker-osx/latest-online/scripts/uninstall.sh b/apps/docker-osx/latest-online/scripts/uninstall.sh new file mode 100644 index 00000000..1a62d5e5 --- /dev/null +++ b/apps/docker-osx/latest-online/scripts/uninstall.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +docker-compose down --volumes \ No newline at end of file diff --git a/apps/docker-osx/latest/.env.sample b/apps/docker-osx/latest/.env.sample new file mode 100644 index 00000000..f811223e --- /dev/null +++ b/apps/docker-osx/latest/.env.sample @@ -0,0 +1,10 @@ +CONTAINER_NAME="docker-osx" +CPU_CORES=2 +DISK_SIZE="50G" +DISPLAY=":0.0" +IMAGE_FILE="" +PANEL_APP_PORT_SSH=40287 +PASSWORD="password" +RAM_SIZE=4 +RESTART_POLICY="unless-stopped" +USERNAME="docker" diff --git a/apps/docker-osx/latest/data.yml b/apps/docker-osx/latest/data.yml new file mode 100644 index 00000000..e35d19e5 --- /dev/null +++ b/apps/docker-osx/latest/data.yml @@ -0,0 +1,75 @@ +additionalProperties: + formFields: + - default: ":0.0" + edit: true + envKey: DISPLAY + labelEn: Display + labelZh: 显示 + required: true + type: text + - default: "40287" + edit: true + envKey: PANEL_APP_PORT_SSH + labelEn: SSH Port + labelZh: SSH 端口 + required: true + rule: paramPort + type: number + - default: "unless-stopped" + 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: "" + edit: true + envKey: IMAGE_FILE + labelEn: System Image File + labelZh: 系统镜像文件路径 + required: true + type: text + - default: "50G" + edit: true + envKey: DISK_SIZE + labelEn: Disk Size + labelZh: 磁盘大小 + required: true + type: text + - default: "4" + edit: true + envKey: RAM_SIZE + labelEn: RAM Size + labelZh: 内存大小 + required: true + type: number + - default: "2" + edit: true + envKey: CPU_CORES + labelEn: CPU Cores + labelZh: CPU 核心数 + required: true + type: number + - default: "docker" + edit: true + envKey: USERNAME + labelEn: Login Username + labelZh: 登录用户名 + required: true + type: text + - default: "password" + edit: true + envKey: PASSWORD + labelEn: Login Password + labelZh: 登录密码 + random: true + required: true + rule: paramComplexity + type: password \ No newline at end of file diff --git a/apps/docker-osx/latest/docker-compose.yml b/apps/docker-osx/latest/docker-compose.yml new file mode 100644 index 00000000..4a8616a3 --- /dev/null +++ b/apps/docker-osx/latest/docker-compose.yml @@ -0,0 +1,33 @@ +services: + docker_osx: + image: "sickcodes/docker-osx:latest" + container_name: ${CONTAINER_NAME} + restart: ${RESTART_POLICY} + networks: + - 1panel-network + devices: + - /dev/kvm + environment: + - INTERNAL_SSH_PORT=10022 + - DISPLAY:=${DISPLAY:-:0.0} + - NOPICKER=false + ports: + - ${PANEL_APP_PORT_SSH}:10022 + volumes: + - /tmp/.X11-unix:/tmp/.X11-unix + - /dev:/dev + - /lib/modules:/lib/modules + - docker-osx_data:/home + - ${IMAGE_FILE}:/image + cap_add: + - ALL + labels: + createdBy: "Apps" + +volumes: + docker-osx_data: + name: docker-osx_data + +networks: + 1panel-network: + external: true diff --git a/apps/docker-osx/latest/scripts/uninstall.sh b/apps/docker-osx/latest/scripts/uninstall.sh new file mode 100644 index 00000000..1a62d5e5 --- /dev/null +++ b/apps/docker-osx/latest/scripts/uninstall.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +docker-compose down --volumes \ No newline at end of file diff --git a/apps/docker-osx/logo.png b/apps/docker-osx/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..9cec3e62d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