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 00000000..9cec3e62 Binary files /dev/null and b/apps/docker-osx/logo.png differ