truss 0.11.5rc500__py3-none-any.whl → 0.11.6__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.

@@ -785,9 +785,6 @@ class ServingImageBuilder(ImageBuilder):
785
785
  )
786
786
 
787
787
  non_root_user = os.getenv("BT_USE_NON_ROOT_USER", False)
788
- enable_model_container_admin_commands = os.getenv(
789
- "BT_ENABLE_MODEL_CONTAINER_ADMIN_CMDS"
790
- )
791
788
  dockerfile_contents = dockerfile_template.render(
792
789
  should_install_server_requirements=should_install_server_requirements,
793
790
  base_image_name_and_tag=base_image_name_and_tag,
@@ -822,7 +819,6 @@ class ServingImageBuilder(ImageBuilder):
822
819
  use_local_src=config.use_local_src,
823
820
  passthrough_environment_variables=passthrough_environment_variables,
824
821
  non_root_user=non_root_user,
825
- enable_model_container_admin_commands=enable_model_container_admin_commands,
826
822
  **FILENAME_CONSTANTS_MAP,
827
823
  )
828
824
  # Consolidate repeated empty lines to single empty lines.
@@ -1,4 +1,5 @@
1
1
  ARG PYVERSION={{ config.python_version }}
2
+ ARG HOME
2
3
  FROM {{ base_image_name_and_tag }} AS truss_server
3
4
 
4
5
  {%- set python_exec_path = config.base_image.python_executable_path or '$(which python3)' %}
@@ -16,10 +17,10 @@ ENV PYTHON_EXECUTABLE="{{ python_executable }}"
16
17
  {%- if non_root_user %}
17
18
  {# The non-root user's home directory. #}
18
19
  {# uv will use $HOME to install packages. #}
19
- ENV HOME=/home/{{ app_username }}
20
+ ENV HOME=${HOME:-/home/{{ app_username }}}
20
21
  {%- else %}
21
22
  {# This is the default, but we use this variable later so ... setting it here too.#}
22
- ENV HOME=/root
23
+ ENV HOME=${HOME:-/root}
23
24
  {%- endif %} {#- endif non_root_user #}
24
25
  {# Directory containing inference server code. #}
25
26
  ENV APP_HOME=/{{ app_username }}
@@ -31,16 +32,6 @@ RUN useradd -u {{ app_user_uid }} -ms /bin/bash {{ app_username }}
31
32
  {#- at the very beginning, set non-interactive mode for apt #}
32
33
  ENV DEBIAN_FRONTEND=noninteractive
33
34
 
34
- {# If non-root user is enabled and model container admin commands are enabled, install sudo #}
35
- {# to allow the non-root user to install packages. #}
36
- {%- if non_root_user and enable_model_container_admin_commands %}
37
- RUN apt update && apt install -y sudo
38
- {%- set allowed_admin_commands = ["/usr/bin/apt install *", "/usr/bin/apt update"] %}
39
- RUN echo "Defaults:{{ app_username }} passwd_tries=0\n{{ app_username }} ALL=(root) NOPASSWD: {{ allowed_admin_commands | join(", ") }}" > /etc/sudoers.d/app-packages
40
- RUN chmod 0440 /etc/sudoers.d/app-packages
41
- {#- optional but good practice: check if the sudoers file is valid #}
42
- RUN visudo -c
43
- {%- endif %} {#- endif non_root_user and enable_model_container_admin_commands #}
44
35
 
45
36
  {%- set UV_VERSION = "0.7.19" %}
46
37
  {#
@@ -1,7 +1,8 @@
1
1
  ARG PYVERSION=py39
2
+ ARG HOME
2
3
  FROM baseten/truss-server-base:3.9-v0.4.3 AS truss_server
3
4
  ENV PYTHON_EXECUTABLE="/usr/local/bin/python3"
4
- ENV HOME=/root
5
+ ENV HOME=${HOME:-/root}
5
6
  ENV APP_HOME=/app
6
7
  RUN mkdir -p ${APP_HOME} /control
7
8
  RUN useradd -u 60000 -ms /bin/bash app
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: truss
3
- Version: 0.11.5rc500
3
+ Version: 0.11.6
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
@@ -36,7 +36,7 @@ truss/contexts/docker_build_setup.py,sha256=cF4ExZgtYvrWxvyCAaUZUvV_DB_7__MqVomU
36
36
  truss/contexts/truss_context.py,sha256=uS6L-ACHxNk0BsJwESOHh1lA0OGGw0pb33aFKGsASj4,436
37
37
  truss/contexts/image_builder/cache_warmer.py,sha256=TGMV1Mh87n2e_dSowH0sf0rZhZraDOR-LVapZL3a5r8,7377
38
38
  truss/contexts/image_builder/image_builder.py,sha256=IuRgDeeoHVLzIkJvKtX3807eeqEyaroCs_KWDcIHZUg,1461
39
- truss/contexts/image_builder/serving_image_builder.py,sha256=ywPV6qsItc7FgxAvgVq1ktQdtFAAQ6tyy5nzwO6pBaA,33647
39
+ truss/contexts/image_builder/serving_image_builder.py,sha256=n6MTHMZsANSTGXPfkKDJ1Ch4fEc6HIjbOXA_1B9zt9Q,33438
40
40
  truss/contexts/image_builder/util.py,sha256=y2-CjUKv0XV-0w2sr1fUCflysDJLsoU4oPp6tvvoFnk,1203
41
41
  truss/contexts/local_loader/docker_build_emulator.py,sha256=3n0eIlJblz_sldh4AN8AHQDyfjQGdYyld5FabBdd9wE,3563
42
42
  truss/contexts/local_loader/dockerfile_parser.py,sha256=GoRJ0Af_3ILyLhjovK5lrCGn1rMxz6W3l681ro17ZzI,1344
@@ -66,7 +66,7 @@ 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=FG-RJ1ulMOF7VXWrDsBNQHhOUgaBKOISsUv8LEjPaGQ,5786
69
+ truss/templates/base.Dockerfile.jinja,sha256=93UgFjjDzmRILsWjvQBMcWuHY2j-HlP8pkCLmvZz_0o,5098
70
70
  truss/templates/cache.Dockerfile.jinja,sha256=1qZqDo1phrcqi-Vwol-VafYJkADsBbQWU6huQ-_1x00,1146
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
@@ -184,7 +184,7 @@ truss/tests/test_data/pima-indians-diabetes.csv,sha256=BvW3ws17ymhv2k-S6rX2Hn_2Q
184
184
  truss/tests/test_data/readme_int_example.md,sha256=fuHvpLtdkJy1f4NAR_djotVBdzusHYNXc-Fwh588XAE,1586
185
185
  truss/tests/test_data/readme_no_example.md,sha256=T2CzFMRvICXeX3_5XbFoqhHchcHGot-xM7izx34B3aQ,1607
186
186
  truss/tests/test_data/readme_str_example.md,sha256=fP4pvMqgLdIapaOf_BgRiV0H7pw4so0RNxrlq5lbROE,1726
187
- truss/tests/test_data/server.Dockerfile,sha256=DfULN7NEyQuhJcwjUAZbEnXYgadjST3815cu4CMQ2RU,1967
187
+ truss/tests/test_data/server.Dockerfile,sha256=64M9aAB-Ar5Yl0k9r5WFxVb-4iUShm_OR1w9pKJfDgg,1985
188
188
  truss/tests/test_data/annotated_types_truss/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
189
189
  truss/tests/test_data/annotated_types_truss/config.yaml,sha256=B-ZyyjLLqtxGfXj2tkH68Hy7NOMB_coYvoWyWom61g0,147
190
190
  truss/tests/test_data/annotated_types_truss/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -368,8 +368,8 @@ truss_train/deployment.py,sha256=lWWANSuzBWu2M4oK4qD7n-oVR1JKdmw2Pn5BJQHg-Ck,307
368
368
  truss_train/loader.py,sha256=0o66EjBaHc2YY4syxxHVR4ordJWs13lNXnKjKq2wq0U,1630
369
369
  truss_train/public_api.py,sha256=9N_NstiUlmBuLUwH_fNG_1x7OhGCytZLNvqKXBlStrM,1220
370
370
  truss_train/restore_from_checkpoint.py,sha256=8hdPm-WSgkt74HDPjvCjZMBpvA9MwtoYsxVjOoa7BaM,1176
371
- truss-0.11.5rc500.dist-info/METADATA,sha256=I4vLatyrJc70Gqt_GEaXXsos9gdNOG9ugQg4momlGAI,6682
372
- truss-0.11.5rc500.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
373
- truss-0.11.5rc500.dist-info/entry_points.txt,sha256=-MwKfHHQHQ6j0HqIgvxrz3CehCmczDLTD-OsRHnjjuU,130
374
- truss-0.11.5rc500.dist-info/licenses/LICENSE,sha256=FTqGzu85i-uw1Gi8E_o0oD60bH9yQ_XIGtZbA1QUYiw,1064
375
- truss-0.11.5rc500.dist-info/RECORD,,
371
+ truss-0.11.6.dist-info/METADATA,sha256=VomZlcqaUPFnEd2BxHa3VRof70IhTHh1gQDnwZ_wpLU,6677
372
+ truss-0.11.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
373
+ truss-0.11.6.dist-info/entry_points.txt,sha256=-MwKfHHQHQ6j0HqIgvxrz3CehCmczDLTD-OsRHnjjuU,130
374
+ truss-0.11.6.dist-info/licenses/LICENSE,sha256=FTqGzu85i-uw1Gi8E_o0oD60bH9yQ_XIGtZbA1QUYiw,1064
375
+ truss-0.11.6.dist-info/RECORD,,