Feature Request - ee doctor, ee service list and download images on need basis
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 领域
- cli, devops, infrastructure, performance
调研方向
首先查看现有的 ee CLI 命令结构,以及 EasyEngine 如何定义 Docker 镜像和全局服务。将请求拆分为 doctor、服务列表和按需镜像这几种行为,然后为每个命令定义完成标准,并根据列出的 WordPress 使用场景和磁盘空间限制对其进行验证。
由索引模型根据 Issue 内容生成。
描述
System Information
- ee cli info
[email protected]:~# ee cli info
+-------------------+--------------------------------------------------------------------------+
| OS | Linux 4.15.0-1035-aws #37-Ubuntu SMP Mon Mar 18 16:15:14 UTC 2019 x86_64 |
| Shell | /bin/bash |
| PHP binary | /usr/bin/php7.2 |
| PHP version | 7.2.17-1+ubuntu18.04.1+deb.sury.org+3 |
| php.ini used | /etc/php/7.2/cli/php.ini |
| EE root dir | phar://ee.phar |
| EE vendor dir | phar://ee.phar/vendor |
| EE phar path | /root |
| EE packages dir | |
| EE global config | /opt/easyengine/config/config.yml |
| EE project config | |
| EE version | 4.0.12 |
+-------------------+--------------------------------------------------------------------------+
- lsb_release -a
[email protected]:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic
- docker version
[email protected]:~# docker version
Client:
Version: 18.09.5
API version: 1.39
Go version: go1.10.8
Git commit: e8ff056
Built: Thu Apr 11 04:43:57 2019
OS/Arch: linux/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 18.09.5
API version: 1.39 (minimum version 1.12)
Go version: go1.10.8
Git commit: e8ff056
Built: Thu Apr 11 04:10:53 2019
OS/Arch: linux/amd64
Experimental: false
- docker-compose version
[email protected]:~# docker-compose version
docker-compose version 1.24.0, build 0aa59064
docker-py version: 3.7.2
CPython version: 3.6.8
OpenSSL version: OpenSSL 1.1.0j 20 Nov 2018
Hi Team, I recently setup EE4 fresh server for one of my personal production site. You guys did excellent job for EE4. Congratualtions :) .
From DevOps point I wanted to add some feature request to EE4. Insteading of creating different issues adding those into single one.
Feature Request - 1 ee doctor
Purpose:
Verify all the docker images are available or not. If not download them.
Use Case:
Because of disk space issue I accidenlty deleted on some of the directory from /var/lib/docker/overlay2/ and so containers refused to start. The solution was to remove all docker images and download them again. I deleted all the images, but now I am not sure which docker images are required for my site. So I created example.com wp site which downloaded all images again. Once all the docker images are downloaded, I deleted the example.com site :) . For this perticular scenario I think ee doctor command is useful, which will verify all the docker configuration and iamges is correct or not. If not delete them.
Feature Request - 2 ee service list
Purpose:
List down all the global services available with EE.
Use Case:
I failed to find list of available / running global EE service on my server. I think ee service list command is useful to get the list of all services.
Feature Request - 3 Download only required images.
Use case:
My Server had only 8 GB of disk space and faced disk space issue on server. After anaylysing I found out that EE download some docker images, that I am not using on the server at all. Here is the list of images that EE dowloaded on my server:
REPOSITORY TAG IMAGE ID CREATED SIZE
easyengine/php v4.0.2 03e2a331d79c 6 weeks ago 917MB
easyengine/nginx-proxy v4.0.2 e5ba188b1407 7 weeks ago 154MB
easyengine/newrelic-daemon v4.0.0 1682b195a70f 2 months ago 15.9MB
easyengine/php7.0 v4.0.0 f2c622b0aa0d 3 months ago 876MB
easyengine/php7.3 v4.0.0 bdb352d67984 3 months ago 775MB
easyengine/cron v4.0.0 e86e4f2e4e9a 5 months ago 8.83MB
easyengine/postfix v4.0.0 d87174c45b75 5 months ago 475MB
easyengine/mailhog v4.0.0 789b9de98747 5 months ago 19.3MB
easyengine/mariadb v4.0.0 e45653bfaab7 5 months ago 362MB
easyengine/redis v4.0.0 5c605601251d 5 months ago 94.9MB
easyengine/nginx v4.0.0 27f672415832 5 months ago 74.4MB
easyengine/php5.6 v4.0.0 47945e164e8b 5 months ago 841MB
I don't use mailhog, newrelic, php5.6, redis on my server. My WordPress site is just simple website without any caching. I think EE should download images based on the requirement only instead of downloading all the images..
- 主要语言
- PHP
- 星标
- 2.2k
- 派生
- 422
- 平均合并
- 2 小时 15 分钟
- 30 天内合并 PR
- 9
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
EasyEngine/easyengine 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 70/100
EasyEngine/easyengine#1427 ·
维护者通常 1 天内回复
-
ee cli update reports "downloaded PHAR is broken" when the real cause is a missing PHP sqlite driver未关闭
难度 3/5 半天 新手友好度 55/100
EasyEngine/easyengine#1949 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 25/100
EasyEngine/easyengine#1893 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 38/100
EasyEngine/easyengine#1888 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 25/100
EasyEngine/easyengine#1875 · 1 条评论 ·
维护者通常 1 天内回复
查看 EasyEngine/easyengine 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
Icinga/icingaweb2-module-director#3188 ·
维护者通常 4 天内回复
-
bug ui
难度 2/5 1-3 小时 新手友好度 62/100
hashtopolis/server#2614 ·
维护者通常 1 天内回复
-
sync-en
难度 1/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
sync-en
难度 1/5 1 小时以内 新手友好度 76/100
维护者通常 1 天内回复
-
Перевод устарел
难度 1/5 1 小时以内 新手友好度 62/100