diff --git a/docs/using/recipe_code/ijavascript.dockerfile b/docs/using/recipe_code/ijavascript.dockerfile new file mode 100644 index 00000000..362fffdd --- /dev/null +++ b/docs/using/recipe_code/ijavascript.dockerfile @@ -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 diff --git a/docs/using/recipes.md b/docs/using/recipes.md index a4e5408c..46c6edb6 100644 --- a/docs/using/recipes.md +++ b/docs/using/recipes.md @@ -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