StarRocks / starrocks

StarRocks, a Linux Foundation project, is a next-generation sub-second MPP OLAP database for full analytics scenarios, including multi-dimensional analytics, real-time analytics, and ad-hoc queries.
https://starrocks.io
Apache License 2.0
8.74k stars 1.75k forks source link

Support the ability to load / populate data with an init script for allin1 docker image #30505

Closed alberttwong closed 6 months ago

alberttwong commented 1 year ago

I want to use the docker allin1 image for developer CI. I need a way to populate data on container init.

Ideally I would using TestContainers and I would be able to write the following command in my code.

try (MySQLContainer container = (MySQLContainer) new MySQLContainer() .withInitScript("somepath/init_mysql.sql")

https://www.tabnine.com/code/java/methods/org.testcontainers.containers.MySQLContainer/withInitScript https://stackoverflow.com/questions/67768732/how-to-properly-maintain-data-for-testcontainers-in-init-script

alberttwong commented 1 year ago

https://github.com/docker-library/docs/tree/master/mysql#initializing-a-fresh-instance

github-actions[bot] commented 6 months ago

We have marked this issue as stale because it has been inactive for 6 months. If this issue is still relevant, removing the stale label or adding a comment will keep it active. Otherwise, we'll close it in 10 days to keep the issue queue tidy. Thank you for your contribution to StarRocks!

alberttwong commented 6 months ago

Use the starrocks toolkit