- You should execute
build-image.sh
script everytime when you changed something insuperset_config.py
- You should execute
first-build-superset.sh
script only if it's the first time you are setting up the Superset on your environment - You can execute
build-superset.sh
script when you want to run Superset on your environment- You had to executed the
first-build-superset.sh
before execute this
- You had to executed the
- We can override Superset config variables in
superset_config
file which is located in this repo. Then,Dockerfile
copy this file into/app/
. If we set SUPERSET_CONFIG_PATH variable (we did inDockerfile
), CONFIG_PATH_ENV_VAR will be created while runtime and we will be able to override the configure variables [https://github.com/apache/superset/blob/master/superset/config.py#L1351]
sudo docker run -d -p 8080:8088 --name superset apache/superset
sudo docker exec -it superset superset fab create-admin \
--username admin \
--firstname Superset \
--lastname Admin \
--email admin@superset.com \
--password admin
sudo docker exec -it superset superset db upgrade
sudo docker exec -it superset superset load_examples
sudo docker exec -it superset superset init
If we want to configure Superset to public access, we need set a default role for not authenticated users in superset_config.py
.
PUBLIC_ROLE_LIKE = 'Gamma' # We can set our custom role
Then we have to re initialize Superset.
docker exec superset superset init
We can visit Superset's official documentation for more detail.