File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 22# lightest possible entrypoint that ensures that
33# we use a login shell to get a fully configured shell environment
44# (e.g. sourcing /etc/profile.d, ~/.bashrc, and friends)
5+
6+ # Setup a file descriptor (FD) that is connected to a tee process which
7+ # writes its input to $REPO_DIR/.jupyter-server-log.txt
8+ # We later use this FD as a place to redirect the output of the actual
9+ # command to. We can't add `tee` to the command directly as that will prevent
10+ # the container from exiting when `docker stop` is run.
11+ exec {log_fd}> >( exec tee $REPO_DIR /.jupyter-server-log.txt)
12+
513if [[ ! -z " ${R2D_ENTRYPOINT:- } " ]]; then
614 if [[ ! -x " $R2D_ENTRYPOINT " ]]; then
715 chmod u+x " $R2D_ENTRYPOINT "
816 fi
9- exec " $R2D_ENTRYPOINT " " $@ "
17+ exec " $R2D_ENTRYPOINT " " $@ " >& " $log_fd " 2>&1
1018else
11- exec " $@ "
19+ exec " $@ " >& " $log_fd " 2>&1
1220fi
You can’t perform that action at this time.
0 commit comments