diff --git a/envs/shared/jupyterhub.yaml b/envs/shared/jupyterhub.yaml index 5a3e3ed..cb31f82 100755 --- a/envs/shared/jupyterhub.yaml +++ b/envs/shared/jupyterhub.yaml @@ -98,6 +98,10 @@ singleuser: display_name: "MATLAB (must provide your own license)" kubespawner_override: image: "${singleuser_image_repo}:${singleuser_image_tag}-matlab" + openscope: + display_name: "OpenScope Databook" + kubespawner_override: + image: "${singleuser_image_repo}:${singleuser_image_tag}-openscope" default: true kubespawner_override: image_pull_policy: Always @@ -123,6 +127,10 @@ singleuser: display_name: "MATLAB (must provide your own license)" kubespawner_override: image: "${singleuser_image_repo}:${singleuser_image_tag}-matlab" + openscope: + display_name: "OpenScope Databook" + kubespawner_override: + image: "${singleuser_image_repo}:${singleuser_image_tag}-openscope" kubespawner_override: image_pull_policy: Always cpu_limit: 24 @@ -146,6 +154,10 @@ singleuser: display_name: "MATLAB (must provide your own license)" kubespawner_override: image: "${singleuser_image_repo}:${singleuser_image_tag}-matlab" + openscope: + display_name: "OpenScope Databook" + kubespawner_override: + image: "${singleuser_image_repo}:${singleuser_image_tag}-openscope" kubespawner_override: image_pull_policy: Always cpu_limit: 48 diff --git a/images/Dockerfile.openscope b/images/Dockerfile.openscope new file mode 100644 index 0000000..562e8f3 --- /dev/null +++ b/images/Dockerfile.openscope @@ -0,0 +1,22 @@ +FROM ubuntu:22.04 +# base requirements +RUN apt-get update +RUN apt-get install -y coreutils +RUN apt-get install -y libgl1-mesa-glx +RUN apt-get install -y libglib2.0-0 +RUN apt-get install -y python3 python3-pip +RUN apt-get install -y git + +RUN git config --global --add safe.directory /__w/openscope_databook/openscope_databook + +# copy databook setup files +COPY requirements.txt ./openscope_databook/requirements.txt +COPY setup.py ./openscope_databook/setup.py +COPY README.md ./openscope_databook/README.md +COPY LICENSE.txt ./openscope_databook/LICENSE.txt +COPY databook_utils ./openscope_databook/databook_utils + +# for reasons I don't understand, these must be installed before the rest the requirements +RUN pip install numpy cython +# set up databook dependencies +RUN pip install -e ./openscope_databook[dev] \ No newline at end of file