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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to