summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorJoe Guo <joeg@catalyst.net.nz>2019-03-19 16:31:47 +1300
committerStefan Metzmacher <metze@samba.org>2019-04-18 12:09:33 +0000
commit077f8eaf40fd7917ebc90b8577c2766c0000abe6 (patch)
treea038c83a183d68893eaf6b880571656863e09c1f /bootstrap
parent932756e2a3adb88ba8216aa926289b287d3a3059 (diff)
downloadsamba-077f8eaf40fd7917ebc90b8577c2766c0000abe6.tar.gz
bootstrap/config.py: add ARG in Dockerfile to allow add sha1sum into docker image
Add ARG SHA1SUM, then we can pass it to docker build with --build-arg Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'bootstrap')
-rw-r--r--bootstrap/config.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bootstrap/config.py b/bootstrap/config.py
index a658fdda223..d78ee02ec30 100644
--- a/bootstrap/config.py
+++ b/bootstrap/config.py
@@ -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