Skip to content

Commit

Permalink
chore: override notebook command
Browse files Browse the repository at this point in the history
  • Loading branch information
rokroskar committed Mar 17, 2023
1 parent 6416d66 commit d9f45b5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docker/py/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,16 @@ fi
# Start the SHH daemon in the background
/usr/sbin/sshd -f /opt/ssh/sshd_config -E /tmp/sshd.log

# Override the jupyter command to be forward compatible with newer
# images that no longer launch the whole server with `jupyter notebook`.
jupyter() {
if [ "$1" = "notebook" ];
then
shift
$(which jupyter) server $@;
else $(which jupyter) $@;
fi;
}

# run the command
$@

0 comments on commit d9f45b5

Please sign in to comment.