{"id":26307445,"url":"https://github.com/iniself/easy_install","last_synced_at":"2026-02-21T01:32:14.143Z","repository":{"id":268970834,"uuid":"906022199","full_name":"iniself/easy_install","owner":"iniself","description":"This script will install docker on your system and will fetch the required containers, setup bench and apps","archived":false,"fork":false,"pushed_at":"2025-04-22T02:35:13.000Z","size":69,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-12T23:34:56.079Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iniself.png","metadata":{"files":{"readme":"README-ZH.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-12-20T02:07:04.000Z","updated_at":"2025-04-22T02:35:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"5c1b9c8f-3f97-4ae2-8899-7fd7266dbca5","html_url":"https://github.com/iniself/easy_install","commit_stats":null,"previous_names":["iniself/easy_install"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/iniself/easy_install","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iniself%2Feasy_install","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iniself%2Feasy_install/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iniself%2Feasy_install/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iniself%2Feasy_install/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iniself","download_url":"https://codeload.github.com/iniself/easy_install/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iniself%2Feasy_install/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29670125,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T00:11:43.526Z","status":"ssl_error","status_checked_at":"2026-02-20T23:52:33.807Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-15T10:14:49.255Z","updated_at":"2026-02-21T01:32:14.120Z","avatar_url":"https://github.com/iniself.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EASY INSTALL\n\n[easy-install.py](easy-install.py) 是一键安装 frappe 的脚本文件。中文文档不会详细介绍该脚本的用途，只会介绍最快上手的路径，更详细内容请查看 [英文文档](README.md)。\n\n***\n\n#### 几个问题\n\n先集中回答几个有关 `deploy` 问题：\n\n1. 本脚本已最少依赖 github 了，但是 gitee 有个问题没法解决。所以如果是 github 连接问题：进入脚本目录（默认是 `easy_install`）然后 `git clone -b metaer https://gitee.com/iniself/frappe_docker.git`\n2. `deploy` 用到的 compose 文件大量使用了腾讯镜像，但这些镜像目前属于私有镜像。所以查找 `overrides` 目录下有 `tencent` 的镜像并修改成 dockerhub 镜像。\n3. `deploy`成功后访问网站出错。该脚本默认暴露的是 `8080`。假设站点是`dev.localhost`，那么访问的地址应该是`dev.localhost:8080`\n4. `deploy`默认会给站点安装`drive`，`dataq`，`insights`。但目前`insights`会影响站点初始化，所以请带 `--app drive,dataq` 进行部署。\n```sh\n$ python3 easy-install.py deploy \\\n    --image your_custom_image \\\n    --version latest\\   \n    --project your_project\\\n    --email your_email\\ \n    --sitename your_site\\ \n    --app drive\\\n    --app dataq\n```\n站点初始化成功后，可以再进入 backend 容器进行 `insights` 的安装：`bench --site your_site install-app insights`\n\n***\n\n#### 前置要求\n1. 首先你的系统需要有最新的 Python 环境。\n2. `docker`在系统是 linux 时也不是必须的，因为脚本会自动安装 docker。当系统是 `windows` 或则 `macos` 时，则需要提前准备好 docker\n3. `git` 最好有\n\n#### 获取脚本\n1. `git clone` 或则下载 zip\n3. 进入 clone 目录，或则解压 zip 后的目录，然后继续以下内容\n\n#### 脚本功能\n\n该脚本有生产环境部署、开发环境部署、构建镜像、更新等功能。可以通过下面命令获得帮助：\n\n```sh\n$ python3 easy-install.py --help\n```\n\n通过下面命令可以获得某个子命令的帮助\n\n```sh\n$ python3 easy-install.py --deploy --help\n```\n\n**生产环境部署**\n\n```sh\n$ python3 easy-install.py deploy\\ \n    --image your_custom_image\\ \n    --version latest\\   \n    --project your_project\\ \n    --email your_email\\ \n    --sitename your_site \\\n    --no-ssl\n```\n\n该脚本会部署一个不使用前端代理的生产环境，如果需要使用 `ctraefik` 作为代理，并且自动获取 https 证书的环境，则如下：\n\n```sh\n$ python3 easy-install.py deploy \\\n    --image your_custom_image\\\n    --version latest\\   \n    --project your_project\\ \n    --email your_email\\ \n    --sitename your_site \n```\n\n如果希望部署后同时安装 app 到站点上，则如下的传入会安装 `drive` 和 `insights`，否则默认安装：`drive`, `insights`, `dataq`\n\n```sh\n$ python3 easy-install.py deploy \\\n    --image your_custom_image \\\n    --version latest\\   \n    --project your_project\\\n    --email your_email\\ \n    --sitename your_site\\ \n    --app drive\\\n    --app insights\n```\n\n**镜像构建**\n\n```sh\n$ python3 easy-install.py build \\\n\t--tag=your_custom_image:latest\n```\n\n以上会默认构建有 `drive`, `dataq`，`insights` 这三个 app 的镜像，如果需要定义自己 app 的镜像，请自行修改 `frappe_docker/development/apps-example.json`，或则指定自己的 apps.json，并传入该文件路径，如下：\n\n```sh\n$ python3 easy-install.py build \\\n\t--tag=your_custom_image:latest \\\n\t--apps-json=apps.json \\\n```\n\n\n**镜像构建并发布**\n\n不建议这样做，最佳实践还是 `镜像构建 -\u003e 推送镜像 -\u003e 生产环境部署` 分开进行，当然如果实在要一步完成，则如下，详细内容见 [英文文档](README.md)\n\n```sh\n$ python3 easy-install.py build \\\n\t--tag=your_custom_image:latest \\\n\t--push \\\n\t--image=your_custom_image \\\n\t--version=latest \\\n\t--deploy \\\n\t--project=your_project \\\n\t--email=your_email \\\n\t--apps-json=apps.json \\\n\t--app=wiki\n```\n\n**项目更新**\n\n中文略，见 [英文文档](README.md)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finiself%2Feasy_install","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finiself%2Feasy_install","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finiself%2Feasy_install/lists"}