Is there a guide to setting up a JupyterLab template on Coder OSS?
Either through docker or bare AWS.
23 Replies
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@Atif didn't you have this issue?
i HAVE SET IT UP
How did you do it @Atif ?
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.
there you can see the deep learning templates. It uses docker to run a deep learning container and also has Jupyter Lab/Noteboook setup.
@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
Let me check and see what's the issue.
I will update
ty!
Hi. I checked and I am facing no issue.
Can you try building the image locally and see where exactly is the error?
Hey @Atif same error locally
can you share your console output?
#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
This is the issue
Comment this line from docker line
GitHub
coder-templates/DL.Dockerfile at 6b61499e0328dd7167e3cb933b8e49e3bf...
Coder OSS templates. Contribute to matifali/coder-templates development by creating an account on GitHub.
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.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
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.04The kernel version actually has to do with the host
containers share the host kernel
that's why the version can be basically anything
commenting that out should solve the issue then
were you able to solve the issue?
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.
This is inspired from your template actually. Thank you.
Oh perf!