Skip to content

easy-framework/easy-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

22 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

OS

Just one command to build all env for the easy-php

easy-env

How to use?

Please install the docker & npm & yarn first!

curl -sL https://raw.githubusercontent.com/easy-framework/easy-env/master/bin/init.sh | bash && source ~/.profile

Commands:

Usage:
    easy init/start/restart/stop/destroy/login

Example:
    easy init
    easy start
    easy restart
    easy stop
    easy destroy
    easy login <php/redis/nginx/mysql/mongo>

file structure

β”œβ”€β”€ README.md
β”œβ”€β”€ _config.yml
β”œβ”€β”€ bin
β”‚Β Β  β”œβ”€β”€ easy
β”‚Β Β  └── scripts
β”‚Β Β      β”œβ”€β”€ destroy.sh
β”‚Β Β      β”œβ”€β”€ init.sh
β”‚Β Β      β”œβ”€β”€ login.sh
β”‚Β Β      β”œβ”€β”€ restart.sh
β”‚Β Β      β”œβ”€β”€ start.sh
β”‚Β Β      └── stop.sh
β”œβ”€β”€ composer.json
β”œβ”€β”€ configs
β”‚Β Β  └── xhgui
β”‚Β Β      └── config.default.php
β”œβ”€β”€ docker-compose.yaml
β”œβ”€β”€ mongo
β”‚Β Β  └── Dockerfile
β”œβ”€β”€ mysql
β”‚Β Β  └── Dockerfile
β”œβ”€β”€ nginx
β”‚Β Β  β”œβ”€β”€ Dockerfile
β”‚Β Β  └── conf
β”‚Β Β      β”œβ”€β”€ conf.d
β”‚Β Β      └── nginx.conf
β”œβ”€β”€ php
β”‚Β Β  β”œβ”€β”€ Dockerfile
β”‚Β Β  β”œβ”€β”€ conf
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ conf.d
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ php-fpm.conf
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ php-fpm.d
β”‚Β Β  β”‚Β Β  └── php.ini
β”‚Β Β  └── extensions
β”‚Β Β      └── no-debug-non-zts-20170718
β”œβ”€β”€ redis
β”‚Β Β  └── Dockerfile
β”œβ”€β”€ runtime
β”‚Β Β  └── logs
β”‚Β Β      β”œβ”€β”€ mongo
β”‚Β Β      β”œβ”€β”€ nginx
β”‚Β Β      β”œβ”€β”€ php
β”‚Β Β      └── redis
└── www

Initialization process

Yeah, That's so cool. I enjoy the feeling when I only need to execute one command, As the same time, my project and development enviorment, etc. all is ready. What's more, the project is opened in the windows by the command. Meanwhile, xhgui is support.

docker images:

REPOSITORY         TAG                   IMAGE ID            CREATED             SIZE
mongo              3.6-jessie            ceee4d1620d4        4 days ago          368MB
php                7.2.7-fpm-alpine3.6   39b42adef50e        3 weeks ago         79.9MB
mysql              5.7                   66bc0f66b7af        3 weeks ago         372MB
redis              4-alpine              caaeda72bf8f        5 weeks ago         27.8MB
nginx              1.15-alpine           bc7fdec94612        6 weeks ago         18MB