emakinafr/docker-proximis
Composer 安装命令:
composer require emakinafr/docker-proximis
包简介
Docker environment that meets Proximis requirements
README 文档
README
This repository allows the creation of a Docker environment that meets Proximis Omnichannel requirements.
Requirements
Installation
This process assumes that Docker Engine and Docker Compose are correctly installed. Otherwise, you should have a look to the installation documentation before proceeding further.
Add the package to development requirements
This Docker environment is available as a Composer package, and thus, can be retrieved like a PHP dependency. To add the environment as a development requirement, just type the following commands inside your project directory.
# Add the package to your development dependencies composer require --dev emakinafr/docker-proximis # Move several configuration files into your project directory composer exec docker-local-install
The second command will copy several files in your project so that you can customize the environment without modifying vendor files.
Nginx servers
A default Nginx configuration is installed at docker/local/nginx.conf. You are free to modify it as you want, to configure your own local domain(s) for instance.
By default, this configuration use the domain name to retrieve and use the correct configuration file for the CHANGE_CONFIG_NAME environment variable.
For example, if your domain app is proximis-demo-fr.localhost, the CHANGE_CONFIG_NAME value will be proximis-demo-fr.local.
Start the environment
make env-start
That's all, you're done! 🚀
Configuration of the Proximis project
This operation can be achieved through the PHP-FPM container.
make env-php
Once in the container, the official documentation explains all the remaining steps.
Environment variables
Multiple environment variables are described inside the docker/local/.env file.
DOCKER_PHP_IMAGE
Defines which image will be used for the php container. There are three possible values: proximis_php (default), proximis_php_blackfire or proximis_php_xdebug.
BLACKFIRE_*
Defines the credentials needed to locally profile your application. You'll find more details in the official documentation.
MYSQL_*
Defines the credentials needed to locally setup MySQL server. You'll find more details in the official documentation.
Makefile
A Makefile is present in the repository to facilitate the usage of the Docker environment. In order to use it, you have to be in its directory. But as this file is quite useful and since we are often using the same commands all day, it's possible that you have also a Makefile in your project.
To avoid having to move to execute the right file, you can include the Makefile located in your environment directory in the Makefile located inside your project directory.
───────┼───────────────────────────────────────────────────────────────────────
│ File: ~/www/myproject/Makefile
───────┼───────────────────────────────────────────────────────────────────────
1 │ # Project specific variables
2 │ DOCKER_PATH := ./vendor/emakinafr/docker-proximis
3 │ MAKEFILE_DIRECTORY := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
4 │
5 │ # Retrieve the Makefile used to manage the Docker environment
6 │ export COMPOSE_FILE := $(DOCKER_PATH)/docker-compose.yml
7 │ include $(DOCKER_PATH)/Makefile
8 │
9 │ [...]
With this structure, you can execute the environment targets like env-start or env-php directly from your project without adding the environment in your repository.
emakinafr/docker-proximis 适用场景与选型建议
emakinafr/docker-proximis 是一款 基于 Makefile 开发的 Composer 扩展包,目前已累计 18.38k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2019 年 10 月 17 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 emakinafr/docker-proximis 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 emakinafr/docker-proximis 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 18.38k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-10-17