github.com/argoproj/argo-cd/v3@v3.2.1/test/container/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  if test "$$" = "1"; then
    13          exec tini -- "$@"
    14  else
    15          exec "$@"
    16  fi