Skip to content

Commit 357d5dd

Browse files
committed
Update container runtime docs.
1 parent 2db4abe commit 357d5dd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/source/user_guide/jobs/run_container.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Here is an example to create and run a container job:
2222

2323
To configure ``ContainerRuntime``, you must specify the container ``image``.
2424
Similar to other runtime, you can add environment variables.
25-
You can optionally specify the `entrypoint`, `cmd`, `image_digest` and `image_signature_id` for running the container.
25+
You can optionally specify the `entrypoint`, `cmd`, `image_digest` and `image_signature_id` for running the container. You may also add additional artifact (file or directory) if needed. Please note that if you add a directory, it will be compressed as a zip file under `/home/datascience` and you will need to unzip if in your container.
2626

2727
See also:
2828

docs/source/user_guide/jobs/tabs/container_runtime.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
.with_environment_variable(GREETINGS="Welcome to OCI Data Science")
3434
.with_entrypoint(["/bin/sh", "-c"])
3535
.with_cmd("sleep 5 && echo $GREETINGS")
36+
.artifact("<path/to/artifact>")
3637
)
3738
)
3839

@@ -69,6 +70,7 @@
6970
- name: GREETINGS
7071
value: Welcome to OCI Data Science
7172
image: <region>.ocir.io/<your_tenancy>/<your_image>
73+
scriptPathURI: path/to/artifact
7274

7375

7476
.. code-block:: python

0 commit comments

Comments
 (0)