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

My Quick Start with Oracle Functions in Fresh OCI Tenancy

Quick Take

This is an early, hands-on quick start for Oracle Functions, built using Ubuntu 18.04, Docker 19.03 and the Fn Project CLI. It records the original tenancy, networking, CLI and deployment steps rather than a current installation baseline. The general workflow is still useful, but the versions shown here are outdated and should not be reused for production. Oracle’s current image-based first-function guide and function creation options are better starting points for a new environment.

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.

Original environment and deployment steps

Historical setup: The local VM, Docker and OCI CLI versions below document the author’s original working environment. They are not a recommended 2026 software baseline. Create new credentials with minimum required permissions, store private keys and registry credentials securely, and use supported tooling. If you want an infrastructure-as-code follow-up, see Creating, Building and Invoking a Function on OCI with Terraform.

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/