loonpwn/laradock-cli
Composer 安装命令:
composer require loonpwn/laradock-cli
包简介
Laradock CLI is a tool for Laravel projects which automates the docker configuration setup for services, amongst other things.
README 文档
README
⚠️ This project is no longer maintined or actively developed. Feel free to fork it and play around if you're interested in the idea.
Laradock CLI is a tool for Laravel projects which automates the docker configuration setup for services, amongst other things.
It is built with Laravel Zero, on top of Laradock.
Features
Zero Configuration Docker
Laradock CLI reads your .env and makes smart assumptions to reduce a lot of boilerplate configuration. Some examples:
- Checks your driver settings and recommends which services are applicable
- Fixes User and Group IDs
- Checks for package.json before installing node in workspace
- Checks your CLI php version for which php version to use
- Modifies the apache2/nginx vhost site URL
- Sets up your MySQL service with a database
Clean project
Laradock tends to have a larger footprint for the amount of code you use in your repository, Laradock CLI aims to fix this my only including the files for the services you are using.
Clean .env
All docker environment variables have been moved to their own .env.laradock file. No longer have a 300 line .env file.
Easier Maintenance
Simple command to add or remove services, Laradock CLI takes care of all the heavy lifting of setting up files, updating configuration, etc.
Much More
This project is in early development and has lots of planned updates coming.
Installation
Phar
wget https://github.com/loonpwn/laradock-cli/releases/download/0.4.5/laradock chmod +x ./laradock
Recommended: sudo mv laradock /usr/bin/laradock
Usage
laradock installRun the setup tool- Check the
.env.laradockand the files within./env/dockerhas the correct configuration for your project. laradockBuild and run the containers and then mount to the workspace container.
Alpha Considerations
Currently the following services have been setup to be automatically configured. If you use a service outside this list you will need to manually set it up per Laradock documentation.
- Workspace
- PHP-FPM
- Nginx
- Apache2
- MySQL
- MariaDB
- PHPMyAdmin
- Postgres
- PGAdmin
Documentation
Laradock Commands
laradockThis will start docker withdocker-compose up -dand then mount you on the workspace container.laradock installAn interactive guide for setting up your project with Laradock CLI.laradock statusSee which services you're currently usinglaradock servicesList all Laradock serviceslaradock add <service>Add a specific service.laradock remove <service>Remove a specific service.laradock workspaceMounts yourself to the workspace container as Laradock user.laradock uninstallRemove the Laradock CLI files from your project.
DockerCompose Commands
laradock upRunsdocker-compose up -dwith the.env.laradockloaded in.laradock downRunsdocker-compose downwith the.env.laradockloaded in.laradock buildRunsdocker-compose buildwith the.env.laradockloaded in.laradock restartRunsdocker-compose restartwith the.env.laradockloaded in.laradock pushRunsdocker-compose pushwith the.env.laradockloaded in.laradock execRunsdocker-compose execwith the.env.laradockloaded in.laradock psRunsdocker-compose pswith the.env.laradockloaded in.
loonpwn/laradock-cli 适用场景与选型建议
loonpwn/laradock-cli 是一款 基于 Dockerfile 开发的 Composer 扩展包,目前已累计 18 次下载、GitHub Stars 达 16, 最近一次更新时间为 2019 年 04 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「framework」 「cli」 「console」 「laravel」 「Laravel Zero」 「laradock」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 loonpwn/laradock-cli 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 loonpwn/laradock-cli 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 loonpwn/laradock-cli 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This class provides you with an easy-to-use interface to progress bars.
PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.
A Laravel package to retrieve data from Google Search Console
Additional artisan commands for Laravel
A table generator class for the PHP CLI.
Slim starter / Slim skeleton package to boost your development with Slim framework
统计信息
- 总下载量: 18
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 17
- 点击次数: 16
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-04-16
