repotest: run inside Docker

Run the openbmc repotest from within the normal unit-test Docker
environment.  This ensures that the repotest is abstracted from the
Jenkins node that ends up taking the job AND it allows us to use the
same linting tools used in the normal unit-test environment.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ic9cc003e9d847dae7dac6ab4430605f3a053c9d8
diff --git a/build-setup.sh b/build-setup.sh
index cae0b3b..2bd116b 100755
--- a/build-setup.sh
+++ b/build-setup.sh
@@ -138,7 +138,14 @@
 fi
 
 if [[ "$target" = repotest ]]; then
-  "${obmc_dir}"/meta-phosphor/scripts/run-repotest
+  DOCKER_IMAGE_NAME=$(./scripts/build-unit-test-docker)
+  docker run --cap-add=sys_admin --rm=true \
+      --network host \
+      --privileged=true \
+      -u "$USER" \
+      -w "${obmc_dir}" -v "${obmc_dir}:${obmc_dir}" \
+      -t "${DOCKER_IMAGE_NAME}" \
+      "${obmc_dir}"/meta-phosphor/scripts/run-repotest
   exit
 fi