Code Monkey home page Code Monkey logo

d_builder's Introduction

#d_builder

======

快速构建dockerfile的工具

###GETTING START

cd your_code_dir

git clone [email protected]:LuoDi-Nate/d_builder.git
  • 将代码clone到本机
cd d_builder
  • 进入项目根路径
python builder.py -t war -u /data3/deploy_history/project_0217  -n mercurius-webapi-user -v 0.1 -p 8080:8080 -a M.K -m [email protected]
  • 执行命令 生成dockerfile

###CUSTOMIZE ARGS

-t type, u must choose one in ("war", "jar", "html")

需要被部署到docker容器中的项目类型:

  • war web项目, 利用tomcat做容器, 部署war包到tomcat中, 必须对外暴露至少一个端口
  • jar java项目, soa的服务节点, 不必要对外暴露端口
  • html js项目, 利用nginx部署, 必须对外暴露至少一个端口
-u url, path of project which need to deploy

绝对路径或者相对路径都可以;

-n server name, the unique identification for your project

需要部署的项目的唯一标识, 相同项目的server_name 务必相同;

-v version, version of this build

本次部署的版本信息;

-p port binding, the port u need expose, ${host_port}:${virtual_port}

split with "#" if u need to bind multiple relation
eg: 80:8080#443:8443

端口绑定关系, 前者是物理机的端口, 后者是docker容器中的端口;

-a author name, default "nobody"

发布者姓名

-m author email, default "[email protected]"

发布者邮箱

test

d_builder's People

Contributors

luodi-nate avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

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.