3 ms·
If speed is one of the things holding you back from testing with the native database, running the database data on a tmpfs mountpoint is worth looking at. http
by heurisko 5y ago
If speed is one of the things holding you back from testing with the native database, running the database data on a tmpfs mountpoint is worth looking at.
https://vladmihalcea.com/how-to-run-integration-tests-at-warp-speed-with-docker-and-tmpfs/ https://vladmihalcea.com/how-to-run-integration-tests-at-war...
- noisy_boy 5y agoFor me, it is more of zero setup while getting most of the benefits which is "good enough" (tmpfs works great but every new developer would need to do this + setup/permissions needed for docker + differences between Windows/Linux and/or desktop vs CI host etc).
- heurisko 5y agoIt looks like tmpfs is Linux-only feature. Otherwise I have a single docker-compose.yml file that sets up postgres using "Docker for Desktop" on Mac and Windows and works natively on Linux. CI (Linux) uses the same docker-compose.yml. I haven't used docker in production, but it has proved very useful in test.