github.com/argoproj/argo-cd@v1.8.7/test/container/uid_entrypoint.sh (about) 1 #!/bin/bash 2 set -e 3 4 if test "$(id -u)" == "0" -a "${USER_ID}" != ""; then 5 useradd -u ${USER_ID} -d /home/user -s /bin/bash ${USER_NAME:-default} 6 chown -R "${USER_NAME:-default}" ${GOCACHE} 7 fi 8 9 export PATH=$PATH:/usr/local/go/bin:/go/bin 10 export GOROOT=/usr/local/go 11 12 exec "$@"