My Quick Start with Oracle Functions in Fresh OCI Tenancy image 40

My Quick Start with Oracle Functions in Fresh OCI Tenancy

This article is fairly rough log of the steps I went through to get going on Oracle Cloud Serverless Functions. It is mainly intended to provide a note to myself, for future reference. However, my description could prove useful to you – the reader.

My steps to get going are based on https://docs.cloud.oracle.com/iaas/Content/Functions/Tasks/functionscreatingfirst.htm. Another very useful resource with step by step descriptions: https://www.oracle.com/webfolder/technetwork/tutorials/infographics/oci_faas_gettingstarted_quickview/functions_quickview_top/functions_quickview/index.html.

Using a fresh OCI Cloud Tenancy and a local VM: Ubuntu 18.04 with Docker 19.03.5. In this VM, I run a Docker Container that contains the OCI CLI (as described in this article: https://technology.amis.nl/2018/10/14/get-going-quickly-with-command-line-interface-for-oracle-cloud-infrastructure-using-docker-container/) . A small configuration file lives outside the container and is mounted into the container contains tenancy details and the private key. This same file is used in the FN context that I use when deploying and invoking functions.

image

After deploying a function to the designated compartment in my OCI tenant, I will have the function’s container image in the Oracle Container Image Registry and the Function itself in the Application in the compartment.

Steps:

Here end the first steps: the first function is running and can be invoked. Next steps include creating more exciting functions, exposing functions through the API Gateway, calling functions from Oracle Integration Cloud integrations and scheduling function execution (for now using either OKE CronJob or with IFTTT and API Gateway.

Resources

Oracle Functions – Quick Start Guide: https://www.oracle.com/webfolder/technetwork/tutorials/infographics/oci_faas_gettingstarted_quickview/functions_quickview_top/functions_quickview/index.html

Running OCI CLI in Docker Container (to keep the development environment ‘clean’): https://technology.amis.nl/2018/10/14/get-going-quickly-with-command-line-interface-for-oracle-cloud-infrastructure-using-docker-container/