| ▲ | renewiltord 3 hours ago | ||||||||||||||||||||||
I have not done this so it’s theorycrafting but can’t you do the following? 1. Have a local data dir with initial state 2. Create an overlayfs with a temporary directory 3. Launch your job in your docker container with the overlayfs bind mount as your data directory 4. That’s it. Writes go to the overlay and the base directory is untouched | |||||||||||||||||||||||
| ▲ | francislavoie 3 hours ago | parent [-] | ||||||||||||||||||||||
But how does the reset happen fast, the problem isn't with preventing permanent writes or w/e, it's with actually resetting for the next test. Also using overlayfs will immediately be slower at runtime than tmpfs which we're already doing. | |||||||||||||||||||||||
| |||||||||||||||||||||||