wow, I didn't know about docker commit. It's pretty cool :) I did something like that at work for postgres. Once a day we run a pipeline that downloads latest prod db backup, and runs a dockerfile that restores it, and we use that for integration tests. Only tip for this is when you do the restore, everything has to happen in a single RUN docker command, you can run multiple commands by joining them with &. And make sure to set the correct user for restore :)
@swildermuth2 ай бұрын
Thanks for the tips!
@0x72732 ай бұрын
Thank you, Shawn. Great idea. I was just looking for a better way to manage provisioning databases yesterday. Big thank you KZbin/Google algorithms for putting this on my homepage.
@swildermuth2 ай бұрын
Glad to help!
@ahmedabuelnour16482 ай бұрын
Thank you, Already know i can do that, but never thought about using it like you did in that example. :) Thank you again
@swildermuth2 ай бұрын
You're very welcome!
@devfric31492 ай бұрын
Useful for databases with lots of existing data
@swildermuth2 ай бұрын
Yes, true
@krccmsitp28842 ай бұрын
Nice to know, thanks for showing.
@swildermuth2 ай бұрын
Thanks for watching!
@alexlo56552 ай бұрын
Hi Shawn, Thank you for publishing an interesting video. Do you have a source code for the video? I mean run.ps1 and other?
@swildermuth2 ай бұрын
Not really, it was very specific to my instance. I show you all the command-line commands to use to do this. Sorry.