summaryrefslogtreecommitdiff
path: root/hermetic/Dockerfile
diff options
context:
space:
mode:
authorMatthias Maennich <maennich@google.com>2020-08-27 11:39:12 +0100
committerMatthias Maennich <maennich@google.com>2020-08-27 11:39:12 +0100
commite26a0802759c5d1a2519c3c68f4df644e8903e2b (patch)
treed24f98a4f5bb476c42bb78e753945526fcd9a0db /hermetic/Dockerfile
parent07ee51a30d56aec59102b1e972ce1745fb5b13bf (diff)
downloadbuild-e26a0802759c5d1a2519c3c68f4df644e8903e2b.tar.gz
hermetic build container: allow git from host
Git is an essential tool used to set up the build, but can also be used to determine source file timestamps based on git commit information. Hence, allow its usage during the build. Bug: 157507870 Signed-off-by: Matthias Maennich <maennich@google.com> Change-Id: I3bc5c2fb6d7ccdd2f4bbe738fed5efc57136ea59
Diffstat (limited to 'hermetic/Dockerfile')
-rw-r--r--hermetic/Dockerfile3
1 files changed, 3 insertions, 0 deletions
diff --git a/hermetic/Dockerfile b/hermetic/Dockerfile
index 3e3dec9..886f62d 100644
--- a/hermetic/Dockerfile
+++ b/hermetic/Dockerfile
@@ -22,6 +22,9 @@ RUN ln -s $(which rsync) /l/bin/
RUN ln -s $(which sh) /l/bin/
RUN ln -s $(which tar) /l/bin/ # b/164013907
+# Allow git usage during the build (e.g. to determine timestamps)
+RUN ln -s $(which git) /l/bin/
+
# Copy the build runner
COPY build /l/build