LTI authentication + jupyterlab + nbgitpuller to open to a specific notebook inside jupyterlab

Is anyone successfully using jupyterhub with LTI authentication + jupyterlab + nbgitpuller to open to a specific notebook inside jupyterlab? I can do all minus one…

If anyone stumbles upon the same issue, my problem was that I was attempting to run the default docker.io/jupyterhub/singleuser:3.1 Docker image from the Docker spawner. It worked after I build my own image:

FROM docker.io/jupyterhub/singleuser:latest

USER root
RUN apt update && apt install -y git

USER jovyan
RUN pip install nbgitpuller==1.1.1
RUN pip install jupyterlab==3.6.1

I then configured JupyterHub to use this custom image:

c.DockerSpawner.image = 'myorg/myimage:latest'

I configured my LTI 1.1 component to redirect to /hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Fbinder-examples%2Frequirements&urlpath=lab%2Ftree%2Frequirements%2Findex.ipynb&branch=main.

Success ensued.