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 2021/06/21 16:38:07 UTC

[GitHub] [superset] adhip94 opened a new issue #15286: Configuring superset on a production version of superset in docker

adhip94 opened a new issue #15286:
URL: https://github.com/apache/superset/issues/15286


   A clear and concise description of what the bug is.
   
   ### Expected results
   The ability to add a superset configuration on a production version of superset running on docker.
   
   ### Actual results
   Unable to configure a superset configuration on docker.
   
   #### Screenshots
   
   #### How to reproduce the bug
   
   ### Environment
   
   (please complete the following information):
   
   - superset version: `1.1.0`
   - python version: `3.8.5`
   - node.js version: `10.19.0`
   
   ### Checklist
   
   Make sure to follow these steps before submitting your issue - thank you!
   
   - [ ] I have checked the superset logs for python stacktraces and included it here as text if there are any.
   - [ ] I have reproduced the issue with at least the latest released version of superset.
   - [ ] I have checked the issue tracker for the same issue and I haven't found one similar.
   
   ### Additional context
   I am new to superset, I have followed the steps from [here](https://superset.apache.org/docs/installation/installing-superset-using-docker-compose) and I am successfully running a non-dev version of superset on docker. Now I wanted to enable a configuration `ENABLE_TEMPLATE_PROCESSING` which is set to `False` by default. How do I do this? I have read this [section](https://superset.apache.org/docs/installation/configuring-superset) but it only says _you need to create a file superset_config.py and add it to your `PYTHONPATH`_. I am not a python dev so I do not know how to do this and how this works with the docker container. Anyone can help?
   


-- 
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



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


[GitHub] [superset] squalou edited a comment on issue #15286: Superset configuration on a production version of superset in docker

Posted by GitBox <gi...@apache.org>.
squalou edited a comment on issue #15286:
URL: https://github.com/apache/superset/issues/15286#issuecomment-865206284


   Hi,
   I have a similar setup, here's what I did
   
   Dockerfile :
   
   ```Dockerfile
   FROM .......superset parent image you want
   
   ADD superset_config.py  /app/pythonpath/
   
   ```
   
   and the file `superset_config.py` itself contains your configuration
   
   
   
   ```python
   FEATURE_FLAGS = {
       "ENABLE_TEMPLATE_PROCESSING": True
   }
   
   ```
   
   less flexible than a mounted volume but works in a serverless environment.
   Just `docker build` from this Dockerfile and you can deploy on your production env.
   


-- 
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



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


[GitHub] [superset] adhip94 commented on issue #15286: Superset configuration on a production version of superset in docker

Posted by GitBox <gi...@apache.org>.
adhip94 commented on issue #15286:
URL: https://github.com/apache/superset/issues/15286#issuecomment-865190901


   @nytai  Could you please give me an example of it?


-- 
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



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


[GitHub] [superset] nytai commented on issue #15286: Superset configuration on a production version of superset in docker

Posted by GitBox <gi...@apache.org>.
nytai commented on issue #15286:
URL: https://github.com/apache/superset/issues/15286#issuecomment-865186429


   You can volume mount a superset config into the container 


-- 
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



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


[GitHub] [superset] adhip94 commented on issue #15286: Superset configuration on a production version of superset in docker

Posted by GitBox <gi...@apache.org>.
adhip94 commented on issue #15286:
URL: https://github.com/apache/superset/issues/15286#issuecomment-865190901






-- 
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



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


[GitHub] [superset] squalou commented on issue #15286: Superset configuration on a production version of superset in docker

Posted by GitBox <gi...@apache.org>.
squalou commented on issue #15286:
URL: https://github.com/apache/superset/issues/15286#issuecomment-865206284


   Hi,
   I have a similar setup, here's what I did
   
   Dockerfile :
   
   ```Dockerfile
   FROM .......superset parent image you want
   
   ADD superset_config.py  /app/pythonpath/
   
   ```
   
   and the file `superset_config.py` itself contains your configuration
   
   
   
   ```python
   FEATURE_FLAGS = {
       "ENABLE_TEMPLATE_PROCESSING": True
   }
   
   ```
   
   less flexible than a mounted volume but works in a serverless environment.
   


-- 
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



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


[GitHub] [superset] squalou edited a comment on issue #15286: Superset configuration on a production version of superset in docker

Posted by GitBox <gi...@apache.org>.
squalou edited a comment on issue #15286:
URL: https://github.com/apache/superset/issues/15286#issuecomment-865206284


   Hi,
   I have a similar setup, here's what I did
   
   Dockerfile :
   
   ```Dockerfile
   FROM .......superset parent image you want
   
   ADD superset_config.py  /app/pythonpath/
   
   ```
   
   and the file `superset_config.py` itself contains your configuration
   
   
   
   ```python
   FEATURE_FLAGS = {
       "ENABLE_TEMPLATE_PROCESSING": True
   }
   
   ```
   
   less flexible than a mounted volume but works in a serverless environment.
   Just `docker build` from this Dockerfile and you can deploy on your production env.
   


-- 
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



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


[GitHub] [superset] adhip94 closed issue #15286: Superset configuration on a production version of superset in docker

Posted by GitBox <gi...@apache.org>.
adhip94 closed issue #15286:
URL: https://github.com/apache/superset/issues/15286


   


-- 
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



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


[GitHub] [superset] adhip94 commented on issue #15286: Superset configuration on a production version of superset in docker

Posted by GitBox <gi...@apache.org>.
adhip94 commented on issue #15286:
URL: https://github.com/apache/superset/issues/15286#issuecomment-865258250


   Got it, I added the FEATURE_FLAG in the `superset_config.py` which was present in the cloned repository path `superset/docker/pythonpath_dev`.


-- 
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



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


[GitHub] [superset] squalou commented on issue #15286: Superset configuration on a production version of superset in docker

Posted by GitBox <gi...@apache.org>.
squalou commented on issue #15286:
URL: https://github.com/apache/superset/issues/15286#issuecomment-865206284


   Hi,
   I have a similar setup, here's what I did
   
   Dockerfile :
   
   ```Dockerfile
   FROM .......superset parent image you want
   
   ADD superset_config.py  /app/pythonpath/
   
   ```
   
   and the file `superset_config.py` itself contains your configuration
   
   
   
   ```python
   FEATURE_FLAGS = {
       "ENABLE_TEMPLATE_PROCESSING": True
   }
   
   ```
   
   less flexible than a mounted volume but works in a serverless environment.
   


-- 
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



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


[GitHub] [superset] adhip94 closed issue #15286: Superset configuration on a production version of superset in docker

Posted by GitBox <gi...@apache.org>.
adhip94 closed issue #15286:
URL: https://github.com/apache/superset/issues/15286


   


-- 
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



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


[GitHub] [superset] adhip94 commented on issue #15286: Superset configuration on a production version of superset in docker

Posted by GitBox <gi...@apache.org>.
adhip94 commented on issue #15286:
URL: https://github.com/apache/superset/issues/15286#issuecomment-865218992


   > Hi,
   > I have a similar setup, here's what I did
   > 
   > Dockerfile :
   > 
   > ```dockerfile
   > FROM .......superset parent image you want
   > 
   > ADD superset_config.py  /app/pythonpath/
   > ```
   > 
   > and the file `superset_config.py` itself contains your configuration
   > 
   > ```python
   > FEATURE_FLAGS = {
   >     "ENABLE_TEMPLATE_PROCESSING": True
   > }
   > ```
   > 
   > less flexible than a mounted volume but works in a serverless environment.
   > Just `docker build` from this Dockerfile and you can deploy on your production env.
   
   Thanks, but I am already running superset using docker-compose and I was trying to figure out on which path to mount it to.


-- 
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



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


[GitHub] [superset] nytai commented on issue #15286: Superset configuration on a production version of superset in docker

Posted by GitBox <gi...@apache.org>.
nytai commented on issue #15286:
URL: https://github.com/apache/superset/issues/15286#issuecomment-865186429


   You can volume mount a superset config into the container 


-- 
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



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