Skip to content

Commit 15f6833

Browse files
committed
Add .sh shims for the start-* scripts
1 parent 6093870 commit 15f6833

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

images/base-notebook/Dockerfile

+1-5
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,13 @@ EXPOSE $JUPYTER_PORT
5555
CMD ["start-notebook.py"]
5656

5757
# Copy local files as late as possible to avoid cache busting
58-
COPY start-notebook.py start-singleuser.py /usr/local/bin/
58+
COPY start-notebook.py start-notebook.sh start-singleuser.py start-singleuser.sh /usr/local/bin/
5959
COPY jupyter_server_config.py docker_healthcheck.py /etc/jupyter/
6060

6161
# Fix permissions on /etc/jupyter as root
6262
USER root
6363
RUN fix-permissions /etc/jupyter/
6464

65-
# Symlink scripts to their older .sh variants for backwards compatibility
66-
RUN ln -s /usr/local/bin/start-notebook.py /usr/local/bin/start-notebook.sh && \
67-
ln -s /usr/local/bin/start-singleuser.py /usr/local/bin/start-singleuser.sh
68-
6965
# HEALTHCHECK documentation: https://docs.docker.com/engine/reference/builder/#healthcheck
7066
# This healtcheck works well for `lab`, `notebook`, `nbclassic`, `server` and `retro` jupyter commands
7167
# https://github.com/jupyter/docker-stacks/issues/915#issuecomment-1068528799
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
# Shim to emit warning and call start-notebook.py
3+
echo "WARNING: Use start-notebook.py instead"
4+
5+
exec /usr/local/bin/start-notebook.py "$@"
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
# Shim to emit warning and call start-singleuser.py
3+
echo "WARNING: Use start-singleuser.py instead"
4+
5+
exec /usr/local/bin/start-singleuser.py "$@"

0 commit comments

Comments
 (0)