-
Notifications
You must be signed in to change notification settings - Fork 1
feat: Add jupyter-notebook container #88
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
Changes from all commits
27af26b
d1b5d9a
7d892a9
9bcd467
65c69ea
8ca370e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| ## {{{ | ||
| ARG GAP_VERSION="4.12.1" | ||
| ARG DOCKER_BASE_IMAGE_URL="ghcr.io/limakzi/gap-docker:${GAP_VERSION}-full" | ||
| ## }}} | ||
|
|
||
| ## {{{ | ||
| ARG JUPYTER_KERNEL_PATH="/opt/gap/gap-${GAP_VERSION}/pkg/jupyterkernel/" | ||
| ## }}} | ||
|
|
||
| ## {{{ | ||
| ARG GAP_USER_USERNAME="gap" | ||
| ARG GAP_USER_GROUPNAME="gap" | ||
| ARG GAP_USER_UID=1000 | ||
| ARG GAP_USER_GID=1000 | ||
| ARG GAP_USER_SHELL="/bin/bash" | ||
| ARG GAP_USER_HOMEDIR="/opt/gap" | ||
| ## }}} | ||
|
|
||
| FROM ${DOCKER_BASE_IMAGE_URL} AS full | ||
|
|
||
| EXPOSE 8888 | ||
|
|
||
| ARG GAP_USER_GID | ||
| ARG GAP_USER_GROUPNAME | ||
| ARG GAP_USER_UID | ||
| ARG GAP_USER_USERNAME | ||
| ARG GAP_USER_HOMEDIR | ||
| ARG JUPYTER_KERNEL_PATH | ||
|
|
||
| USER 'root' | ||
|
|
||
| RUN apt-get -y clean && \ | ||
| apt-get -y update && \ | ||
| apt-get -y install python3-pip | ||
limakzi marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| USER ${GAP_USER_USERNAME} | ||
| ENV PATH="/opt/gap/.local/bin/:${JUPYTER_KERNEL_PATH}/bin/:${PATH}" | ||
| ENV JUPYTER_GAP_EXECUTABLE "gap" | ||
|
Check warning on line 38 in src/dockerfiles/jupyter-gap/ubuntu-2204-lts/Dockerfile
|
||
|
|
||
| COPY ./requirements.txt ./ | ||
| RUN pip3 install -r requirements.txt | ||
| RUN pip3 install --no-dependencies ${JUPYTER_KERNEL_PATH} | ||
|
|
||
| WORKDIR "/tmp" | ||
|
|
||
| CMD ["jupyter-lab", "--ip=0.0.0.0"] | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| jupyterlab==4.3.3 |
Uh oh!
There was an error while loading. Please reload this page.