mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-07 18:14:05 +00:00
Fix ijavascript example (#2143)
* Fix ijavascript example * Better naming
This commit is contained in:
23
docs/using/recipe_code/ijavascript.dockerfile
Normal file
23
docs/using/recipe_code/ijavascript.dockerfile
Normal file
@@ -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
|
@@ -482,18 +482,10 @@ docker run -it --rm \
|
|||||||
|
|
||||||
## Add ijavascript kernel to container
|
## Add ijavascript kernel to container
|
||||||
|
|
||||||
```{warning}
|
The example below is a Dockerfile to install the [IJavascript kernel](https://github.com/n-riesco/ijavascript).
|
||||||
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).
|
```{literalinclude} recipe_code/ijavascript.dockerfile
|
||||||
|
:language: docker
|
||||||
```dockerfile
|
|
||||||
FROM quay.io/jupyter/scipy-notebook
|
|
||||||
|
|
||||||
# install ijavascript
|
|
||||||
RUN npm install -g ijavascript
|
|
||||||
RUN ijsinstall
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Add Microsoft SQL Server ODBC driver
|
## Add Microsoft SQL Server ODBC driver
|
||||||
|
Reference in New Issue
Block a user