Commit 78858702 authored by Olof Johansson's avatar Olof Johansson

docker: let build user sudo without password

Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parent 575727d1
......@@ -21,6 +21,10 @@ _GID=$2
groupadd -g $_GID build 2>/dev/null || true
useradd -s /bin/bash -m -u $_UID -g $_GID build
# passwordless sudo for build user
adduser build sudo
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
# preconfigure git identity
sudo -u build git config --global user.name "LX2160A Toolchain Container"
sudo -u build git config --global user.email "support@solid-run.com"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment