manibuilder: Add service container with local Git access
Add a new target `local-git` that spawns a service container with a
local Git daemon. The variable ${TEST_LOCAL} needs to point to the
directory of a local git repository.
Change-Id: I9e465551d3398fdb8d173a0a8fbd169561241a74
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/flashrom-stable/+/70911
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: Nico Huber <nico.h@gmx.de>
diff --git a/util/manibuilder/Dockerfile.git b/util/manibuilder/Dockerfile.git
new file mode 100644
index 0000000..92549a3
--- /dev/null
+++ b/util/manibuilder/Dockerfile.git
@@ -0,0 +1,6 @@
+FROM alpine/git
+
+RUN apk add git-daemon
+EXPOSE 9418
+VOLUME ["/git/flashrom.git"]
+CMD ["daemon", "--reuseaddr", "--export-all", "--base-path=/git", "/git/flashrom.git"]