Giter VIP home page Giter VIP logo

compose's Introduction

基于 Laradock 实现的本地快速部署环境、一键创建各版本镜像的脚本

使用方法:

本地开发:

Step1: git clone xxxx项目,到你的PHP项目中

Step2: python compose.py init 初始化配置

Step3: vi ./laradock/.env 增加你希望安装的扩展(目前仅支持 workspace ,php-fpm的扩展)

Step4: python compose.py start 运行(访问Http://yourhost)

打包镜像:

Step1: python compose.py packup

Step2: docker tag repository:xxx

Step3: docker push your images to your repository

为什么要做这个脚本?

本地使用 laradock 开发,能轻松的利用 docker 特性,但是,想将代码打包到 laradock 构建的 image 中,就很麻烦了。

尤其是当你本地有个环境,又要打包个仿真环境,又要打包个线上环境。如果没有一个脚本来处理,会很麻烦的。

并且,每个项目都需要进行一个配置,也很不方便。

这个脚本可以让你的项目,快速的打包到 docker 镜像中。

当然,目前仅支持 ngixn + php-fpm + redis。

对于 docker 还不很熟悉,所以数据库的创建,最好还是不要放在 docker 中:),你本地的开发,可以尽情的使用。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.