Docker部署Superset

Docker获取Superset镜像

[root@jdu4e00u53f7 data]# docker search superset
NAME                            DESCRIPTION                                     STARS               OFFICIAL            AUTOMATED
amancevice/superset             [0.23.3] Superset on Debian+Python3             109                                     [OK]
tylerfowler/superset            An extendable Docker image for Airbnb's Supe…   2
crobox/superset                 Superset + Clickhouse docker image              2                                       [OK]
dailyhotel/superset             Dockerized Superset                             1                                       [OK]
tyyzqmf/superset                根据amancevice/superset修改的镜像 主要解决su…              1                                       [OK]
sergekatzmann/superset-oracle   Docker container for Superset (Caravel) with…   1
maedamikio/superset                                                             1
huksley/superset                AirBnB Superset with MySQL driver               0                                       [OK]
muicoder/superset               Superset is a data exploration platform desi…   0                                       [OK]
zmhassan/openshift-superset                                                     0
tddv/superset                   Superset is come from airbub superset open s…   0                                       [OK]
peertopark/superset             Peer to Park Superset                           0
ganshanshan/superset_tddv       tddv superset                                   0                                       [OK]
ssskip/docker-superset          airbnb superset python27 docker image           0                                       [OK]
ganshanshan/superset1           superset1                                       0                                       [OK]
mav1/superset_docker            docker for superset                             0                                       [OK]
divvit/divvit-superset          Our build of superset                           0
cnero/superset                                                                  0
xjw263/superset-dev             superset dev. https://github.com/airbnb/supe…   0                                       [OK]
pocketmedia/superset            superset                                        0
gauseng/superset                                                                0
treexor/superset                                                                0
harisekhon/superset             Superset open source analytics UI by AirBNB     0                                       [OK]
xjw263/superset-base            superset-base                                   0                                       [OK]
therevoltingx/superset                                                          0

选择Stars最高的镜像

[root@jdu4e00u53f7 data]# docker pull amancevice/superset
Using default tag: latest
latest: Pulling from amancevice/superset
c73ab1c6897b: Pull complete
7ceb38988410: Pull complete
4916d54c6275: Pull complete
Digest: 
sha256:8679129500e04140855db7565182c83dc1bdc7fd8fac7eb2b304e10340c16aa1
Status: Downloaded newer image for amancevice/superset:latest

运行Superset容器
通过参数 --name superset 指定容器名称为superset,操作容器时可以通过name来操作。
如果需要将本地目录映射到容器中需要体检创建相应目录。比如将本地/data/superset目录映射到容器中的/home/superset目录。

[root@jdu4e00u53f7 data]# docker run --name superset -d -p 8088:8088 -v /data/superset:/home/superset amancevice/superset
2aeeec394b8ba4a3eb98d335078512f922784059b75b137bfa461bf20dbb9d16
[root@jdu4e00u53f7 data]# docker ps
CONTAINER ID        IMAGE                      COMMAND                  CREATED             STATUS                            PORTS                                                      NAMES
2aeeec394b8b        amancevice/superset        "superset runserver"     8 seconds ago       Up 7 seconds (health: starting)   0.0.0.0:8088->8088/tcp                                     superset

配置Superset

  • Superset初始化(docker exec -it superset superset init)
    根据提示创建管理员用户名和密码。
[root@jdu4e00u53f7 data]# docker exec -it superset superset-init
Username [admin]: admin
User first name [admin]: admin
User last name [user]: null
Email [[email protected]]: [email protected]
Password:
Repeat for confirmation:
Recognized Database Authentications.
Admin User makai created.
......

访问Superset
打开浏览器输入 http://ip:8088 使用之前创建和管理员用户名和密码登录即可。

WechatIMG107.jpeg

Superset添加ClickHouse数据源
SQLAlchemy URI中填写对应ClickHouse的地址即可。

clickhouse://default:password@ip:8123/default

你可能感兴趣的:(Docker部署Superset)