Commit 575727d1 authored by Olof Johansson's avatar Olof Johansson

docker: run script from /work without root user env

Running from /work means output is saved properly between runs (no
re-downloads).

Also, sudo -E passed in environment variables such that git was trying
to get the config from /root, which obviously didn't work when running
as a build user.
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parent 2ef43563
...@@ -25,5 +25,6 @@ useradd -s /bin/bash -m -u $_UID -g $_GID build ...@@ -25,5 +25,6 @@ useradd -s /bin/bash -m -u $_UID -g $_GID build
sudo -u build git config --global user.name "LX2160A Toolchain Container" sudo -u build git config --global user.name "LX2160A Toolchain Container"
sudo -u build git config --global user.email "support@solid-run.com" sudo -u build git config --global user.email "support@solid-run.com"
cd /work
# now run the build script as the build user # now run the build script as the build user
sudo -u build -E bash /work/runme.sh sudo -u build ./runme.sh
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