The chapter on testing includes a conclusion section regarding docker-compose for linux unit test virtualization on local machine.
I feel that this is a very important thing to experience/understand, and I have enjoyed the attention paid to actual production concerns thus far in the course.
However, when building on Apple Silicon, there are a few issues with the swift images from docker, as well as issues running other tools built for x64 or AMD64. I have had quite a difficult time determining the best fix, or even where best to apply it.
Specifying a swift image that’s compatible with local system ISA? Running rosetta 2 around docker and downloading the x64 version? changing something else in one of the compose files? Building my own swift image and then trying to take a break from vapor to learn enough docker to be sure I’m properly achieving the same goal?
I eventually decided the easiest thing was just deploying my vapor app to a remote server I own, and running the tests locally there through an ssh… but this sort of circumvents the purpose of the chapter.
Any guidance on best practices to remedy this issue would be an appreciated addendum / errata, so that if we select Vapor in a production capacity in the future I can give guidance to my team.
Thanks if anyone responds to this in the future.