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后端