tarscloud / tarsdocker Goto Github PK
View Code? Open in Web Editor NEWTars Docker images
License: BSD 3-Clause "New" or "Revised" License
Tars Docker images
License: BSD 3-Clause "New" or "Revised" License
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' }
。。。
有碰到相同问题的么,确认网络没问题的情况下
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
哪位大哥知道怎么解决吗~?
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
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
在k8s安装时,使用了本地的磁盘路径。下面的问题会存在不:
docker 安装 2.4.0 会跳转到一个密码设置页,但2.4.3没有该页面,无法登录,已完全remove 2.4.0
如题,如果我想把node注册到多个中控该如何配置?这种需求为了防止一个中控(register)死掉,其他中控可以继续工作,防止单点故障。
求问,在单台机器部署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)
在tarsnode容器中运行./tars_install.sh 出现err提示:Cannot assign requested address
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!
ip和port没有替换彻底
比如:frameword/sql的ipport
web/webconfig.js的port
问题描述:
通过 tars 官方提供的镜像部署时,使用非 root 权限的用户名,仍然需要赋予该用户 root 权限;通过镜像内部的 tars-install.sh 脚本可以看出该问题
参考解决方案:
针对该情况,将 database 创建、用户名的授权步骤提前,提前到 tars-framework 镜像部署之前。
使用例子参考:
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;
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 依赖数据库的安装
请问framework文件夹里的dockerfile可以直接用来创建镜像吗,另外可以更新一下最新的dockerfile吗。
tars发布egg服务失败,tars支持egg框架吗
平台:mac
MySQL版本:mysql5.7
Tars镜像:tarscloud/tars
TarsNode镜像:tarscloud/tars-node
使用docker启动mysql,tars以及一个tars-node服务,在tars web管理页面部署了一个HelloGo服务,日志报错如下:
[alarm]activating, pid not exist
排查了一段时间,没能找到问题所在,麻烦大神能给点解决该问题的提示。
swoole已经停止对2.x的支持了,是否考虑把node环境升级到4.x呢
只能上机器看日志么?
日志:
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 declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.