Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ijavascript example #2143

Merged
merged 2 commits into from
Sep 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions docs/using/recipe_code/ijavascript.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM quay.io/jupyter/base-notebook

USER root

RUN apt-get update --yes && \
apt-get install --yes --no-install-recommends \
make \
g++ && \
apt-get clean && rm -rf /var/lib/apt/lists/*

USER ${NB_UID}

# NodeJS <= 20 is required
# https://github.com/n-riesco/ijavascript/issues/184
RUN mamba install --yes nodejs=20.* && \
mamba clean --all -f -y && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"

# hadolint ignore=DL3016
RUN npm install -g ijavascript
# hadolint ignore=DL3059
RUN ijsinstall
14 changes: 3 additions & 11 deletions docs/using/recipes.md
Original file line number Diff line number Diff line change
Expand Up @@ -482,18 +482,10 @@ docker run -it --rm \

## Add ijavascript kernel to container

```{warning}
This recipe is not tested and might be broken.
```

The example below is a Dockerfile to install the [ijavascript kernel](https://github.com/n-riesco/ijavascript).
The example below is a Dockerfile to install the [IJavascript kernel](https://github.com/n-riesco/ijavascript).

```dockerfile
FROM quay.io/jupyter/scipy-notebook

# install ijavascript
RUN npm install -g ijavascript
RUN ijsinstall
```{literalinclude} recipe_code/ijavascript.dockerfile
:language: docker
```

## Add Microsoft SQL Server ODBC driver
Expand Down