Skip to content

Commit 82da8b4

Browse files
committed
Add order of precedence for startup hooks
1 parent 29ea0e7 commit 82da8b4

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

NOTES.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,16 @@ modified to
2626

2727
The following startup hooks are put in place:
2828

29-
* [/usr/local/bin/start-notebook.d/populate.sh](base/scripts/usr/local/bin/start-notebook.d/populate.sh)
29+
* [/usr/local/bin/start-notebook.d/10-populate.sh](base/scripts/usr/local/bin/start-notebook.d/10-populate.sh)
3030
to populate a *bind mounted* home directory `/home/jovyan`.
31-
* [/usr/local/bin/before-notebook.d/init.sh](base/scripts/usr/local/bin/before-notebook.d/init.sh) to
31+
* [/usr/local/bin/before-notebook.d/10-init.sh](base/scripts/usr/local/bin/before-notebook.d/10-init.sh) to
3232
* update timezone according to environment variable `TZ`.
3333
* add locales according to environment variable `LANGS`.
3434
* set locale according to environment variable `LANG`.
3535
* update code-server settings.
36+
* [/usr/local/bin/before-notebook.d/90-limits.sh](base/scripts/usr/local/bin/before-notebook.d/90-limits.sh)
37+
to set the *soft limit* for *the maximum amount of virtual memory* based on
38+
the amount of *physical* and *virtual memory* of the host.
3639

3740
### Custom scripts
3841

base/scripts/usr/local/bin/before-notebook.d/init.sh renamed to base/scripts/usr/local/bin/before-notebook.d/10-init.sh

File renamed without changes.

base/scripts/usr/local/bin/before-notebook.d/limits.sh renamed to base/scripts/usr/local/bin/before-notebook.d/90-limits.sh

File renamed without changes.

base/scripts/usr/local/bin/start-notebook.d/populate.sh renamed to base/scripts/usr/local/bin/start-notebook.d/10-populate.sh

File renamed without changes.

0 commit comments

Comments
 (0)