bootstrap: add the result of bootstrap/template.py --render
[gd/samba-autobuild/.git] / bootstrap / generated-dists / ubuntu1604 / Dockerfile
1 #
2 # This file is generated by 'bootstrap/template.py --render'
3 # See also bootstrap/config.py
4 #
5
6 FROM ubuntu:16.04
7
8 # pass in with --build-arg while build
9 ARG SHA1SUM
10 RUN [ -n $SHA1SUM ] && echo $SHA1SUM > /sha1sum.txt
11
12 ADD *.sh /tmp/
13 # need root permission, do it before USER samba
14 RUN /tmp/bootstrap.sh && /tmp/locale.sh
15
16 # if ld.gold exists, force link it to ld
17 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"
18
19 # make test can not work with root, so we have to create a new user
20 RUN useradd -m -U -s /bin/bash samba && \
21     mkdir -p /etc/sudoers.d && \
22     echo "samba ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/samba
23
24 USER samba
25 WORKDIR /home/samba
26 # samba tests rely on this
27 ENV USER=samba LC_ALL=en_US.utf8 LANG=en_US.utf8