diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh index 6f9898c..9e1df02 100755 --- a/scripts/entrypoint.sh +++ b/scripts/entrypoint.sh @@ -6,8 +6,12 @@ term_handler() { exit 143; # 128 + 15 -- SIGTERM } +# setup handler when the container is exited trap 'kill ${!}; term_handler' SIGTERM +# setup home directory for the current user. It is useful for attaching vscode with container. +sudo mkhomedir_helper `whoami` + touch $LOG_FILE eval $USER_COMMAND_INIT &