bootstrap/config.py: add ARG in Dockerfile to allow add sha1sum into docker image
[garming/samba-autobuild/.git] / bootstrap / config.py
index a658fdd..d78ee02 100644 (file)
@@ -267,6 +267,10 @@ fi
 DOCKERFILE = r"""
 FROM {docker_image}
 
+# pass in with --build-arg while build
+ARG SHA1SUM
+RUN [ -n $SHA1SUM ] && echo $SHA1SUM > /sha1sum.txt
+
 ADD *.sh /tmp/
 # need root permission, do it before USER samba
 RUN /tmp/bootstrap.sh && /tmp/locale.sh