Skip to content

Commit d242f44

Browse files
authored
fix(ray): remove timezone for compatibility issue (#253)
Because - tz directory does not align between systems This commit - remove timezone for compatibility issue
1 parent 17fd5ab commit d242f44

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

instill/helpers/cli.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -299,10 +299,6 @@ def run(args):
299299
"--shm-size=4gb",
300300
"--name",
301301
str(name),
302-
"-v",
303-
"/etc/timezone:/etc/timezone:ro",
304-
"-v",
305-
"/etc/localtime:/etc/localtime:ro",
306302
f"{args.name}:{args.tag}",
307303
"serve",
308304
"run",
@@ -315,7 +311,6 @@ def run(args):
315311
subprocess.run(
316312
f"docker run \
317313
--rm -d --shm-size=4gb --name {str(name)} --gpus all \
318-
-v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro \
319314
{args.name}:{args.tag} /bin/bash -c \
320315
\"serve build _model:entrypoint -o serve.yaml && \
321316
sed -i 's/app1/default/' serve.yaml && \

instill/helpers/init-templates/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ARG TARGET_ARCH_SUFFIX
66

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

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

1111
ARG SYSTEM_PACKAGES
1212
RUN for package in ${SYSTEM_PACKAGES}; do \

0 commit comments

Comments
 (0)