docker部署superset
docker run 方式
# 生成SUPERSET_SECRET_KEY
openssl rand -base64 42
# docker 拉取镜像并运行
docker run -d \
-p 8088:8088 \
-e "SUPERSET_SECRET_KEY=BPmoejU/4LSapJJbF3VLKBj3wztI7Ti4vXul4RqBmrrZ0sD5l16iQBJ7" \
--name superset \
apache/superset
# With your local superset container already running...
# Setup your local admin account
docker exec -it superset superset fab create-admin \
--username admin \
--firstname Superset \
--lastname Admin \
--email [email protected] \
--password admin
# Migrate local DB to latest
docker exec -it superset superset db upgrade
# Load Examples
docker exec -it superset superset load_examples
# Setup roles
docker exec -it superset superset init
#Login and take a look -- navigate to http://localhost:8080/login/ -- u/p: [admin/admin]
辅助代码
进入docker初始化数据库,不需要初始化示例数据库的可以删除
# 带有官方示例数据
docker exec -it superset superset db upgrade && \
docker exec -it superset superset load_examples && \ #可以删除此句
docker exec -it superset superset init
# 不带有官方示例数据
docker exec -it superset superset db upgrade && \
docker exec -it superset superset load_examples && \
docker exec -it superset superset init
附加功能支持连接clickhouse数据库
License:
CC BY 4.0