Closed Andres8427 closed 4 years ago
Thanks, @Andres8427 for using the docker-superset image and appreciating it. I am trying to answer your question with my best effort but if still, it is confusing, do reply me back.
As mentioned in the article, There ate two ways to start the docker-superset container,
Finally, to make it more clear, start mysql and redis in your local laptop and you can use following below command to start the container using 'docker-run'
docker run -p 8088:8088 -v config:/home/superset/config/ abhioncbr/docker-superset:0.29.0rc5 cluster server mysql://superset:superset@host.docker.internal:3306/superset redis://host.docker.internal:6379/0
Now, the question is why Redis URL is required? In Superset sql-lab, you can run your query in asynchronous mode, and you can cache the result of the query so that next run would be fast. I am using Redis for that purpose. There are other ways of caching the results, like storing the result on S3 [for which, I would like to extend the docker-superset configuration]
Last part, regarding build question; In short for making any change in the container, the image needs to be rebuilt. Yes, you can invoke you shell script through "docker-entrypoint.sh". I would suggest, if that shell script is generic, which you can think other users might need it, you can contribute into the repository[You are most welcome, as a contributor 👍 ]. I would like to have monitoring routines and logs files availability feature in docker-superset. Lastly, please give star to the repo.
Hello, first of all I congratulate you and I thank you for the contribution of your repository, it has made it much easier for me to start with the concept tests that I must do on Superset.
I'm not the most expert in Docker so the question may sound a little stupid.
I managed to start the container using docker-compose and it works perfectly, however I must make some adjustments from the beginning so I modified the Dockerfile and generated the image with the "docker build" as it is specified in the documentation. However, I can not get the container to start, it always remains in an error state. I'm not clear about the command that I should use. It must be this:
"cd docker-superset & & docker run -p 8088: 8088 -v config: / home / superset / config / abhioncbr / docker-superset: cluster server "
the parameter "superset_metadata_db_url" is the host of the metadata DB with the structure user @ host .....?
When running the "docker build" does not generate the redis container, I must generate it separately and in "redis_url" I send the URL of this one?
Basically what I need is to use the Superset container but to automatically execute a Sh that modifies the Superset configuration, also creates some folders in the container and copies some monitoring routines, but that allows us to use Superset updates, that I thought about modifying the Dockerfile and executing the Sh in the "docker-entrypoint.sh", in that case the best option is to use the docker build of your container? or is there some other simpler way?
I would very much appreciate any help you can give me!
Thank you.