这部分非常重要,不然后面用docker部署redash时会是龟速,让耐心直接爆炸
1、更换APT国内源:
sudo sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list
2、更新源:
sudo apt update &&sudo apt upgrade -y
3、安装Docker和Docker-Compose
sudo apt install docker docker-compose -y
4、更换Docker国内源:
cat > /etc/docker/daemon.json << EOF
{
"registry-mirrors": ["https://b9pmyelo.mirror.aliyuncs.com"]
}
EOF
5、重启Docker服务:
service docker restart
6、安装npm:
sudo apt install npm -y
7、更换npm国内源:
npm config set registry https://registry.npm.taobao.org
8、升级最新Nodejs版本:
npm install n -g &&sudo n stable
1、下载源码:
git clone https://github.com/dazdata/redash.git && cd redash
2、Docker安装
docker-compose up -d
1、前端npm依赖包安装
npm install
2、前端打包
npm run build
还没写完