Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions container-images/cuda/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ COPY --chmod=755 ../scripts /usr/bin

RUN dnf install -y python3 && \
/usr/bin/build_rag.sh rag

ENTRYPOINT []
6 changes: 4 additions & 2 deletions container-images/intel-gpu/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ RUN dnf install -y procps-ng python3 python3-pip python3-devel intel-level-zero
RUN useradd llama-user -u 10000 -d /home/llama-user -s /bin/bash && \
groupmod -a -U llama-user render && \
groupmod -a -U llama-user video && \
echo ". /opt/intel/oneapi/setvars.sh" >> "/home/llama-user/.zshrc" && \
echo ". /opt/intel/oneapi/setvars.sh" >> "/home/llama-user/.bashrc" && \
chown llama-user:llama-user -R /home/llama-user && \
/usr/bin/build_rag.sh rag

USER 10000

COPY --chmod=755 intel-gpu/entrypoint.sh /usr/bin

ENTRYPOINT ["/usr/bin/entrypoint.sh"]

CMD [ "tail", "-f", "/dev/null" ]
7 changes: 7 additions & 0 deletions container-images/intel-gpu/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
# shellcheck disable=SC1091

source /opt/intel/oneapi/setvars.sh

exec "$@"

2 changes: 0 additions & 2 deletions ramalama/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,6 @@ def get_base_conman_args(self, args, name):
name,
"--env=HOME=/tmp",
"--init",
"--entrypoint",
"",
]

def add_privileged_options(self, conman_args, args):
Expand Down
Loading