Docker-superset安装

1|0Docker-superset安装


https://superset.apache.org/index.html

https://hub.docker.com/r/apache/superset

1|1Start a superset instance on port 8032


$ docker run -d -p 8032:8088 --name superset apache/superset:latest

1|2Initialize a local Superset Instance


With your local superset container already running...

  1. Setup your local admin account

    $ docker exec -it superset superset fab create-admin \ --username admin \ --firstname Superset \ --lastname Admin \ --email admin@superset.com \ --password admin
  2. Migrate local DB to latest

    $ docker exec -it superset superset db upgrade
  3. Load Examples

    # 网络不好的情况下,这一步可以跳过 $ docker exec -it superset superset load_examples
  4. Setup roles

    $ docker exec -it superset superset init
  5. Login and take a look -- navigate to http://localhost:8083/login/ -- u/p: [admin/admin]

2|0How to extend this image


This docker image contains only the base Superset build, excluding database drivers that you will need to connect to your analytics DB (MySQL, Postgres, BigQuery, Snowflake, Redshift, etc.) This is deliberate as many of these drivers do not have Apache-compatible license, and we do not want to bloat the image with packages you do not need in your environment.

We do recommend that you write a simple docker file based on this image. Here's what it may look like:

FROM apache/superset # Switching to root to install the required packages USER root # Example: installing the MySQL driver to connect to the metadata database # if you prefer Postgres, you may want to use `psycopg2-binary` instead RUN pip install mysqlclient # Example: installing a driver to connect to Redshift # Find which driver you need based on the analytics database # you want to connect to here: # https://superset.apache.org/installation.html#database-dependencies RUN pip install sqlalchemy-redshift # Switching back to using the `superset` user USER superset

Find the recommended Python libraries for popular databases here: https://superset.apache.org/installation.html#database-dependencies


__EOF__

本文作者JessePinkMan
本文链接https://www.cnblogs.com/edclol/p/17282517.html
关于博主:评论和私信会在第一时间回复。或者直接私信我。
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
声援博主:如果您觉得文章对您有帮助,可以点击文章右下角推荐一下。您的鼓励是博主的最大动力!
posted @   edclol  阅读(263)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· Docker 太简单,K8s 太复杂?w7panel 让容器管理更轻松!
点击右上角即可分享
微信分享提示