npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

laravel-dockerize-scaffold

v1.3.8

Published

Use this scaffold to dockerize all kind of Laravel Project

Downloads

12

Readme

脚手架生成流程

定义构建镜像过程的配置

  1. 提示用户选择php版本,目前支持php71和php74
  2. 展示当前php基础镜像已安装的php扩展
  3. 提示用户输入需要额外的扩展, 以空格分隔开
    1. 需要通过PHP_EXT去安装的
    2. 需要通过pecl安装的
  4. 校验用户输入的扩展名称
  5. 提示用户指定生成文件夹路径,默认当前目录
  6. 提示用户是否使用了GOOGLE_CREDENTIALS配置文件
  7. 通过build_args.env.example 生成build_args.env
  8. 复制Dockerfile
  9. 复制Makefile
  10. 复制.dockerignore文件
  11. 复制docker文件夹

定义部署的过程用于生成部署数据

  1. 询问用户是否用于本地开发
  2. 若是本地环境则询问用户指定laravel项目所在的路径,默认当前路径
  3. 询问用户获取项目名(需要定一个格式)
  4. 分配项目的端口号
  5. 定义php日志路径
  6. 定义nginx日志路径
  7. 输出start.env文件到当前目录,便于启动docker-compose
  8. 复制启动脚本命令

本地调试

  1. 运行命令
npx egm-laravel-scaffold-init -h

命令参数说明

egm-laravel-scaffold-init

  -pv, --phpversion <phpversion>                          提供php的版本
  -pe, --phpexts <phpexts>                                提供需要安装的php扩展, 以,分隔
  -ppe, --phppeclexts <phppeclexts>                       提供需要通过pecl安装的php扩展, 以,分隔
  -gc, --googlecredential <googlecredential>              是否需要使用google credential, true or false
  -od, --outputdir <outputdir>                            提供输出文件夹目录
  -r, --registry <registry>                               提供镜像仓库地址
  -l, --localdev <localdev>                               是否本地开发
  -lpp, --laravelprojectpath <laravelprojectpath>         提供laravel项目路径
  -lplp, --laravelprojectlogpath <laravelprojectlogpath>  提供项目运行日志路径
  -plp, --phplogpath <phplogpath>                         提供php日志路径
  -nlp, --nginxlogpath <nginxlogpath>                     提供nginx日志路径
  -wsp, --webserverport <webserverport>                   提供webserver的端口

egm-laravel-scaffold-running-prepare

  -w, --workDir <workDir>                             工作目录 (default: "./output/")
  -cit, --cronImgTag <cronImgTag>                     定时任务镜像版本
  -fit, --fpmImgTag <fpmImgTag>                       fpm镜像版本
  -wit, --workerImgTag <workerImgTag>                 worker镜像版本
  -wsit, --webServerImgTag <webServerImgTag>          webserver镜像版本
  -wsp, --webServerPort <webServerPort>               webserver端口
  -cpcf, --customPhpConfigFile <customPhpConfigFile>  是否使用自定义的php配置文件
  -envf, --envFile <customPhpConfigFile>              是否使用自定义的env文件