安装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下载最好用

redash源码部署相关推荐

  1. MySQL 源码 需要 什么基础_MySQL 基础之 源码 部署

    源码部署 1. 需要先卸载一些软件 centos7 中需要先卸载 mariadb-libs 软件包 # rpm -e --nodeps mariadb-libs 2. 安装依赖包 yum -y ins ...

  2. SHOP++源码部署说明:

    2019独角兽企业重金招聘Python工程师标准>>> SHOP++源码部署说明: 1. 安装MyEclipse.Tomcat.MySQL/Oracle/SQL Server 2. ...

  3. Openfire4源码部署到eclipse中并编译

    Openfire4源码部署到eclipse中并编译 概述 Openfire是众所周知的基于xmpp协议的IM开源服务,所有操作,配置,监控,调试等以B/S方式进行展示,非常的方便管理员进行管理.它的强 ...

  4. mondrain配置mysql_mondrian 4.7 源码部署(示例代码)

    mondrian是一个开源的数据分析工程, 网上有关mondrian3.X的源码部署比较多, 有关4.X的部署较少. 目前官方推荐使用的时mondrian3.7的修订版, 可以再github上下载到最 ...

  5. 使用源码部署CITA(Ubuntu18.0.4 | VMware)

    使用源码部署CITA(Ubuntu18.0.4 | VMware) 先挑选一个地方准备用做下载位置(自主选择) 提前进入选择的目录 例: $ cd /home/liubai $ mkdir cita ...

  6. 人工智能研究中心快递柜——源码部署及分析综述

    2021SC@SDUSC 目录 项目简介 1.格子柜 2.审计柜 人员分工 源码部署 项目简介 1.格子柜 格子柜项目主要用于物品的存储和中转功能,项目分为微信小程序.安卓柜子端.web后台三个呈现形 ...

  7. 补单系统平台开发补单网站搭建源码部署(TB+PDD+验号功能)

    补单系统平台开发补单网站搭建源码部署(TB+PDD+验号功能) 现在的电商平台竞争可以说是非常的激烈,不管你是在淘宝.京东.拼多多.还是在阿里巴巴,这些平台的商品信息已经是非常的丰富了.你想单纯的靠传 ...

  8. 抖音seo优化排名系统,seo系统源码部署,关键词搜索排名

    抖音seo优化排名系统,seo系统源码部署,关键词搜索排名 思路: 利用各种挖词工具去找关键词:工具会根据关键词的各种数据,帮助我们更好的选择有潜力的精准关键词,在互联网业内,是通过行业关键词霸屏,技 ...

  9. 思维导图APP开发独立源码部署

    思维导图APP开发,思维导图APP开发独立源码部署.思维模式决策了为人处事的高效率,逻辑思维导图给很多人产生过益处,乃至可以说成取得成功的重要.逻辑思维导图APP不但能让用户线上开创观念导图,还可以把 ...

最新文章

  1. android webview 重定向 多次load问题,解决webview 第二次调用loadUrl页面不刷新的问题...
  2. XSD /xml 跟元素声明
  3. android 版本权限差别,android apk 的root 权限和USB adb 权限的区别
  4. 分布式实物实现方式_这是您完成实物产品设计任务的方式
  5. windows10访客_如何在Windows 10中创建访客帐户
  6. [翻译] 使用 Serverless 和 .NET Core 构建飞速发展的架构
  7. 在Makefile中创建文件夹指令
  8. __declspec(dllexport)、__declspec(dllimport)详解
  9. arcengine遍历属性表_小程序导出数据到excel表
  10. VMware Player 12.5.0 中文免费版
  11. access中布局为阶梯怎么设计_access模拟题1 -
  12. stcc52单片机时钟电路_有备无患,单片机面试问题集
  13. 如何建立你的思科CCNP实验室
  14. Onvif学习笔记(1)ONVIF Test Tool 的使用
  15. 如何实现手机注册验证
  16. 商空间的理解(Quotient space)
  17. idea创建Springboot项目时,出现Error:java: 读取C:\Users\HP\.m2\repository\com\vaadin\external\google\android-js
  18. 台式计算机怎么截屏,台式电脑怎么截屏
  19. 超级表格pk王者农药,今天你五杀了么?
  20. Android Camera模块(二)

热门文章

  1. 计算机二级考试2021考试时间黑龙江,黑龙江2021上半年计算机应用水平考试报名时间 哪天报名...
  2. 一字节内的位序(bit)大端小端分析
  3. [51nod1743]雪之国度
  4. wx小程序,前端公众号推送消息
  5. 关于android http字段X-requested-with的说明
  6. CF420 div2 821C Okabe and Boxes
  7. CF1733D2 Codeforces Round #821 (Div. 2) Zero-One (Hard Version)
  8. 微信小程序foreach遍历_详解微信小程序循环及嵌套循环
  9. 2022-01-04突然发现学习3D MAX也可以修身养性
  10. 麒麟子Cocos Creator 3D研究笔记三:角色换装(无动画)