Giter Site home page Giter Site logo

tars-docker's Introduction

TARS Docker 测试开发环境

测试环境 windows 11 x64

说明

基于openeuler系统,包含 DCache TarsGateway TarsBenchmark 测试开发环境

使用方式

直接启动docker

docker-compose -f "docker-compose.yml" up -d

源码编译

docker-compose -f "docker-compose.build.yml" up -d --build

官方Docker

docker-compose -f "docker-compose-tars.yml" up -d

容器介绍

image

首次开机需要些时间来编译安装DCache TarsGateway TarsBenchmark 项目,可以点击tars-develop容器查看进度

image

表示已经启动完成

tars-develop                 : 用来测试编译源码,持久化目录 develop
tars-mysql                   :  mysql 数据库,持久化目录 data\tars-mysql
tars-framework               : tars管理主机,持久化目录 data\tars-framework 
tars-framework-slave         :  tars备用主机,DCache 主机,持久化目录 data\tars-framework-slave 
tars-node                    : tars节点主机,持久化目录 data\tars-node 
tars-gateway-server          : TarsGateway api 网关主机,持久化目录 data\tars-gateway-server 
tars-benchmark-admin-server  : TarsBenchmark 压力测试管理主机,持久化目录 data\
tars-benchmark-node-server   : TarsBenchmark 压力测试节点主机,持久化目录 data\tars-benchmark-node-server

管理控制台

http://localhost:3000/ 首次登录需要设置管理员密码。 image

碰到的问题

打开后页面是空白的,解决方法重新编译web

cd develop\TarsWeb\client
npm install 
npm run build 如果出现'.' 不是内部或外部命令,也不是可运行的程序
可以直接运行 ./node_modules/.bin/vue-cli-service build
重新 docker-compose -f "docker-compose.build.yml" up -d --build 编译容器

进入容器:

docker exec -it tars-develop /bin/bash # 

创建项目:

cmake_http_server.sh App  Server  Servant
cmake_tars_server.sh App  Server  Servant

发布服务设置命令:

cmake .. -DTARS_WEB_HOST=${WEBHOST} -DTARS_TOKEN=${TARS_TOKEN} 

编译命令帮助

 make help 

tars-docker's People

Contributors

cyruszhou-cn avatar

Stargazers

 avatar

Watchers

 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.