You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2022/04/17 07:43:24 UTC

[GitHub] [superset] NoneFire commented on issue #10087: Question on Readonly DB error

NoneFire commented on issue #10087:
URL: https://github.com/apache/superset/issues/10087#issuecomment-1100824413

   > 
   
   Thanks,it's a really good and effective method.
   I think the reason of this question is the supert user and root user have different file permissions.
   
   It's my dockerfile,for you reference:
   
   `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
   RUN pip install PyMySQL
   
   # Switching back to using the `superset` user
   USER superset
   
   # 初始化
   # Create an admin user
   # RUN fabmanager create-admin --app superset
   RUN superset fab create-admin xxxxx
   
   # Initialize the database
   RUN superset db upgrade
   
   # Load some data to play with
   RUN superset load_examples
   
   # Create default roles and permissions
   RUN superset init`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org