Giter Site home page Giter Site logo

tarsdocker's People

Contributors

bartdong avatar bigezno avatar franklee0817 avatar frankmclee avatar katharineozil avatar lbbniu avatar ruanshudong avatar ruizhaolee avatar tarscloudbot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tarsdocker's Issues

启动tars报错,然后一直停留在服务检测

docker run -d --net=host -e MYSQL_HOST='*****' -e MYSQL_ROOT_PASSWORD='****'
-eREBUILD=false -eINET=eth0 -eSLAVE=false
-v/data/tars:/data/tars
-v/etc/localtime:/etc/localtime
tarscloud/tars
中间有报错:
[ERROR] Process or Namespace tars-node-web not found

然后无限打印{ msg: 'pong' }
begin check server...
{ msg: 'pong' }
{ msg: 'pong' }
。。。

php 中少了 curl

日志:

runuser: root, webHost:http://172.25.0.3:3000, machine_ip:172.25.0.5, registryAddress:tcp -h 172.25.0.4 -p 17890:tcp -h 172.25.0.3 -p 17890

./get_tarsnode.sh: line 50: curl: command not found

Tars node download error: http://172.25.0.3:3000/files/tarsnode.tgz

install tarsnode failed, retry 3 seconds later...

A Issue for Dependent Libraries Collection

If you find any dependent libraries in code but never display its open source license in the License file, please comment on this issue, We will update the License file ASAP.
You also can pull request to the License file and remember to describe in detail ; )

Welcome to contribute!

建议:通过 tars 官方提供的镜像部署时,使用非 root 权限的用户名,仍然需要赋予该用户 root 权限

问题描述:
通过 tars 官方提供的镜像部署时,使用非 root 权限的用户名,仍然需要赋予该用户 root 权限;通过镜像内部的 tars-install.sh 脚本可以看出该问题

参考解决方案:
针对该情况,将 database 创建、用户名的授权步骤提前,提前到 tars-framework 镜像部署之前。

使用例子参考:

  1. 创建用户名 &数据库

create user tarsAdmin identified by 'Tars@2019';

create database db_tars;

create database tars_stat;

create database tars_property;

create database db_tars_web;

create database db_cache_web;

create database db_user_system;

create database db_base;

  1. 授权语句(需要以下数据库权限)

grant all on db_base.* to 'tarsAdmin'@'%' identified by 'Tars@2019' with grant option;

grant all on db_cache_web.* to 'tarsAdmin'@'%' identified by 'Tars@2019' with grant option;

grant all on db_tars.* to 'tarsAdmin'@'%' identified by 'Tars@2019' with grant option;

grant all on db_tars_web.* to 'tarsAdmin'@'%' identified by 'Tars@2019' with grant option;

grant all on db_user_system.* to 'tarsAdmin'@'%' identified by 'Tars@2019' with grant option;

grant all on tars_property.* to 'tarsAdmin'@'%‘' identified by 'Tars@2019' with grant option;

grant all on tars_stat.* to 'tarsAdmin'@'%' identified by 'Tars@2019' with grant option;

flush privileges;

建议:可以考虑支持非 root 权限的用户名,可以完成 tars 依赖数据库的安装

docker stop容器后 再start报错

docker start bc3474624019
Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: "/usr/local/tars/cpp/deploy/docker-init.sh": stat /usr/local/tars/cpp/deploy/docker-init.sh: no such file or directory": unknown
Error: failed to start containers: bc3474624019

哪位大哥知道怎么解决吗~?

docker部署过程中,无法访问db的问题

求问,在单台机器部署dokcer tars
mysql容器172.17.0.2
tars容器172.17.0.3

部署成功后,tars容器的tarsproperty服务,无法访问mysql容器的db,创建不了特性分区表,所以老是报系统错误

部署步骤如下:
docker pull mysql:5.6
docker pull tarsdocker/tars
docker pull tarsdocker/tarsnode

mysql部署命令如下:
mysql容器:docker run --name mysql -e MYSQL_ROOT_PASSWORD=tars123 -d -p 3306:3306 -v /data/mysql_data:/var/lib/mysql mysql:5.6

tars部署命令如下:
docker run -d -it --name tars --link mysql -env DBIP=172.16.0.2 --env DBPort=3306 --env DBUser=root --env DBPassword=tars123-p 3000:3000 -v /data/tars_data:/datatarscloud/tars:dev

报错情况如下:
2019-09-04 01:26:09|2635|ERROR|exception: [TC_Mysql::connect]: mysql_real_connect: Access denied for user 'tars'@'172.17.0.3' (using password: YES)

mac docker tars部署服务报错:pid not exist

平台:mac
MySQL版本:mysql5.7
Tars镜像:tarscloud/tars
TarsNode镜像:tarscloud/tars-node

使用docker启动mysql,tars以及一个tars-node服务,在tars web管理页面部署了一个HelloGo服务,日志报错如下:

[alarm]activating, pid not exist

排查了一段时间,没能找到问题所在,麻烦大神能给点解决该问题的提示。

[commands error]docker image should be tarsdocker/tars

run this command:
docker run -d -it --name=tars --link mysql -e MOUNT_DATA=true -e DBIP=${your_mysql_ip} -e DBPort=3306 -e DBUser=root -e DBPassword=root@appinside -p 3000:3000 -v /data:/data tars

error:
Unable to find image 'tars:latest' locally

docker image should be tarsdocker/tars
image

I had run this command correctly:
docker run -d -it --name=tars --link mysql -e MOUNT_DATA=true -e DBIP=172.17.0.2 -e DBPort=3306 -e DBUser=root -e DBPassword=root@appinside -p 3000:3000 -v /data:/data tarsdocker/tars

dockerfile问题

请问framework文件夹里的dockerfile可以直接用来创建镜像吗,另外可以更新一下最新的dockerfile吗。

swoole版本问题

swoole已经停止对2.x的支持了,是否考虑把node环境升级到4.x呢

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.