GithubHelp home page GithubHelp logo

osbreak / tars_web_and_node Goto Github PK

View Code? Open in Web Editor NEW

This project forked from freelw/tars_web_and_node

0.0 1.0 0.0 237.73 MB

转载 =》腾讯tars框架的dockerfile

Dockerfile 3.13% Shell 7.04% TSQL 89.28% JavaScript 0.56%

tars_web_and_node's Introduction

Tars容器部署方案

    这个方案将tars运维环境和tars部署环境的所有软件依赖打入docker镜像
    可以快速构建集群模式tars服务

依赖

  • docker环境

镜像简介

  • mysql:5.6 tars环境web界面数据存储
  • tars_web_develop tars web环境 + tars_node环境
  • tars_node tars_node环境

使用方法

  • cd start_scripts
  • 修改config中的DBIP为tars_web所在机器ip
  • 执行 ./start_mysql.sh
  • 执行 ./test_mysql.sh 在被询问密码时输入 123
  • 在test_mysql.sh 执行成功能够进入db后,退出db,然后执行 ./start_tars_web.sh
  • 不断执行docker logs tars_web,在log稳定后,访问http://${DBIP}:3000/ 看到tars运维界面则已经成功启动

  • 如果想部署分布式节点则在另一台机器上执行./start_tars_node.sh 注意此时的config文件中的 DBIP要与刚才的ip完全一致
  • 在tars web页面上扩容服务到tars_node所在的节点上

hello world

  • cd http_demo 切换到demo目录
  • ../start_scripts/tars_compile.sh HttpServer 使用tars_compile镜像去打包demo工程,生成HttpServer.tgz
  • 在平台的运维管理中发布服务
  • 在新生成的服务中上传HttpServer.tgz 并发布

tars_web_and_node's People

Contributors

freelw avatar

Watchers

James Cloos 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.