Skip to content

Commit df6ca9b

Browse files
readme update
1 parent 28e56ba commit df6ca9b

File tree

1 file changed

+8
-2
lines changed
  • app-dev/devops-and-containers/devops/oci-devops-terraform-function-java-graalvm

1 file changed

+8
-2
lines changed

app-dev/devops-and-containers/devops/oci-devops-terraform-function-java-graalvm/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Clone this repo locally. In OCI Console click <code>Create Stack</code> under <c
5454
<p>
5555
OCI DevOps IAM Policies are not part of the stack, please refer to <a href="https://docs.oracle.com/en-us/iaas/Content/devops/using/devops_iampolicies.htm">docs</a> how to create them first.
5656
<p>
57-
Important! Before running the stack it is manadatory to create the OCI Registry repository for the OCI Function container and upload a dummy X86 architecture container to it. The <b>name</b> of the OCIR repo needs to match to the <code>image_name</code> of the Stack variables e.g. <b>helloworldai-java</b>. The image tag must be '<b>1</b>'.
57+
Important! Before running the stack it is manadatory to create the OCI Registry repository for the OCI Function container and upload a dummy X86 architecture container to it. The <b>name</b> of the OCIR repo needs to match to the <code>image_name</code> of the Stack variables e.g. <b>helloworldai-java</b>. The image tag must be '<b>1</b>'. The reason for this is that the Stack canniot create the Function without pointing to an image in OCIR.
5858
<br>
5959
This can by done by doing the following in OCI Cloud Shell (assuming the image name is 'helloworldai-java'):
6060
<pre>
@@ -67,7 +67,13 @@ Unless doing this the Stack will run into an error:
6767
<pre>
6868
Error: 400-InvalidParameter, Invalid Image fra.ocir.io/&lt;YOUR_TENANCY_NAMESPACE&gt;/&lt;image_name&gt:1 does not exist or you do not have access to use it
6969
</pre>
70-
After doing this the Stack can be run to create the OCI DevOps project. After the project creation the build pipelines can be run to build and deploy the OCI Function with real Function code.
70+
After doing this the Stack can be run to create the OCI DevOps project. After the project creation the build pipelines can be run to build and deploy the OCI Function with real Function code like <a href="https://github.com/oracle-devrel/technology-engineering/blob/main/app-dev/devops-and-containers/functions/java-helloworld-AI-with-local-dev-and-oci-functions/README.md">this one</a> (the dummy hello-world image won't run properly).
71+
<p>
72+
The Stack creates only a <i>private subnet</i> in the VCN and hence the Function cannot be called outside the tenancy by default.
73+
However, the Function invocation can be done from OCI Cloud Shell either by connecting to the VCN private subnet or to OCI Service Network, both options will work. The invocation can be done as follows when using the Stack <b>project_name</b> e.g. :
74+
<pre>
75+
fn invoke helloworldai-java-project helloworldai-java-project
76+
</pre>
7177

7278
# Useful Links
7379

0 commit comments

Comments
 (0)