Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How do you incorporate databases and testing data into this?


I take a nightly dump of my dev environment database, and then bake that into a thin docker image based on the MySQL image. I’m not dealing with huge datasets so this isn’t expensive. You can then start up a mysql pod and it comes up with a copy of the dev DB data.

(I also give developers a script to run this fixture DB locally too - it makes the onboarding process a lot easier if you don’t need to run the DB init and migrations, and generally means developers have a more robust set of test data to work with. )




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: