mirror of
https://github.com/samba-team/samba.git
synced 2025-01-06 13:18:07 +03:00
7b6cedf538
Signed-off-by: Stefan Metzmacher <metze@samba.org> [abartlet@samba.org Use Debian 11 for the 32 bit host as the compile currently fails - just exits without information - mid-way on Debian 12] Signed-off-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri Jun 30 08:51:17 UTC 2023 on atb-devel-224
29 lines
1.0 KiB
Docker
29 lines
1.0 KiB
Docker
#
|
|
# This file is generated by 'bootstrap/template.py --render'
|
|
# See also bootstrap/config.py
|
|
#
|
|
|
|
FROM opensuse/leap:15.5
|
|
|
|
# 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_GOLD=$(which ld.gold) || { LD=$(which ld) && ln -sf $LD_GOLD $LD && test -x $LD && echo "$LD is now $LD_GOLD"; }
|
|
# if ld.mold exists, force link it to ld (prefer mold over gold! ;-)
|
|
RUN set -x; ! LD_MOLD=$(which ld.mold) || { LD=$(which ld) && ln -sf $LD_MOLD $LD && test -x $LD && echo "$LD is now $LD_MOLD"; }
|
|
|
|
# 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 LANGUAGE=en_US |