Skip to content

Commit 70c724d

Browse files
chown workspace dir for trt-llm
1 parent c4f3ece commit 70c724d

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "truss"
3-
version = "0.11.27rc004"
3+
version = "0.11.27rc502"
44
description = "A seamless bridge from model development to model delivery"
55
authors = [
66
{ name = "Pankaj Gupta", email = "no-reply@baseten.co" },

truss/templates/server.Dockerfile.jinja

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,14 @@ ENV SERVER_START_CMD="/docker_server/.venv/bin/supervisord -c {{ supervisor_conf
128128
{#- default configuration uses port 80, which requires root privileges, so we remove it #}
129129
RUN rm -f /etc/nginx/sites-enabled/default
130130
{#- nginx writes to /var/lib/nginx, /var/log/nginx, and /run directories #}
131-
{{ chown_and_switch_to_regular_user_if_enabled(["/var/lib/nginx", "/var/log/nginx", "/run"]) }}
131+
{%- set base_chown_dirs = ["/var/lib/nginx", "/var/log/nginx", "/run"] %}
132+
{#- If TRT-LLM v2 inference stack is enabled, we need to chown the workspace and trtllm directories #}
133+
{%- if config.trt_llm and config.trt_llm.inference_stack == "v2" %}
134+
{%- set extra_chown_dirs = base_chown_dirs + ["/workspace", "/workspace/trtllm"] %}
135+
{%- else %}
136+
{%- set extra_chown_dirs = base_chown_dirs %}
137+
{%- endif %}
138+
{{ chown_and_switch_to_regular_user_if_enabled(extra_chown_dirs) }}
132139
ENTRYPOINT ["/docker_server/.venv/bin/supervisord", "-c", "{{ supervisor_config_path }}"]
133140

134141
{%- elif requires_live_reload %} {#- elif requires_live_reload #}

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)