torodb / stampede

The ToroDB solution to provide better analytics on top of MongoDB and make it easier to migrate from MongoDB to SQL
https://www.torodb.com/stampede/
GNU Affero General Public License v3.0
1.77k stars 120 forks source link

Docker Compose and Ubuntu snap versions of ToroDB MySQL ? #203

Closed xet7 closed 7 years ago

xet7 commented 7 years ago

Hi, it seems that ToroDB MySQL version works, according to some screenshot I did see.

Can you add Docker Compose and Ubuntu snap versions of ToroDB MySQL ?

I would like to make ToroDB MySQL version of Wekan, there is already PostgreSQL version at: https://github.com/wekan/wekan-postgresql

teoincontatto commented 7 years ago

Hi @xet7,

Ubuntu snap version should be already working with MySQL. You have to pass --backend mysql to enable MySQL backend for ToroDB Stampede.

Doing the MySQL docker compose is a bit more complicated since it require a setup script for MySQL and the MySQL client installed in our base docker image. We are planning to move this functionality into Java to allow a straightforward method to setup the backend with his JDBC driver. For now I think the best bet would be setup MySQL user and database using available environment variables and modify the ToroDB Stampede container command with something like bash -c "sleep 120 && entry-point" with TORODB_SETUP=false (or it will try to setup postgresql).