Is there a guide to setting up a JupyterLab template on Coder OSS?

Either through docker or bare AWS.
23 Replies
Programmer_remote124
I installed jupyter manually through pip3 after I ssh'ed into the workspace. When I hit the jupyter icon on the coder oss dashboard I get this error too many redirects @here
Phorcys
Phorcys3y ago
@Atif didn't you have this issue?
Atif
Atif3y ago
i HAVE SET IT UP
Programmer_remote124
How did you do it @Atif ?
Atif
Atif3y ago
can you check my template at https://github.com/matifali/coder-templates
GitHub
GitHub - matifali/coder-templates: Coder OSS templates
Coder OSS templates. Contribute to matifali/coder-templates development by creating an account on GitHub.
Atif
Atif3y ago
there you can see the deep learning templates. It uses docker to run a deep learning container and also has Jupyter Lab/Noteboook setup.
Programmer_remote124
@Atif I saw that! It's very cool. But I get this error creating a workspace Error: executor failed running [/bin/bash --login -o pipefail -c apt-get update && apt-get upgrade -y && APT_INSTALL="apt-get install -y --no-install-recommends" && $APT_INSTALL bash bash-completion ca-certificates cmake curl git htop libcudnn8 libopenblas-dev linux-headers-$(uname -r) nano openssh-client python3 python3-dev python3-pip python-is-python3 sudo unzip vim wget && apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh && /bin/bash miniconda.sh -b -p ${CONDA_DIR} && rm -rf miniconda.sh && sudo wget --quiet https://github.com/tartansandal/conda-bash-completion/raw/master/conda -P /etc/bash_completion.d/]: exit code: 100
Atif
Atif3y ago
Let me check and see what's the issue. I will update
Programmer_remote124
ty!
Atif
Atif3y ago
Hi. I checked and I am facing no issue. Can you try building the image locally and see where exactly is the error?
Programmer_remote124
Hey @Atif same error locally
Atif
Atif3y ago
can you share your console output?
Programmer_remote124
#5 18.29 E: Couldn't find any package by glob 'linux-headers-5.10.104-linuxkit' #5 18.29 E: Couldn't find any package by regex 'linux-headers-5.10.104-linuxkit' ------ executor failed running [/bin/bash --login -o pipefail -c apt-get update && apt-get upgrade -y && APT_INSTALL="apt-get install -y --no-install-recommends" && $APT_INSTALL bash bash-completion ca-certificates cmake curl git htop libcudnn8 libopenblas-dev linux-headers-$(uname -r) nano openssh-client python3 python3-dev python3-pip python-is-python3 sudo unzip vim wget && apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh && /bin/bash miniconda.sh -b -p ${CONDA_DIR} && rm -rf miniconda.sh && sudo wget --quiet https://github.com/tartansandal/conda-bash-completion/raw/master/conda -P /etc/bash_completion.d/]: exit code: 100
Atif
Atif3y ago
This is the issue Comment this line from docker line
Atif
Atif3y ago
This is because of custom linux kernel linuxkit doesn't have headers Its not required usually unless you want to build something from source inside your container. So commenting this line 35 in docker file should fix this. Also comment all of the packages that you don't need.
Programmer_remote124
Thanks! Works locally but I get this from Coder Workspace docker_image.coder_image: Creation errored after 56s Error: executor failed running [/bin/bash --login -o pipefail -c apt-get update && apt-get upgrade -y && APT_INSTALL="apt-get install -y --no-install-recommends" && $APT_INSTALL bash bash-completion ca-certificates cmake curl git htop libcudnn8 libopenblas-dev nano openssh-client python3 python3-dev python3-pip python-is-python3 sudo unzip vim wget && apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh && /bin/bash miniconda.sh -b -p ${CONDA_DIR} && rm -rf miniconda.sh && sudo wget --quiet https://github.com/tartansandal/conda-bash-completion/raw/master/conda -P /etc/bash_completion.d/]: exit code: 1
Atif
Atif3y ago
Can you try to build the image manually on the same machine where your workspaces are deployed to see what is the issue. Did you change the base image in DL.Dockerfile? I am wondering why the Linux kernel version is different. I should be the latest kernel from Ubuntu 22.04
Phorcys
Phorcys3y ago
The kernel version actually has to do with the host containers share the host kernel that's why the version can be basically anything
Atif
Atif3y ago
commenting that out should solve the issue then were you able to solve the issue?
sharkymark
sharkymark3y ago
Nice template @Atif I did the same thing using an input parameter to ask if notebook or lab is wanted, then change the startup_script parameters.
Atif
Atif3y ago
This is inspired from your template actually. Thank you.
sharkymark
sharkymark3y ago
Oh perf!
Want results from more Discord servers?
Add your server