Files
deploy/test/container/entrypoint.sh
pasha-codefreshandGitHub 04ff60e2c3 fix: make codegen (#7059)
fix: make codegen

Signed-off-by: pashavictorovich <[email protected]>
2021-08-24 09:02:44 -07:00

17 lines
347 B
Bash
Executable File

#!/bin/bash
set -e
if test "$(id -u)" == "0" -a "${USER_ID}" != ""; then
useradd -u ${USER_ID} -d /home/user -s /bin/bash ${USER_NAME:-default}
chown -R "${USER_NAME:-default}" ${GOCACHE}
fi
export PATH=$PATH:/usr/local/go/bin:/go/bin
export GOROOT=/usr/local/go
if test "$$" = "1"; then
exec tini -- "$@"
else
exec "$@"
fi