Skip to content

Commit

Permalink
Test caching improvements, test bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Liana64 committed Dec 5, 2024
1 parent 090b1b9 commit 175b142
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 18 deletions.
38 changes: 21 additions & 17 deletions apps/chai/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ ARG DEBIAN_FRONTEND=noninteractive

ENV \
NVIDIA_DRIVER_CAPABILITIES="compute,video,utility,graphics" \
VIRTUAL_ENV=/opt/venv \
PATH="${VIRTUAL_ENV}:$PATH" \
PATH="/opt/venv/bin:$PATH" \
UMASK="0002" \
LANG=C.UTF-8 \
TZ="Etc/UTC" \
Expand All @@ -37,18 +36,20 @@ RUN \
&& apt-get update && apt-get install -y --no-install-recommends \
curl unzip build-essential catatonit jq \
gnupg ca-certificates lsb-release \
nano vim tree \
# -----------------------------------
# TODO: Build images with extras
# -----------------------------------
# htop tmux psmisc \
# socat rsync aria2 openssh-server \
# -----------------------------------
# TODO: Build images with RDMA & InfiniBand
# -----------------------------------
# libibverbs1 librdmacm1 \
# -----------------------------------
&& curl -fsSL -o /tmp/app.zip "https://github.com/chaidiscovery/chai-lab/archive/refs/tags/v${VERSION}.zip" \
nano vim tree
# -----------------------------------
# TODO: Build images with extras
# -----------------------------------
# htop tmux psmisc \
# socat rsync aria2 openssh-server \
# -----------------------------------
# TODO: Build images with RDMA & InfiniBand
# -----------------------------------
# libibverbs1 librdmacm1 \
# -----------------------------------

RUN \
curl -fsSL -o /tmp/app.zip "https://github.com/chaidiscovery/chai-lab/archive/refs/tags/v${VERSION}.zip" \
&& unzip -q /tmp/app.zip -d /tmp/app \
&& cp -R /tmp/app/chai-lab-${VERSION}/LICENSE /app \
&& cp -R /tmp/app/chai-lab-${VERSION}/assets /app \
Expand All @@ -58,10 +59,13 @@ RUN \
&& chown -R ${UID}:${GID} /app && chmod -R 755 /app \
&& curl -LsSf https://astral.sh/uv/0.5.6/install.sh | sh \
&& . $HOME/.local/bin/env \
&& uv venv --no-python-downloads ${VIRTUAL_ENV} \
&& . ${VIRTUAL_ENV}/bin/activate \
&& uv venv --no-python-downloads /opt/venv \
&& . /opt/venv/bin/activate \
&& uv pip install -r /tmp/app/chai-lab-${VERSION}/requirements.in \
&& chown -R ${UID}:${GID} ${VIRTUAL_ENV} && chmod -R 755 ${VIRTUAL_ENV} \
&& uv pip install /tmp/app/chai-lab-${VERSION}

RUN \
chown -R ${UID}:${GID} /opt/venv && chmod -R 755 /opt/venv \
&& apt-get purge -y build-essential \
&& apt-get autoremove -y \
&& apt-get clean \
Expand Down
3 changes: 2 additions & 1 deletion apps/chai/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ app: chai
semver: true
channels:
- name: stable
platforms: ["linux/amd64", "linux/arm64"]
#platforms: ["linux/amd64", "linux/arm64"]
platforms: ["linux/amd64"]
stable: true
tests:
enabled: false
Expand Down

0 comments on commit 175b142

Please sign in to comment.