Skip to content

jupyternvidia

jupyter.svg

inherite from

abcdesktopio/oc.template.ubuntu.nvidia.22.04

Distribution

ubuntu ubuntu

PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.1 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

Ubuntu packages

gnome-terminal openssh-client telnet netcat sshcommand sshfs ftp-ssl wput curl wget tftp ncftp git git-ftp ftp dbus-x11

Arguments

"--disable-factory --class=jupyternvidia -- /usr/local/bin/startjupyter.sh"

Displayname

jupyter nvidia

Path

/usr/bin/gnome-terminal

Showinview

"dock"

ACL

{
    "permit": [
        "all"
    ]
}

WM_CLASS

gnome-terminal-server.jupyternvidia

The WM_CLASS property (of type STRING without control characters) contains two consecutive null-terminated strings. These specify the Instance and Class names to be used by both the client and the window manager for looking up resources for the application or as identifying information. to get the WM_CLASS property of an application, use the command line wmctrl -lx

Desktopfile

/usr/share/applications/org.gnome.Terminal.desktop

A .desktop file is a simple text file that holds information about a program. It is usually placed in “/usr/share/applications/”.

PRE run command

PRE run command are run before the package install command

RUN add-apt-repository ppa:mozillateam/ppa
COPY etc/apt/preferences.d/mozilla-firefox /etc/apt/preferences.d/mozilla-firefox
RUN apt-get update && apt-get install --no-install-recommends --yes firefox wget sudo && apt-get clean
COPY cudnn-local-repo-ubuntu2204-8.7.0.84_1.0-1_amd64.deb /tmp
RUN apt-get update && apt-get install --no-install-recommends --yes -f /tmp/cudnn-local-repo-ubuntu2204-8.7.0.84_1.0-1_amd64.deb && apt-get clean
RUN cp /var/cudnn-local-repo-ubuntu2204-8.7.0.84/cudnn-local-BF23AD8A-keyring.gpg /usr/share/keyrings/
ENV PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV LD_LIBRARY_PATH=/usr/local/cuda-12.0/lib64:/usr/local/nvidia/lib:/usr/local/nvidia/lib64
RUN apt-get update && apt-get install --no-install-recommends --yes build-essential python3.9 python3-pip python-is-python3 libcurl4-openssl-dev libssl-dev wget && apt-get clean
RUN # wget https://repo.anaconda.com/archive/Anaconda3-2022.10-Linux-x86_64.sh -O /tmp/anaconda3.sh && bash /tmp/anaconda3.sh -b -p /usr/local/anaconda
RUN pip3 install torch
RUN pip3 install tensorflow-gpu
RUN pip3 install jupyter notebook
RUN pip3 install jupyterlab
RUN pip3 install jupyterlab-nvdashboard
RUN # jupyter labextension install jupyterlab-nvdashboard

POST run command

POST run command are run after the package install comman

RUN mkdir -p /run/user
RUN chmod 777 /run/user
COPY startjupyter.sh /usr/local/bin/startjupyter.sh

JSON dump

json source file jupyternvidia.d.3.0.json

{
    "comment": "https://stackoverflow.com/questions/51002045/how-to-make-jupyter-notebook-to-run-on-gpu",
    "acl": {
        "permit": [
            "all"
        ]
    },
    "cat": "development",
    "preruncommands": [
        "RUN add-apt-repository ppa:mozillateam/ppa",
        "COPY etc/apt/preferences.d/mozilla-firefox /etc/apt/preferences.d/mozilla-firefox",
        "RUN apt-get update && apt-get install --no-install-recommends --yes firefox wget sudo && apt-get clean",
        "COPY cudnn-local-repo-ubuntu2204-8.7.0.84_1.0-1_amd64.deb /tmp",
        "RUN apt-get update && apt-get install --no-install-recommends --yes -f /tmp/cudnn-local-repo-ubuntu2204-8.7.0.84_1.0-1_amd64.deb && apt-get clean",
        "RUN cp /var/cudnn-local-repo-ubuntu2204-8.7.0.84/cudnn-local-BF23AD8A-keyring.gpg /usr/share/keyrings/",
        "ENV PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
        "ENV LD_LIBRARY_PATH=/usr/local/cuda-12.0/lib64:/usr/local/nvidia/lib:/usr/local/nvidia/lib64",
        "RUN apt-get update && apt-get install --no-install-recommends --yes build-essential python3.9 python3-pip python-is-python3 libcurl4-openssl-dev libssl-dev wget && apt-get clean",
        "RUN # wget https://repo.anaconda.com/archive/Anaconda3-2022.10-Linux-x86_64.sh -O /tmp/anaconda3.sh && bash /tmp/anaconda3.sh -b -p /usr/local/anaconda",
        "RUN pip3 install torch",
        "RUN pip3 install tensorflow-gpu",
        "RUN pip3 install jupyter notebook",
        "RUN pip3 install jupyterlab",
        "RUN pip3 install jupyterlab-nvdashboard",
        "RUN # jupyter labextension install jupyterlab-nvdashboard"
    ],
    "debpackage": "gnome-terminal openssh-client telnet netcat sshcommand sshfs ftp-ssl wput curl wget tftp ncftp git git-ftp ftp dbus-x11",
    "icon": "jupyter.svg",
    "keyword": "jupyter",
    "launch": "gnome-terminal-server.jupyternvidia",
    "name": "jupyternvidia",
    "displayname": "jupyter nvidia",
    "showinview": "dock",
    "path": "/usr/bin/gnome-terminal",
    "args": "--disable-factory  --class=jupyternvidia -- /usr/local/bin/startjupyter.sh",
    "rules": {
        "homedir": {
            "default": true
        }
    },
    "template": "abcdesktopio/oc.template.ubuntu.nvidia.22.04",
    "desktopfile": "/usr/share/applications/org.gnome.Terminal.desktop",
    "abcdesktop_release": 3,
    "postruncommands": [
        "RUN mkdir -p /run/user",
        "RUN chmod 777 /run/user",
        "COPY startjupyter.sh /usr/local/bin/startjupyter.sh"
    ]
}

Install the builded image

Replace the ABCHOST var set to localhost by default to your own server ip address

ABCHOST=localhost
curl --output jupyternvidia.d.3.0.json https://raw.githubusercontent.com/abcdesktopio/oc.apps/main/jupyternvidia.d.3.0.json
curl -X PUT -H 'Content-Type: text/javascript' http://$ABCHOST:30443/API/manager/image -d @jupyternvidia.d.3.0.json

Generated DockerFile source code

# Dynamic DockerFile application file for abcdesktopio generated by abcdesktopio/oc.apps/make.js
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
ARG TAG=dev
FROM abcdesktopio/oc.template.ubuntu.nvidia.22.04:$TAG
USER root
RUN add-apt-repository ppa:mozillateam/ppa
COPY etc/apt/preferences.d/mozilla-firefox /etc/apt/preferences.d/mozilla-firefox
RUN apt-get update && apt-get install --no-install-recommends --yes firefox wget sudo && apt-get clean
COPY cudnn-local-repo-ubuntu2204-8.7.0.84_1.0-1_amd64.deb /tmp
RUN apt-get update && apt-get install --no-install-recommends --yes -f /tmp/cudnn-local-repo-ubuntu2204-8.7.0.84_1.0-1_amd64.deb && apt-get clean
RUN cp /var/cudnn-local-repo-ubuntu2204-8.7.0.84/cudnn-local-BF23AD8A-keyring.gpg /usr/share/keyrings/
ENV PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV LD_LIBRARY_PATH=/usr/local/cuda-12.0/lib64:/usr/local/nvidia/lib:/usr/local/nvidia/lib64
RUN apt-get update && apt-get install --no-install-recommends --yes build-essential python3.9 python3-pip python-is-python3 libcurl4-openssl-dev libssl-dev wget && apt-get clean
RUN # wget https://repo.anaconda.com/archive/Anaconda3-2022.10-Linux-x86_64.sh -O /tmp/anaconda3.sh && bash /tmp/anaconda3.sh -b -p /usr/local/anaconda
RUN pip3 install torch
RUN pip3 install tensorflow-gpu
RUN pip3 install jupyter notebook
RUN pip3 install jupyterlab
RUN pip3 install jupyterlab-nvdashboard
RUN # jupyter labextension install jupyterlab-nvdashboard
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y  --no-install-recommends gnome-terminal openssh-client telnet netcat sshcommand sshfs ftp-ssl wput curl wget tftp ncftp git git-ftp ftp dbus-x11 && apt-get clean
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
LABEL oc.icon="jupyter.svg"
LABEL oc.icondata="PHN2ZyB3aWR0aD0iNDQiIGhlaWdodD0iNTEiIHZpZXdCb3g9IjAg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Q1NSA0LjEwMzg3IDIuODMzOTIgNC4zNTYyMyAyLjI1MDYxIDQuMzc5NDNaIi8+CjwvZGVmcz4KPC9zdmc+Cg=="
LABEL oc.keyword="jupyternvidia,jupyter"
LABEL oc.cat="development"
LABEL oc.desktopfile="org.gnome.Terminal.desktop"
LABEL oc.launch="gnome-terminal-server.jupyternvidia"
LABEL oc.template="abcdesktopio/oc.template.ubuntu.nvidia.22.04"
ENV ARGS="--disable-factory  --class=jupyternvidia -- /usr/local/bin/startjupyter.sh"
LABEL oc.name="jupyternvidia"
LABEL oc.displayname="jupyter nvidia"
LABEL oc.path="/usr/bin/gnome-terminal"
LABEL oc.type=app
LABEL oc.showinview="dock"
LABEL oc.rules="{\"homedir\":{\"default\":true}}"
LABEL oc.acl="{\"permit\":[\"all\"]}"
RUN for d in /usr/share/icons /usr/share/pixmaps ; do echo "testing link in $d"; if [ -d $d ] && [ -x /composer/safelinks.sh ] ; then echo "fixing link in $d"; cd $d ; /composer/safelinks.sh ; fi; done
ENV APPNAME "jupyternvidia"
ENV APPBIN "/usr/bin/gnome-terminal"
LABEL oc.args="--disable-factory  --class=jupyternvidia -- /usr/local/bin/startjupyter.sh"
ENV APP "/usr/bin/gnome-terminal"
RUN mkdir -p /run/user
RUN chmod 777 /run/user
COPY startjupyter.sh /usr/local/bin/startjupyter.sh
USER root
RUN mkdir -p /var/secrets/abcdesktop/localaccount
RUN for f in passwd shadow group gshadow ; do if [ -f /etc/$f ] ; then  cp /etc/$f /var/secrets/abcdesktop/localaccount; rm -f /etc/$f; ln -s /var/secrets/abcdesktop/localaccount/$f /etc/$f; fi; done
USER balloon
CMD [ "/composer/appli-docker-entrypoint.sh" ]

Rebuild the image manually

Download the Dockerfile manually

Dockerfile for application jupyternvidia

wget https://raw.githubusercontent.com/abcdesktopio/oc.apps/main/jupyternvidia.d

build the Dockerfile to create a container image

docker build --build-arg TAG=3.0 -f jupyternvidia.d -t jupyternvidia .

Install the new image

If you are using containerd as container runtime, use the ctr command line

If you are not running this bash command on your abcdesktop node Replace the ABCHOST variable set to localhost by default to your own server ip address

ABCHOST=localhost
docker inspect jupyternvidia > jupyternvidia.json
docker image save jupyternvidia -o jupyternvidia.tar
ctr -n k8s.io images import jupyternvidia.tar
curl -X PUT -H 'Content-Type: text/javascript' http://$ABCHOST:30443/API/manager/image -d @jupyternvidia.json