summaryrefslogtreecommitdiff
path: root/bootstrap/generated-dists/fedora33/Dockerfile
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2020-11-04 16:15:16 +0100
committerAndrew Bartlett <abartlet@samba.org>2020-11-05 00:17:54 +0000
commit8aebd48698e3d41f3d27a5c4710729387760c6d4 (patch)
tree6e10f002986e83450300782798ada9dd020ac036 /bootstrap/generated-dists/fedora33/Dockerfile
parent005435dc4d7de9d442c7513edec8c782fe20fda3 (diff)
downloadsamba-8aebd48698e3d41f3d27a5c4710729387760c6d4.tar.gz
bootstrap: Add Fedora 33
This removes Fedora 31 support. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Nov 5 00:17:55 UTC 2020 on sn-devel-184
Diffstat (limited to 'bootstrap/generated-dists/fedora33/Dockerfile')
-rw-r--r--bootstrap/generated-dists/fedora33/Dockerfile27
1 files changed, 27 insertions, 0 deletions
diff --git a/bootstrap/generated-dists/fedora33/Dockerfile b/bootstrap/generated-dists/fedora33/Dockerfile
new file mode 100644
index 00000000000..c4632344a09
--- /dev/null
+++ b/bootstrap/generated-dists/fedora33/Dockerfile
@@ -0,0 +1,27 @@
+#
+# This file is generated by 'bootstrap/template.py --render'
+# See also bootstrap/config.py
+#
+
+FROM fedora:33
+
+# 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
+
+# if ld.gold exists, force link it to ld
+RUN set -x; LD=$(which ld); LD_GOLD=$(which ld.gold); test -x $LD_GOLD && ln -sf $LD_GOLD $LD && test -x $LD && echo "$LD is now $LD_GOLD"
+
+# make test can not work with root, so we have to create a new user
+RUN useradd -m -U -s /bin/bash samba && \
+ mkdir -p /etc/sudoers.d && \
+ echo "samba ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/samba
+
+USER samba
+WORKDIR /home/samba
+# samba tests rely on this
+ENV USER=samba LC_ALL=en_US.utf8 LANG=en_US.utf8 \ No newline at end of file