Skip to content

Commit

Permalink
Merge pull request #5843 from berkeley-dsep-infra/staging
Browse files Browse the repository at this point in the history
merging 5824/5839/5841 to prod
  • Loading branch information
shaneknapp authored Jul 7, 2024
2 parents b14f2dd + 98e69a9 commit 317d076
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This config represents running the command `yamllint -d relaxed .` with the
# following extra rules:
#
# new-line-at-end-of-file:
# level: warning
# trailing-spaces:
# level: warning
#
# We also ignore the cookiecutter directories as these often contain
# jinja-style templating functions that yamllint doesn't play nicely with
#
# cribbed from https://github.com/2i2c-org/infrastructure/blob/main/.yamllint.yaml
---
extends: default

ignore: |
**/template/**
rules:
braces:
level: warning
max-spaces-inside: 1
brackets:
level: warning
max-spaces-inside: 1
colons:
level: warning
commas:
level: warning
comments: disable
comments-indentation: disable
document-start: disable
empty-lines:
level: warning
hyphens:
level: warning
indentation:
level: warning
indent-sequences: consistent
line-length: disable
new-line-at-end-of-file:
level: warning
trailing-spaces:
level: warning
truthy: disable
4 changes: 4 additions & 0 deletions deployments/dev/images/default/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down
19 changes: 19 additions & 0 deletions deployments/dev/images/default/postBuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/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

0 comments on commit 317d076

Please sign in to comment.