truss 0.11.12rc501__py3-none-any.whl → 0.11.12rc503__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.
- truss/templates/base.Dockerfile.jinja +5 -1
- truss/templates/server.Dockerfile.jinja +1 -3
- {truss-0.11.12rc501.dist-info → truss-0.11.12rc503.dist-info}/METADATA +1 -1
- {truss-0.11.12rc501.dist-info → truss-0.11.12rc503.dist-info}/RECORD +7 -7
- {truss-0.11.12rc501.dist-info → truss-0.11.12rc503.dist-info}/WHEEL +0 -0
- {truss-0.11.12rc501.dist-info → truss-0.11.12rc503.dist-info}/entry_points.txt +0 -0
- {truss-0.11.12rc501.dist-info → truss-0.11.12rc503.dist-info}/licenses/LICENSE +0 -0
|
@@ -115,9 +115,13 @@ WORKDIR $APP_HOME
|
|
|
115
115
|
{% endblock %}
|
|
116
116
|
|
|
117
117
|
|
|
118
|
+
{% set packages_dir = "/packages" %}
|
|
118
119
|
{% block bundled_packages_copy %}
|
|
119
120
|
{%- if bundled_packages_dir_exists %}
|
|
120
|
-
|
|
121
|
+
RUN mkdir -p {{ packages_dir }}
|
|
122
|
+
{# Note: The /. at the end of the source path is to copy the contents of the directory, not the directory itself, because we have created the directory above. #}
|
|
123
|
+
{# The / at the end of the target path is only to note that the target is a directory. #}
|
|
124
|
+
COPY --chown={{ default_owner }} ./{{ config.bundled_packages_dir }}/. {{ packages_dir }}/
|
|
121
125
|
{%- endif %}
|
|
122
126
|
{% endblock %}
|
|
123
127
|
|
|
@@ -104,9 +104,7 @@ COPY --chown={{ default_owner }} ./{{ config.model_module_dir }} ${APP_HOME}/mod
|
|
|
104
104
|
{# Macro to change ownership of directories and switch to regular user #}
|
|
105
105
|
{%- macro chown_and_switch_to_regular_user_if_enabled(additional_chown_dirs=[]) -%}
|
|
106
106
|
{%- if non_root_user %}
|
|
107
|
-
{
|
|
108
|
-
RUN mkdir -p {{ packages_dir }}
|
|
109
|
-
RUN chown -R {{ app_username }}:{{ app_username }} {% for dir in additional_chown_dirs %}{{ dir }} {% endfor %}${HOME} ${APP_HOME}
|
|
107
|
+
RUN chown -R {{ app_username }}:{{ app_username }} ${HOME} ${APP_HOME} {{ packages_dir }} {% for dir in additional_chown_dirs %}{{ dir }} {% endfor %}
|
|
110
108
|
USER {{ app_username }}
|
|
111
109
|
{%- endif %} {#- endif non_root_user #}
|
|
112
110
|
{%- endmacro -%}
|
|
@@ -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=
|
|
69
|
+
truss/templates/base.Dockerfile.jinja,sha256=2Eh2nLcOpB63RwP_A46bE-ebmBChnb-3O7yh-UZcJ74,5586
|
|
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
|
|
73
73
|
truss/templates/docker_server_requirements.txt,sha256=PyhOPKAmKW1N2vLvTfLMwsEtuGpoRrbWuNo7tT6v2Mc,18
|
|
74
|
-
truss/templates/server.Dockerfile.jinja,sha256=
|
|
74
|
+
truss/templates/server.Dockerfile.jinja,sha256=OFG79u4p_oJ0J4gSb9ljRwLW-GpEN_yaMfkbAJCz_U8,7091
|
|
75
75
|
truss/templates/control/requirements.txt,sha256=tJGr83WoE0CZm2FrloZ9VScK84q-_FTuVXjDYrexhW0,250
|
|
76
76
|
truss/templates/control/control/application.py,sha256=5Kam6M-XtfKGaXQz8cc3d0bwDkB80o2MskABWROx1gk,5321
|
|
77
77
|
truss/templates/control/control/endpoints.py,sha256=KzqsLVNJE6r6TCPW8D5FMCtsfHadTwR15A3z_viGxmM,11782
|
|
@@ -370,8 +370,8 @@ truss_train/deployment.py,sha256=lWWANSuzBWu2M4oK4qD7n-oVR1JKdmw2Pn5BJQHg-Ck,307
|
|
|
370
370
|
truss_train/loader.py,sha256=0o66EjBaHc2YY4syxxHVR4ordJWs13lNXnKjKq2wq0U,1630
|
|
371
371
|
truss_train/public_api.py,sha256=9N_NstiUlmBuLUwH_fNG_1x7OhGCytZLNvqKXBlStrM,1220
|
|
372
372
|
truss_train/restore_from_checkpoint.py,sha256=8hdPm-WSgkt74HDPjvCjZMBpvA9MwtoYsxVjOoa7BaM,1176
|
|
373
|
-
truss-0.11.
|
|
374
|
-
truss-0.11.
|
|
375
|
-
truss-0.11.
|
|
376
|
-
truss-0.11.
|
|
377
|
-
truss-0.11.
|
|
373
|
+
truss-0.11.12rc503.dist-info/METADATA,sha256=KldYEqQAcDkKAxJH2Nt-4fEaPYFze1FzDsoM10-YkkQ,6683
|
|
374
|
+
truss-0.11.12rc503.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
375
|
+
truss-0.11.12rc503.dist-info/entry_points.txt,sha256=-MwKfHHQHQ6j0HqIgvxrz3CehCmczDLTD-OsRHnjjuU,130
|
|
376
|
+
truss-0.11.12rc503.dist-info/licenses/LICENSE,sha256=FTqGzu85i-uw1Gi8E_o0oD60bH9yQ_XIGtZbA1QUYiw,1064
|
|
377
|
+
truss-0.11.12rc503.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|