From 468c4169ec782b2715e36b5bf938f096bfb665e9 Mon Sep 17 00:00:00 2001 From: shane knapp Date: Wed, 3 Jul 2024 14:44:25 -0700 Subject: [PATCH 1/2] you need to explicitly add postBuild to the Dockerfile for repo2docker to know to build it --- deployments/dev/images/default/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deployments/dev/images/default/Dockerfile b/deployments/dev/images/default/Dockerfile index a640bf8cc..f5f6fe4dd 100644 --- a/deployments/dev/images/default/Dockerfile +++ b/deployments/dev/images/default/Dockerfile @@ -125,8 +125,12 @@ RUN R -e "IRkernel::installspec(user = FALSE, prefix='${CONDA_DIR}')" # clear out /tmp USER root +COPY postBuild /tmp/postBuild +RUN chmod +x /tmp/postBuild +RUN /tmp/postBuild RUN rm -rf /tmp/* + USER ${NB_USER} WORKDIR /home/${NB_USER} From 8a74a5f89a5e21db6f23915d37c50e973b7eb24b Mon Sep 17 00:00:00 2001 From: shane knapp Date: Wed, 3 Jul 2024 15:27:52 -0700 Subject: [PATCH 2/2] comment out failing bits at the end --- deployments/dev/images/default/postBuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deployments/dev/images/default/postBuild b/deployments/dev/images/default/postBuild index 450043039..1766071c3 100644 --- a/deployments/dev/images/default/postBuild +++ b/deployments/dev/images/default/postBuild @@ -13,7 +13,7 @@ wget https://github.com/ollama/ollama/releases/download/v0.1.48/ollama-linux-amd chmod +x /usr/local/bin/ollama # Run the phi3:mini model with the specified data directory -/usr/local/bin/ollama run phi3:mini --data-dir $OLLAMA_DATA_DIR +# /usr/local/bin/ollama run phi3:mini --data-dir $OLLAMA_DATA_DIR # Run the tinyllama model with the specified data directory -/usr/local/bin/ollama run tinyllama --data-dir $OLLAMA_DATA_DIR +# /usr/local/bin/ollama run tinyllama --data-dir $OLLAMA_DATA_DIR