I want to set up a unit test environment for my product. I have a build of web applications on nginx in Lua that use mysql and redis. I think docker will be good for this, although I'm new to docker . My application runs on a centos server (production server).
I plan to install another container for mysql, redis and webapp, and then write a UT application (unit test for Lua using the Busted framework) in my mac (my MAC development machine) or VM to check it out. The UT application will talk to the nginx docker container, and nginx will use the mysql and redis container. It's good? If so, can someone help me how to do this? maybe a good link? If not, what could be better. I already tried using a stroller, but it took too much time, which should not be in my UT case.
source share