truss 0.10.9rc542__py3-none-any.whl → 0.10.9rc543__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,14 +23,16 @@ 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
- {%- if enable_model_container_admin_commands %}
26
+ {%- if non_root_user %}
27
+ {%- if enable_model_container_admin_commands %}
27
28
  RUN apt update && apt install -y sudo
28
29
  {%- set allowed_admin_commands = ["/usr/bin/apt install *", "/usr/bin/apt update"] %}
29
30
  RUN echo "Defaults:{{ app_username }} passwd_tries=0\n{{ app_username }} ALL=(root) NOPASSWD: {{ allowed_admin_commands | join(", ") }}" > /etc/sudoers.d/app-packages
30
31
  RUN chmod 0440 /etc/sudoers.d/app-packages
31
32
  {#- optional but good practice: check if the sudoers file is valid #}
32
33
  RUN visudo -c
33
- {%- endif %}
34
+ {%- endif %} {#- endif enable_model_container_admin_commands #}
35
+ {%- endif %} {#- endif non_root_user #}
34
36
 
35
37
  {%- set UV_VERSION = "0.7.19" %}
36
38
  {#
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: truss
3
- Version: 0.10.9rc542
3
+ Version: 0.10.9rc543
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,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=ZLCLlWLlXegSBcGQXAVF0R_HEe_1BAZn5WmZ2qK34Lk,5255
69
+ truss/templates/base.Dockerfile.jinja,sha256=oXpjfthnJmwLR0aQdfBTiuRIOfVMB1VlGZL7-1QlUjk,5374
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
@@ -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.9rc542.dist-info/METADATA,sha256=TzKbqdhzLPV3A_nqU415h2f31GDcb4c1KIAXa-oibfI,6674
369
- truss-0.10.9rc542.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
370
- truss-0.10.9rc542.dist-info/entry_points.txt,sha256=-MwKfHHQHQ6j0HqIgvxrz3CehCmczDLTD-OsRHnjjuU,130
371
- truss-0.10.9rc542.dist-info/licenses/LICENSE,sha256=FTqGzu85i-uw1Gi8E_o0oD60bH9yQ_XIGtZbA1QUYiw,1064
372
- truss-0.10.9rc542.dist-info/RECORD,,
368
+ truss-0.10.9rc543.dist-info/METADATA,sha256=sdk3AvM3O2zV89EFvMp7yh0Li0JGnt0ZUFZc8Ycikxo,6674
369
+ truss-0.10.9rc543.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
370
+ truss-0.10.9rc543.dist-info/entry_points.txt,sha256=-MwKfHHQHQ6j0HqIgvxrz3CehCmczDLTD-OsRHnjjuU,130
371
+ truss-0.10.9rc543.dist-info/licenses/LICENSE,sha256=FTqGzu85i-uw1Gi8E_o0oD60bH9yQ_XIGtZbA1QUYiw,1064
372
+ truss-0.10.9rc543.dist-info/RECORD,,