truss 0.10.9rc545__py3-none-any.whl → 0.10.9rc547__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of truss might be problematic. Click here for more details.

@@ -23,18 +23,17 @@ RUN mkdir -p ${APP_HOME} {{ control_server_dir }}
23
23
  RUN useradd -u {{ app_user_uid }} -ms /bin/bash {{ app_username }}
24
24
  {% endblock %} {#- endblock user_setup #}
25
25
 
26
+ {#- at the very beginning, set non-interactive mode for apt #}
26
27
  ENV DEBIAN_FRONTEND=noninteractive
27
28
 
28
- {%- if non_root_user %}
29
- {%- if enable_model_container_admin_commands %}
29
+ {%- if non_root_user and enable_model_container_admin_commands %}
30
30
  RUN apt update && apt install -y sudo
31
31
  {%- set allowed_admin_commands = ["/usr/bin/apt install *", "/usr/bin/apt update"] %}
32
32
  RUN echo "Defaults:{{ app_username }} passwd_tries=0\n{{ app_username }} ALL=(root) NOPASSWD: {{ allowed_admin_commands | join(", ") }}" > /etc/sudoers.d/app-packages
33
33
  RUN chmod 0440 /etc/sudoers.d/app-packages
34
34
  {#- optional but good practice: check if the sudoers file is valid #}
35
35
  RUN visudo -c
36
- {%- endif %} {#- endif enable_model_container_admin_commands #}
37
- {%- endif %} {#- endif non_root_user #}
36
+ {%- endif %} {#- endif non_root_user and enable_model_container_admin_commands #}
38
37
 
39
38
  {%- set UV_VERSION = "0.7.19" %}
40
39
  {#
@@ -62,13 +61,13 @@ RUN {{ python_exec_path }} -c "import sys; \
62
61
  {% endblock %}
63
62
 
64
63
  {% block install_uv %}
65
- # Add the user's local bin to the path, used by uv.
66
- ENV PATH=${PATH}:${HOME}/.local/bin
67
64
  {# Install `uv` and `curl` if not already present in the image. #}
68
65
  RUN if ! command -v uv >/dev/null 2>&1; then \
69
66
  command -v curl >/dev/null 2>&1 || (apt update && apt install -y curl) && \
70
67
  curl -LsSf --retry 5 --retry-delay 5 https://astral.sh/uv/{{ UV_VERSION }}/install.sh | sh; \
71
68
  fi
69
+ # Add the user's local bin to the path, used by uv.
70
+ ENV PATH=${PATH}:${HOME}/.local/bin
72
71
  {% endblock %}
73
72
 
74
73
  {% block base_image_patch %}
@@ -102,10 +102,6 @@ COPY --chown={{ default_owner }} ./{{ config.model_module_dir }} ${APP_HOME}/mod
102
102
 
103
103
  {% block run %}
104
104
 
105
- {%- if non_root_user %}
106
- RUN chown -R {{ app_username }}:{{ app_username }} ${HOME} ${APP_HOME}
107
- {%- endif %} {#- endif non_root_user #}
108
-
109
105
  {%- if config.docker_server %}
110
106
  RUN apt-get update -y && apt-get install -y --no-install-recommends \
111
107
  curl nginx && rm -rf /var/lib/apt/lists/*
@@ -128,6 +124,7 @@ RUN rm -f /etc/nginx/sites-enabled/default
128
124
  {#- nginx writes to /var/lib/nginx, /var/log/nginx, and /run directories #}
129
125
  {% set nginx_dirs = ["/var/lib/nginx", "/var/log/nginx", "/run"] %}
130
126
  RUN chown -R {{ app_username }}:{{ app_username }} {{ nginx_dirs | join(" ") }}
127
+ RUN chown -R {{ app_username }}:{{ app_username }} ${HOME} ${APP_HOME}
131
128
  USER {{ app_username }}
132
129
  {%- endif %} {#- endif non_root_user #}
133
130
  ENTRYPOINT ["/docker_server/.venv/bin/supervisord", "-c", "{{ supervisor_config_path }}"]
@@ -138,6 +135,7 @@ ENV CONTROL_SERVER_PORT="8080"
138
135
  ENV INFERENCE_SERVER_PORT="8090"
139
136
  ENV SERVER_START_CMD="/control/.env/bin/python /control/control/server.py"
140
137
  {%- if non_root_user %}
138
+ RUN chown -R {{ app_username }}:{{ app_username }} ${HOME} ${APP_HOME}
141
139
  USER {{ app_username }}
142
140
  {%- endif %} {#- endif non_root_user #}
143
141
  ENTRYPOINT ["/control/.env/bin/python", "/control/control/server.py"]
@@ -146,6 +144,7 @@ ENTRYPOINT ["/control/.env/bin/python", "/control/control/server.py"]
146
144
  ENV INFERENCE_SERVER_PORT="8080"
147
145
  ENV SERVER_START_CMD="{{ python_executable }} /app/main.py"
148
146
  {%- if non_root_user %}
147
+ RUN chown -R {{ app_username }}:{{ app_username }} ${HOME} ${APP_HOME}
149
148
  USER {{ app_username }}
150
149
  {%- endif %} {#- endif non_root_user #}
151
150
  ENTRYPOINT ["{{ python_executable }}", "/app/main.py"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: truss
3
- Version: 0.10.9rc545
3
+ Version: 0.10.9rc547
4
4
  Summary: A seamless bridge from model development to model delivery
5
5
  Project-URL: Repository, https://github.com/basetenlabs/truss
6
6
  Project-URL: Homepage, https://truss.baseten.co
@@ -66,12 +66,12 @@ truss/remote/baseten/utils/time.py,sha256=Ry9GMjYnbIGYVIGwtmv4V8ljWjvdcaCf5NOQzl
66
66
  truss/remote/baseten/utils/transfer.py,sha256=d3VptuQb6M1nyS6kz0BAfeOYDLkMKUjatJXpY-mp-As,1548
67
67
  truss/templates/README.md.jinja,sha256=N7CJdyldZuJamj5jLh47le0hFBdu9irVsTBqoxhPNPQ,2476
68
68
  truss/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
69
- truss/templates/base.Dockerfile.jinja,sha256=WzaG559566SvzDGXozdzsJW03zulzoLdrUvj-zVw--M,5410
69
+ truss/templates/base.Dockerfile.jinja,sha256=BTxbuTANKVRTjdLEX2ZZHYoPKD0RK4OCmJof_VDtpp0,5441
70
70
  truss/templates/cache.Dockerfile.jinja,sha256=evMbbMXjceDjUmGGuB0shLS_PxZsc9ZGkbzR-6aIW-Q,1114
71
71
  truss/templates/cache_requirements.txt,sha256=xoPoJ-OVnf1z6oq_RVM3vCr3ionByyqMLj7wGs61nUs,87
72
72
  truss/templates/copy_cache_files.Dockerfile.jinja,sha256=Os5zFdYLZ_AfCRGq4RcpVTObOTwL7zvmwYcvOzd_Zqo,126
73
73
  truss/templates/docker_server_requirements.txt,sha256=PyhOPKAmKW1N2vLvTfLMwsEtuGpoRrbWuNo7tT6v2Mc,18
74
- truss/templates/server.Dockerfile.jinja,sha256=SW9DQwgSiQZrJ4Zo6_qqyB3N4Vvp1iBnCpNFNcC6Lgk,7015
74
+ truss/templates/server.Dockerfile.jinja,sha256=bvp3pzSlGN7qgbEbLpAkR0LUAx3-Ru62dUH6gqgBYFE,7092
75
75
  truss/templates/control/requirements.txt,sha256=Kk0tYID7trPk5gwX38Wrt2-YGWZAXFJCJRcqJ8ZzCjc,251
76
76
  truss/templates/control/control/application.py,sha256=jYeta6hWe1SkfLL3W4IDmdYjg3ZuKqI_UagWYs5RB_E,3793
77
77
  truss/templates/control/control/endpoints.py,sha256=FM-sgao7I3gMoUTasM3Xq_g2LDoJQe75JxIoaQxzeNo,10031
@@ -365,8 +365,8 @@ truss_train/definitions.py,sha256=RZs4bCWkq7gBJALDLgmd4QxjlxWk6GMs2a62kiAalvw,67
365
365
  truss_train/deployment.py,sha256=zmeJ66kg1Wc7l7bwA_cXqv85uMF77hYl7NPHuhc1NPs,2493
366
366
  truss_train/loader.py,sha256=0o66EjBaHc2YY4syxxHVR4ordJWs13lNXnKjKq2wq0U,1630
367
367
  truss_train/public_api.py,sha256=9N_NstiUlmBuLUwH_fNG_1x7OhGCytZLNvqKXBlStrM,1220
368
- truss-0.10.9rc545.dist-info/METADATA,sha256=pcZBGjyOCHlb9dqTWMJAFj137uCf7QMazPdg4TV2rUI,6674
369
- truss-0.10.9rc545.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
370
- truss-0.10.9rc545.dist-info/entry_points.txt,sha256=-MwKfHHQHQ6j0HqIgvxrz3CehCmczDLTD-OsRHnjjuU,130
371
- truss-0.10.9rc545.dist-info/licenses/LICENSE,sha256=FTqGzu85i-uw1Gi8E_o0oD60bH9yQ_XIGtZbA1QUYiw,1064
372
- truss-0.10.9rc545.dist-info/RECORD,,
368
+ truss-0.10.9rc547.dist-info/METADATA,sha256=EQqgKEtdA3d9rI8UVCZ-neygWhWRevcbRgKoMzlMxCg,6674
369
+ truss-0.10.9rc547.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
370
+ truss-0.10.9rc547.dist-info/entry_points.txt,sha256=-MwKfHHQHQ6j0HqIgvxrz3CehCmczDLTD-OsRHnjjuU,130
371
+ truss-0.10.9rc547.dist-info/licenses/LICENSE,sha256=FTqGzu85i-uw1Gi8E_o0oD60bH9yQ_XIGtZbA1QUYiw,1064
372
+ truss-0.10.9rc547.dist-info/RECORD,,