Skip to content

Commit 35e78b0

Browse files
Merge pull request #26 from weekenthralling/docs/kernel-launch
chore: update kernel_launch script README
2 parents 5f7f32d + d45bcd5 commit 35e78b0

File tree

3 files changed

+4
-21
lines changed

3 files changed

+4
-21
lines changed

kernel_launch/Dockerfile

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,7 @@ FROM elyra/kernel-py:3.2.3
22

33
USER root
44

5-
# install chinese font
6-
RUN apt-get update \
7-
&& apt-get install -y --no-install-recommends \
8-
fonts-noto-cjk
9-
10-
COPY requirements.txt .
11-
12-
RUN python -m pip install -r requirements.txt
13-
RUN mplfonts init
14-
5+
# Replace the script in the image with the new startup script.
156
COPY bootstrap-kernel.sh /usr/local/bin/
167
COPY launch_ipykernel.py /usr/local/bin/kernel-launchers/python/scripts/
178

kernel_launch/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,6 @@ Official document at `~/.ipython/profile_default/startup/README`:
2929
The current script references [Jupyter Kernel Image](https://github.com/jupyter-server/enterprise_gateway/tree/main/etc/kernel-launchers) and has made the following modifications:
3030

3131
- The kernel can be started using a user-specified port.
32-
- The public key is set as an optional parameter; however, it is required when the response address is provided.
32+
- The `PUBLIC_KEY` is set as an optional parameter; however, it is required when the response address is provided.
33+
- Use the `KERNEL_ID` from the environment variables as the key to connect to the kernel.
34+
- Add the `KERNEL_IDLE_TIMEOUT` environment variable. Once set, any kernel that remains idle for longer than this duration will be terminated.

kernel_launch/requirements.txt

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)