redash源码部署

安装docker
uname -r
#系统内核版本为 3.10 以上。
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
sudo yum makecache fast
sudo yum -y install docker-ce

安装docker-compose
yum -y install epel-release
yum -y install python-pip
pip --version
pip install docker-compose

 

redash/bin内所有命令及manage.py chmod 777赋权

安装redash
docker-compose -f docker-compose.yml run --rm server create_db
docker-compose -f docker-compose.yml up --build

 

参考文章:

https://blog.csdn.net/weixin_42273374/article/details/82016922
https://blog.csdn.net/diantun00/article/details/80968604
https://discuss.redash.io/t/self-hosted-redash-5-2-from-source-centos-7/2675
https://redash.io/help/open-source/dev-guide/docker

常见问题:

npm ERR! Linux 3.10.0-693.el7.x86_64
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "bundle"
npm ERR! node v6.11.0
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! redash-client@6.0.0 bundle: `bin/bundle-extensions`
npm ERR! Exit status 126
npm ERR! 
npm ERR! Failed at the redash-client@6.0.0 bundle script 'bin/bundle-extensions'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the redash-client package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     bin/bundle-extensions
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs redash-client
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls redash-client
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /app/npm-debug.log
ERROR: Service 'server' failed to build: The command '/bin/sh -c npm install && npm run bundle && npm run build && rm -rf node_modules' returned a non-zero code: 1
[root@node191 redash-6.0.0]# npm run build


silly fetchPackageMetaData   path: '/tmp/npm-21831-145952d3/unpack-119a8025/package.json' }
26 silly rollbackFailedOptional Starting
27 silly rollbackFailedOptional Finishing
28 silly runTopLevelLifecycles Finishing
29 silly install printInstalled
30 verbose stack Error: ENOENT: no such file or directory, open '/tmp/npm-21831-145952d3/unpack-119a8025/package.json'
30 verbose stack     at Error (native)
31 verbose cwd /usr/bin
32 error Linux 3.10.0-693.el7.x86_64
33 error argv "/usr/bin/node" "/bin/npm" "install" "-g" "n"
34 error node v6.14.3
35 error npm  v3.10.10
36 error path /tmp/npm-21831-145952d3/unpack-119a8025/package.json
37 error code ENOENT
38 error errno -2
39 error syscall open
40 error enoent ENOENT: no such file or directory, open '/tmp/npm-21831-145952d3/unpack-119a8025/package.json'
41 error enoent ENOENT: no such file or directory, open '/tmp/npm-21831-145952d3/unpack-119a8025/package.json'
41 error enoent This is most likely not a problem with npm itself
41 error enoent and is related to npm not being able to find a file.

 

以上为docker版本问题,下载的是redash6.0.0包,docker-compose.yml 版本为3

redash-master下载最好用

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值