1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
Ubuntu18.04安装Redash数据可视化应用(docker方式) #参考官方文档 #https://redash.io/help/open-source/dev-guide/docker #-------安装nodejs-------- #https://www.gavindong.com/2677.html #-------安装docker和docker-compose------------ #https://www.gavindong.com/2673.html #https://docs.docker.com/install/linux/docker-ce/ubuntu/ #docker的所有文件都在/var/lib/docker下 sudo apt-get remove docker docker-engine docker.io sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo apt-key fingerprint 0EBFCD88 sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable" sudo apt-get update sudo apt-get install docker-ce docker version sudo apt-get install docker-compose #---------安装redash--------- cd dev pwd git clone https://github.com/getredash/redash.git cd redash #此步骤是pull docker images,需要一些时间,耐心等待,如果失败反复执行 docker-compose up npm install Create tables docker-compose run --rm server create_db Create database for tests docker-compose run --rm postgres psql -h postgres -U postgres -c "create database tests" npm run build npm run start docker-compose restart worker # Redash时前后端分离的项目 # Redash后端 is available at http://localhost:5000/ # Redash前端 http://localhost:8080,所有请求会转发到Redash后端 |
本文作者: GavinDong
版权属于: GavinDong博客
文章链接: https://gavindong.com/2678.html
如果使用过程中遇到问题,可 **点击此处** 交流沟通。
版权所有,转载时必须以链接形式注明作者和原始出处及本声明。