From 87f42f1d5825f5b386a793eb3cd9a0e801dbe074 Mon Sep 17 00:00:00 2001 From: Balaji Alwar Date: Tue, 9 Jul 2024 11:06:05 -0700 Subject: [PATCH] Remove postbuild file --- deployments/dev/images/default/Dockerfile | 6 +++--- deployments/dev/images/default/postBuild | 19 ------------------- 2 files changed, 3 insertions(+), 22 deletions(-) delete mode 100644 deployments/dev/images/default/postBuild diff --git a/deployments/dev/images/default/Dockerfile b/deployments/dev/images/default/Dockerfile index f5f6fe4dd..f4dc81b29 100644 --- a/deployments/dev/images/default/Dockerfile +++ b/deployments/dev/images/default/Dockerfile @@ -125,9 +125,9 @@ 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 +#COPY postBuild /tmp/postBuild +#RUN chmod +x /tmp/postBuild +#RUN /tmp/postBuild RUN rm -rf /tmp/* diff --git a/deployments/dev/images/default/postBuild b/deployments/dev/images/default/postBuild deleted file mode 100644 index 1766071c3..000000000 --- a/deployments/dev/images/default/postBuild +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash - -# Define the directory for persistent storage -OLLAMA_DATA_DIR="/persistent/ollama" - -# Create the directory if it doesn't exist -mkdir -p $OLLAMA_DATA_DIR - -# Download the Ollama executable -wget https://github.com/ollama/ollama/releases/download/v0.1.48/ollama-linux-amd64 -O /usr/local/bin/ollama - -# Make the Ollama executable runnable -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 - -# Run the tinyllama model with the specified data directory -# /usr/local/bin/ollama run tinyllama --data-dir $OLLAMA_DATA_DIR