prooxxy/gleipnir
Composer 安装命令:
composer require prooxxy/gleipnir
包简介
My personal plug and play docker-composer wrapper for Magento 2
README 文档
README
Magento 2 environment manager for local setup
NOTE: This is my personal project. I try but will not promise that I'll follow semver nor that it receives updates. This project should therefor serve as an example of how one could manage local environments when dealing with multiple projects.
Installation
composer require prooxxy/gleipnir:1.* --dev
chmod +x bin/gleipnir
mkdir -p .gleipnir/config/
touch .gleipnir/config/.env.gleipnir
Use
Once installed the executable is available at bin/gleipnir
This file replaces bin/magento and docker-compose henceforth.
Run bin/gleipnir help to list usable commands
gleipnir is used to invoke commands but is also the entrypoint for magento as mentioned.
Any arguments not recognised by gleipnir will be passed to magento.
Therefor arguments such as start, stop, restart will be interpreted by gleipnir whereas setup:upgrade, cache:flush etc will be passed into the php container to bin/magento.
Please see config/.env.gleipnir for an example configuration.
Configuration
The config lives inside config/.env.gleipnir
It can be overriden through .gleipnir/config/.env.gleipnir by simply adding modified key=value pairs
The PROJECT_NAME is the unique identifier for projects. This must be unique for every project you start
TLD is top level domain and can be changed to whatever you want
SERVICES contains a list of enabled services. removing services from this list disables them. (docker-composer depends_on constraints still rule)
MULTISITE contains a list of site entries.
A site entry contains 3 parts. <domain_name>:<run_code>:<run_scope>
The following example will result in the creation of a site with the following configuration
domain + TLD = dummy.test
MAGE_RUN_CODE = default
MAGE_RUN_TYPE = website
PROJECT_NAME='gleipnir'
TLD=".test"
SERVICES=('proxy' 'database' 'php' 'rabbitmq' 'redis' 'mailhog' 'elasticsearch')
MULTISITE=("dummy:default:website")
Override docker-compose.yml
One may override the docker-compose.dist.yml if needed. Follow the steps below to do so
- In
.gleipnir/config/add new file calleddocker-compose.dist.yml - Add overrides as one normal when adding additional files to docker-compose
Varnish
Varnish can be toggled with the USE_VARNISH flag.
The proxy service is responsible for TLS termination and passing data to varnish.
When varnish is not used it will instead pass data directly to the httpd service that normally receives its data from varnish.
Override configuration files
TODO
Features
- Set dependency versions in config
- Multisite support
- TLS support
- toggleable Varnish
- support for additional docker-compose files
- rabbitmq installed
- mail interception with mailhog
TODOs
- Add support for mysql 8
- Add support for composer versions
prooxxy/gleipnir 适用场景与选型建议
prooxxy/gleipnir 是一款 基于 Shell 开发的 Composer 扩展包,目前已累计 5.15k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 03 月 19 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「docker」 「magento2」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 prooxxy/gleipnir 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 prooxxy/gleipnir 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 prooxxy/gleipnir 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Russian Language Pack for Magento 2
DPD Magento2 Shipping extension
Docker based testing environment for shopware projects.
The Laragoon utility package
Docker compose for Robo Task Runner
Deployment command
统计信息
- 总下载量: 5.15k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-03-19