Skip to content

Commit

Permalink
fix(ray): remove timezone for compatibility issue (#253)
Browse files Browse the repository at this point in the history
Because

- tz directory does not align between systems

This commit

- remove timezone for compatibility issue
  • Loading branch information
heiruwu authored Feb 17, 2025
1 parent 17fd5ab commit d242f44
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions instill/helpers/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,6 @@ def run(args):
"--shm-size=4gb",
"--name",
str(name),
"-v",
"/etc/timezone:/etc/timezone:ro",
"-v",
"/etc/localtime:/etc/localtime:ro",
f"{args.name}:{args.tag}",
"serve",
"run",
Expand All @@ -315,7 +311,6 @@ def run(args):
subprocess.run(
f"docker run \
--rm -d --shm-size=4gb --name {str(name)} --gpus all \
-v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro \
{args.name}:{args.tag} /bin/bash -c \
\"serve build _model:entrypoint -o serve.yaml && \
sed -i 's/app1/default/' serve.yaml && \
Expand Down
2 changes: 1 addition & 1 deletion instill/helpers/init-templates/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARG TARGET_ARCH_SUFFIX

FROM rayproject/ray:${RAY_VERSION}-py${PYTHON_VERSION}${CUDA_SUFFIX}${TARGET_ARCH_SUFFIX}

RUN sudo apt-get update && sudo apt-get install tzdata curl vim -y
RUN sudo apt-get update && sudo apt-get install curl vim -y

ARG SYSTEM_PACKAGES
RUN for package in ${SYSTEM_PACKAGES}; do \
Expand Down

0 comments on commit d242f44

Please sign in to comment.