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 2019/08/08 18:33:24 UTC

[GitHub] [incubator-superset] geraldcor opened a new pull request #8012: Superconductive/ecs updates

geraldcor opened a new pull request #8012: Superconductive/ecs updates
URL: https://github.com/apache/incubator-superset/pull/8012
 
 
   ### CATEGORY
   
   Choose one
   
   - [ ] Bug Fix
   - [ ] Enhancement (new features, refinement)
   - [ ] Refactor
   - [ ] Add tests
   - [X] Build / Development Environment
   - [ ] Documentation
   
   ### SUMMARY
   When running a Docker version of superset, the previously recommended way to initialize the db was to exec into the running container _locally_ while executing against production configuration and then manually executing the `flask fab admin-create` command. This was not a sustainable pattern and I wanted to create a better solution that behaved more like a CI deployment. 
   * This adds some python scripts that will execute the admin command
   * It looks for a secrets provider and falls back to env variables
   * Provides some examples of env setup and superset_config.py
   
   ### TEST PLAN
   * Setup a bare db to be your new environment (this usually means already having created users/schemas etc.)
   * Configure your docker.env file to have the connection details for this db
   * Build the container
   * You can run it locally (just to verify) or you can deploy it out to ECS or similar
   * The expected results are that all steps to initialize superset are executed in a hands off manner and you can log in when all is said and done.
   
   ### ADDITIONAL INFORMATION
   <!--- Check any relevant boxes with "x" -->
   <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
   - [ ] Has associated issue:
   - [ ] Changes UI
   - [ ] Requires DB Migration.
   - [ ] Confirm DB Migration upgrade and downgrade tested.
   - [ ] Introduces new feature or API
   - [ ] Removes existing feature or API
   
   ### REVIEWERS
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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