You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# A Java AI featured function with local dev and then building and deploying to OCI Functions
46
40
47
-
This is an example how I'm locally developing and testing OCI Functions on my mac with Apple silicon that uses mainly ARM architecture and then building and deploying the same to Functions in OCI.
41
+
Reviewed: 31.10.2024
42
+
43
+
# When to use this asset?
44
+
45
+
Anyone who wants to develop OCI GenAI capable Functions and this example shows how I'm doing this locally using Fn (<ahref="https://fnproject.io">https://fnproject.io</a>) on my mac with Apple silicon that uses mainly ARM architecture and then building and then deploying the same to Functions in OCI.
This example is based on the <ahref="../java-helloworld-with-local-dev-and-oci-functions">java-helloworld-with-local-dev-and-oci-functions</a> and hence building and deploying is exactly the same but this time uses <code>OCI SDK</code> and <code>OCI Generative AI services</code> to produce the function output instead of just a simple "Hello World".
52
53
@@ -84,6 +85,19 @@ June 13, 2024 is June 13, 1924. Here are some events that occurred on this date:
84
85
5. The German aerospace company Zeppelin began constructing the Hindenburg, a large passenger airship.
- Learn how the Functions service lets you create, run, and scale business logic without managing any infrastructure
92
+
-[OCI SDK for Java](https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdk.htm)
93
+
- The Oracle Cloud Infrastructure SDK for Java enables you to write code to manage Oracle Cloud Infrastructure resources
94
+
-[Fn](https://fnproject.io/)
95
+
- The Fn project is an open-source container-native serverless platform that you can run anywhere -- any cloud or on-premise. It’s easy to use, supports every programming language, and is extensible and performant
- Discover the power of generative AI models equipped with advanced language comprehension for building the next generation of enterprise applications. Oracle Cloud Infrastructure (OCI) Generative AI is a fully managed service for seamlessly integrating these versatile language models into a wide range of use cases, including writing assistance, summarization, analysis, and chat
Anyone who wants to develop Functions and this example shows how I'm doing this locally using Fn (<ahref="https://fnproject.io">https://fnproject.io</a>) on my mac with Apple silicon that uses mainly ARM architecture and then building and then deploying the same to Functions in OCI.
44
46
45
-
# A Java Hello World function with local dev and then building and deploying to OCI Functions
This is an example how I'm locally developing and testing OCI Functions on my mac with Apple silicon that uses mainly ARM architecture and then building and deploying the same to Functions in OCI.
50
+
# How to use this asset?
48
51
49
-
###Local Dev
52
+
## Local Dev
50
53
51
54
I've installed maven and <code>Fn cli</code> on my mac. This is how to do the <ahref="https://docs.oracle.com/en-us/iaas/Content/Functions/Tasks/functionsinstallfncli.htm">Fn cli install</a> or like in here <ahref="https://fnproject.io/tutorials/install/">following the Fn tutorial</a>.
52
55
53
56
<p>
54
57
55
-
To develop functions locally I'm running the Fn server; to do this I'm using this command with Rancher Desktop instead of doing the usual <code>fn start</code> that works for me:
58
+
To develop functions locally I'm running the Fn server. Normally you would start it with <code>fn start</code> command but I'm using this command with Rancher Desktop that works for me:
56
59
57
60
<pre>
58
61
docker run --rm -i --name fnserver \
@@ -76,7 +79,7 @@ fn create app hellofunction
76
79
77
80
<p>
78
81
79
-
Then clone this repo and project and cd to the project root directory. Then run Fn cli command to build and deploy the function locally:
82
+
Then clone this repo and project and cd to the project root directory under <code>/files</code>. Then run Fn cli command to build and deploy the function locally:
- Learn how the Functions service lets you create, run, and scale business logic without managing any infrastructure
167
+
-[Fn](https://fnproject.io/)
168
+
- The Fn project is an open-source container-native serverless platform that you can run anywhere -- any cloud or on-premise. It’s easy to use, supports every programming language, and is extensible and performant
0 commit comments