File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ on TabPy server.
18
18
- [ Providing Schema Metadata] ( #providing-schema-metadata )
19
19
- [ Querying an Endpoint] ( #querying-an-endpoint )
20
20
- [ Evaluating Arbitrary Python Scripts] ( #evaluating-arbitrary-python-scripts )
21
+ - [ Deploying Models in TabPy Docker Container] ( #deploying-models-in-tabpy-docker-container )
21
22
22
23
<!-- tocstop -->
23
24
@@ -433,3 +434,16 @@ using REST `Evaluate`.
433
434
The convention for this is to use a provided function call ` tabpy.query ` in the
434
435
code, which behaves like the ` query ` method in ` tabpy-tools ` . See the
435
436
[ REST API documentation] ( server-rest.md ) for an example.
437
+
438
+ ## Deploying Models in TabPy Docker Container
439
+
440
+ To deploy custom models for TabPy running in docker container, first copy all
441
+ python model files onto host machine.
442
+
443
+ For example, ` myFunction.py ` is the model we want to deploy.
444
+ Run following from the folder containing ` myFunction.py ` on host machine
445
+
446
+ ``` console
447
+ docker cp myFunction.py <container_id>:/app/scripts/myFunction.py
448
+ docker exec -it <container_id> python /app/scripts/myFunction.py
449
+ ```
You can’t perform that action at this time.
0 commit comments