docker-030-develop | Development Environment
⁄(⁄ ⁄•⁄ω⁄•⁄ ⁄)⁄
这个是用来开发的poi?!
因为是 whalepoi~,所以docker了poi~
由于php 环境限定为 5.5.9 ( ̄⊿ ̄),docker-hub 上已经没了5.6 以下php版本;
出处 GitHub30/php,dokcerfile是网上找了一圈 改的文件
出处 vessel,真是太棒了。
初始环境如下:
- busybox:latest
- nginx:stable-alpine
- php:5.5.9-fpm-alpine
- mysql:5.5
- phpmyadmin
- redis:alpine
- elasticsearch:alpine
具体服务配置见 docker-compose.yml
Installation
The preferred way to install this extension is through composer.
composer 中国全量镜像: https://www.phpcomposer.com/
Either run
composer require --dev codenauhc/docker-030 "dev-master"
or add
"codenauhc/docker-030": "dev-master"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
php vendor/bin/poi docker:install
Common Commands
控制台目前只有一个命令,只做了吧docker文件复制到项目目录;
基于 Symfony Console 和 Symfony FileSystem
- poi docker:install
TODO
- .env
- xdebug
- 把 poi 作为控制台命令放到项目目录下
- 自动生成nginx 配置
- 自动生成泛域名开发证书
- migration
- seed
- Test on Windows
Supported Systems
require :
-
Docker version 1.13.1
-
docker-compose version 1.16.1
Windows requires running Hyper-V. Using Git Bash (MINGW64) and WSL are supported. Native
Systems | 途径 | 备注 |
---|---|---|
Mac | Install Docker on Mac | |
Windows | Install Docker on Windows | |
Linux | Install Docker on CentOS |