truss 0.11.14__py3-none-any.whl → 0.11.14rc500__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/contexts/image_builder/serving_image_builder.py +6 -0
- truss/templates/no_build.Dockerfile.jinja +4 -0
- {truss-0.11.14.dist-info → truss-0.11.14rc500.dist-info}/METADATA +1 -1
- {truss-0.11.14.dist-info → truss-0.11.14rc500.dist-info}/RECORD +7 -7
- {truss-0.11.14.dist-info → truss-0.11.14rc500.dist-info}/WHEEL +0 -0
- {truss-0.11.14.dist-info → truss-0.11.14rc500.dist-info}/entry_points.txt +0 -0
- {truss-0.11.14.dist-info → truss-0.11.14rc500.dist-info}/licenses/LICENSE +0 -0
|
@@ -797,6 +797,11 @@ class ServingImageBuilder(ImageBuilder):
|
|
|
797
797
|
config
|
|
798
798
|
)
|
|
799
799
|
|
|
800
|
+
user_id = None
|
|
801
|
+
if config.model_cache and config.model_cache.is_v2:
|
|
802
|
+
if config.docker_server and config.docker_server.run_as_user_id:
|
|
803
|
+
user_id = config.docker_server.run_as_user_id
|
|
804
|
+
|
|
800
805
|
non_root_user = os.getenv("BT_USE_NON_ROOT_USER", False)
|
|
801
806
|
dockerfile_contents = dockerfile_template.render(
|
|
802
807
|
should_install_server_requirements=should_install_server_requirements,
|
|
@@ -832,6 +837,7 @@ class ServingImageBuilder(ImageBuilder):
|
|
|
832
837
|
use_local_src=config.use_local_src,
|
|
833
838
|
passthrough_environment_variables=passthrough_environment_variables,
|
|
834
839
|
non_root_user=non_root_user,
|
|
840
|
+
user_id=user_id,
|
|
835
841
|
**FILENAME_CONSTANTS_MAP,
|
|
836
842
|
)
|
|
837
843
|
# Consolidate repeated empty lines to single empty lines.
|
|
@@ -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=
|
|
39
|
+
truss/contexts/image_builder/serving_image_builder.py,sha256=G7FeSLeqSyT9rQTaJpuAALVmcAI3e3ZXRASR_WRKnGM,34210
|
|
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
|
|
@@ -71,7 +71,7 @@ truss/templates/cache.Dockerfile.jinja,sha256=1qZqDo1phrcqi-Vwol-VafYJkADsBbQWU6
|
|
|
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/no_build.Dockerfile.jinja,sha256=
|
|
74
|
+
truss/templates/no_build.Dockerfile.jinja,sha256=KB9GlRKLFolIvSn7G7L4kOpTkz3FdM5qx8HVL2Q7whI,222
|
|
75
75
|
truss/templates/server.Dockerfile.jinja,sha256=Mu5_ZxuAknwaEOsF0l-XssA9pDg3pD3eLl6JBzNJ4rg,7091
|
|
76
76
|
truss/templates/control/requirements.txt,sha256=tJGr83WoE0CZm2FrloZ9VScK84q-_FTuVXjDYrexhW0,250
|
|
77
77
|
truss/templates/control/control/application.py,sha256=5Kam6M-XtfKGaXQz8cc3d0bwDkB80o2MskABWROx1gk,5321
|
|
@@ -371,8 +371,8 @@ truss_train/deployment.py,sha256=lWWANSuzBWu2M4oK4qD7n-oVR1JKdmw2Pn5BJQHg-Ck,307
|
|
|
371
371
|
truss_train/loader.py,sha256=0o66EjBaHc2YY4syxxHVR4ordJWs13lNXnKjKq2wq0U,1630
|
|
372
372
|
truss_train/public_api.py,sha256=9N_NstiUlmBuLUwH_fNG_1x7OhGCytZLNvqKXBlStrM,1220
|
|
373
373
|
truss_train/restore_from_checkpoint.py,sha256=8hdPm-WSgkt74HDPjvCjZMBpvA9MwtoYsxVjOoa7BaM,1176
|
|
374
|
-
truss-0.11.
|
|
375
|
-
truss-0.11.
|
|
376
|
-
truss-0.11.
|
|
377
|
-
truss-0.11.
|
|
378
|
-
truss-0.11.
|
|
374
|
+
truss-0.11.14rc500.dist-info/METADATA,sha256=081Ne_g7Fvmciw4BxLWfyGBJQ1OtyI8C2UuebFsfHm8,6683
|
|
375
|
+
truss-0.11.14rc500.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
376
|
+
truss-0.11.14rc500.dist-info/entry_points.txt,sha256=-MwKfHHQHQ6j0HqIgvxrz3CehCmczDLTD-OsRHnjjuU,130
|
|
377
|
+
truss-0.11.14rc500.dist-info/licenses/LICENSE,sha256=FTqGzu85i-uw1Gi8E_o0oD60bH9yQ_XIGtZbA1QUYiw,1064
|
|
378
|
+
truss-0.11.14rc500.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|