truss 0.11.2rc501__py3-none-any.whl → 0.11.2rc503__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.

@@ -32,7 +32,7 @@ ENV DEBIAN_FRONTEND=noninteractive
32
32
  {# to allow the non-root user to install packages. #}
33
33
  {%- if non_root_user and enable_model_container_admin_commands %}
34
34
  RUN apt update && apt install -y sudo
35
- {%- set allowed_admin_commands = ["/usr/bin/apt install *", "/usr/bin/apt update", "/usr/bin/chown -R app:app /cache/model", "/usr/bin/chown -R app:app /cache/org"] %}
35
+ {%- set allowed_admin_commands = ["/usr/bin/apt install *", "/usr/bin/apt update", "/usr/bin/chown *"] %}
36
36
  RUN echo "Defaults:{{ app_username }} passwd_tries=0\n{{ app_username }} ALL=(root) NOPASSWD: {{ allowed_admin_commands | join(", ") }}" > /etc/sudoers.d/app-packages
37
37
  RUN chmod 0440 /etc/sudoers.d/app-packages
38
38
  {#- optional but good practice: check if the sudoers file is valid #}
@@ -1,15 +1,31 @@
1
1
  #!/bin/bash
2
2
  set -e
3
3
 
4
+ # Test sudo permissions first
5
+ echo "Testing sudo permissions..."
6
+ sudo -l | grep chown || echo "No chown permissions found in sudo -l"
7
+
4
8
  # Fix ownership of cache directories if they exist
5
9
  if [ -d "/cache/model" ]; then
6
10
  echo "Setting ownership for /cache/model"
7
- sudo chown -R app:app /cache/model
11
+ echo "Before: $(ls -ld /cache/model)"
12
+ if sudo chown -R app:app /cache/model; then
13
+ echo "chown command succeeded"
14
+ else
15
+ echo "chown command failed with exit code: $?"
16
+ fi
17
+ echo "After: $(ls -ld /cache/model)"
8
18
  fi
9
19
 
10
20
  if [ -d "/cache/org" ]; then
11
- echo "Setting ownership for /cache/org"
12
- sudo chown -R app:app /cache/org
21
+ echo "Setting ownership for /cache/org"
22
+ echo "Before: $(ls -ld /cache/org)"
23
+ if sudo chown -R app:app /cache/org; then
24
+ echo "chown command succeeded"
25
+ else
26
+ echo "chown command failed with exit code: $?"
27
+ fi
28
+ echo "After: $(ls -ld /cache/org)"
13
29
  fi
14
30
 
15
31
  # Execute the original command
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: truss
3
- Version: 0.11.2rc501
3
+ Version: 0.11.2rc503
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=JDac1wtv81OxUyGqt7DGZrZGWljZTBA2BaeQJiKou2A,5796
69
+ truss/templates/base.Dockerfile.jinja,sha256=3deYATR6gbgNmmYhg4yXopbOUnICSbXCfjeGU8mdUaQ,5734
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
@@ -94,7 +94,7 @@ truss/templates/custom_python_dx/my_model.py,sha256=NG75mQ6wxzB1BYUemDFZvRLBET-U
94
94
  truss/templates/docker_server/proxy.conf.jinja,sha256=Lg-PcZzKflG85exZKHNgW_I6r0mATV8AtOIBaE40-RM,1669
95
95
  truss/templates/docker_server/supervisord.conf.jinja,sha256=dd37fwZE--cutrvOUCqEyJQQQhlp61H2IUs2huKWsSk,1808
96
96
  truss/templates/server/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
97
- truss/templates/server/entrypoint.sh,sha256=IzRP19uFyNZokfgrIahERmniKtYtzljZlSKbejiZ2LY,348
97
+ truss/templates/server/entrypoint.sh,sha256=aRqtkHt_gHRgEa2S1sGnDoaFaZtA43NbvKYUy5CtzcM,881
98
98
  truss/templates/server/main.py,sha256=kWXrdD8z8IpamyWxc8qcvd5ck9gM1Kz2QH5qHJCnmOQ,222
99
99
  truss/templates/server/model_wrapper.py,sha256=k75VVISwwlsx5EGb82UZsu8kCM_i6Yi3-Hd0-Kpm1yo,42055
100
100
  truss/templates/server/requirements.txt,sha256=XblmpfxAmRo3X1V_9oMj8yjdpZ5Wk-C2oa3z6nq4OGw,672
@@ -365,8 +365,8 @@ truss_train/definitions.py,sha256=V985HhY4rdXL10DZxpFEpze9ScxzWErMht4WwaPknGU,67
365
365
  truss_train/deployment.py,sha256=lWWANSuzBWu2M4oK4qD7n-oVR1JKdmw2Pn5BJQHg-Ck,3074
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.11.2rc501.dist-info/METADATA,sha256=gjZjQMsnwEHfm-whLPMJbNsPSgOG1uhXiqK_ei9zETI,6674
369
- truss-0.11.2rc501.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
370
- truss-0.11.2rc501.dist-info/entry_points.txt,sha256=-MwKfHHQHQ6j0HqIgvxrz3CehCmczDLTD-OsRHnjjuU,130
371
- truss-0.11.2rc501.dist-info/licenses/LICENSE,sha256=FTqGzu85i-uw1Gi8E_o0oD60bH9yQ_XIGtZbA1QUYiw,1064
372
- truss-0.11.2rc501.dist-info/RECORD,,
368
+ truss-0.11.2rc503.dist-info/METADATA,sha256=ibPdGGEmpNg-1bG8GcmjRw0UR1KB6Dak-4uHszZ9_qo,6674
369
+ truss-0.11.2rc503.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
370
+ truss-0.11.2rc503.dist-info/entry_points.txt,sha256=-MwKfHHQHQ6j0HqIgvxrz3CehCmczDLTD-OsRHnjjuU,130
371
+ truss-0.11.2rc503.dist-info/licenses/LICENSE,sha256=FTqGzu85i-uw1Gi8E_o0oD60bH9yQ_XIGtZbA1QUYiw,1064
372
+ truss-0.11.2rc503.dist-info/RECORD,,