Added the command to create home directory for the current user of the container. Also added few helpful comments.
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
This commit is contained in:
1 parent
2b0507899c
commit
41d4f6f73f
1 file changed
+4
@@ -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 &
|
||||
|
||||
Reference in new issue
Block a user