Skip to content

Commit

Permalink
Fix ijavascript example (#2143)
Browse files Browse the repository at this point in the history
* Fix ijavascript example

* Better naming
  • Loading branch information
mathbunnyru authored Sep 7, 2024
1 parent 348cc09 commit 8890fc5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 11 deletions.
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

0 comments on commit 8890fc5

Please sign in to comment.