3 # we will use this image to run ci, these ENV vars are important
6 ADD bootstrap.sh /tmp/bootstrap.sh
7 # need root permission, do it before USER samba
8 RUN bash /tmp/bootstrap.sh
10 # make test can not work with root, so we have to create a new user
11 RUN useradd -m -s /bin/bash samba && \
12 mkdir -p /etc/sudoers.d && \
13 echo "samba ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/samba
17 # samba tests rely on this
18 ENV USER=samba LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8