运行:
docker run -d -p 8088:8088 -v /opt/docker/superset:/root/superset --name superset amancevice/superset
实例化
docker exec -it superset superset init
实例化数据库
docker exec -it superset superset db upgrade
#以root进入
docker exec --user root -it superset /bin/bash
添加用户(docker exec -it superset fabmanager create-admin –app superset)
export FLASK_APP=superset
flask fab create-admin
汉化
vi /usr/local/lib/python3.8/site-packages/superset/config.py
...
BABEL_DEFAULT_LOCALE=zh
pybabel compile -d /usr/local/lib/python3.8/site-packages/superset/translations
重启
docker stop superset
docker start superset
mysql持久华
SQLALCHEMY_DATABASE_URI ="mysql://root:root@xx.xx.xx.xx:3306/superset?charset=utf8"
阅读(1819) | 评论(0) | 转发(0) |