Skip to content

Commit

Permalink
Replace pip cache of session_latest
Browse files Browse the repository at this point in the history
  • Loading branch information
javiermtorres committed Jan 29, 2025
1 parent 3733262 commit 781812e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .devcontainer/docker-compose.override.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@ name: lumigator

services:

ray:
volumes:
- /tmp/ray_pip_cache:/tmp/ray_pip_cache
backend:
build:
context: .
dockerfile: "Dockerfile"
target: "dev_image"
volumes:
- database_volume:/mzai/backend/local.db
- database_volume:/mzai/backend/local.db
ports:
- "5678:5678"
develop:
Expand Down
12 changes: 11 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,14 @@ services:
- "8265:8265"
- "10001:10001"
# https://docs.ray.io/en/releases-2.30.0/cluster/cli.html#ray-start for more info about the command
command: bash -c "ray start --head --dashboard-port=8265 --port=6379 --dashboard-host=0.0.0.0 --ray-client-server-port 10001 --block" # pragma: allowlist secret
entrypoint:
- /bin/bash
- -c
- |
ray start --head --dashboard-port=8265 --port=6379 --dashboard-host=0.0.0.0 --ray-client-server-port 10001
mkdir -p /tmp/ray/session_latest/runtime_resources/pip
rmdir /tmp/ray/session_latest/runtime_resources/pip/ && ln -s /tmp/ray_pip_cache /tmp/ray/session_latest/runtime_resources/pip
sleep infinity
shm_size: 2g
volumes:
- ${HOME}/.cache/huggingface:/home/ray/.cache/huggingface
Expand Down Expand Up @@ -80,6 +87,8 @@ services:
- "localhost:host-gateway"
profiles:
- local
volumes:
- ray-pip-cache:/tmp/ray_pip_cache

backend:
image: mzdotai/lumigator:v0.1.0-alpha
Expand Down Expand Up @@ -155,3 +164,4 @@ services:
volumes:
minio-data:
database_volume:
ray-pip-cache:

0 comments on commit 781812e

Please sign in to comment.