question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Superset configuration on a production version of superset in docker

See original GitHub issue

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.

Environment

  • superset version: 1.1.0
  • python version: 3.8.5
  • node.js version: 10.19.0

Additional context

I am new to superset, I have followed the steps from here 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 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?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
adhip94commented, Jun 21, 2021

Hi, I have a similar setup, here’s what I did

Dockerfile :

FROM .......superset parent image you want

ADD superset_config.py  /app/pythonpath/

and the file superset_config.py itself contains your configuration

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.

0reactions
adhip94commented, Jun 21, 2021

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring Superset
By default Superset is configured to use SQLite, it's a simple and fast way to get you started (no installation needed). But for...
Read more >
Installation & Configuration - apache-superset - Read the Docs
Superset supports Python versions >3.7 to take advantage of the newer Python features and reduce ... Here's an async setup known to work...
Read more >
Apache Superset in the production environment - gists · GitHub
Different version of Superset image can be built using the same code. Superset configuration can be easily edited and mounted into the container, ......
Read more >
Running Apache Superset as a Docker Container - Medium
A couple of days back, I wrote the post about how to run Apache Superset in the production environment for serving hundreds or...
Read more >
Superset on docker - Bytefold
Superset image form dockerhub does not provide any easily accessible way to configure Admin user for the app. It relies on superset fab ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found