tests: Use a docker image to build gem5.