SlideShare a Scribd company logo
Chief Enterprise Architect @ Oracle
March 2020
Johan Louwers
Create application(s) from the CLI with OCI Functions
Serverless computing
2 Confidential – © 2019 Oracle – Johan Louwers
The following is intended to outline our general product direction. It is intended for information purposes
only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code,
or functionality, and should not be relied upon in making purchasing decisions. The development, release,
timing, and pricing of any features or functionality described for Oracle’s products may change and
remains at the sole discretion of Oracle Corporation.
Statements in this presentation relating to Oracle’s future plans, expectations, beliefs, intentions and
prospects are “forward-looking statements” and are subject to material risks and uncertainties. A detailed
discussion of these factors and other risks that affect our business is contained in Oracle’s Securities and
Exchange Commission (SEC) filings, including our most recent reports on Form 10-K and Form 10-Q
under the heading “Risk Factors.” These filings are available on the SEC’s website or on Oracle’s website
at http://www.oracle.com/investor. All information in this presentation is current as of September 2019 and
Oracle undertakes no duty to update any statement in light of new information or future events.
Safe harbor statement
3
Slide-deck Intention :
This presentation is intended to provide a
quick introduction to create a new
application for Oracle Cloud Functions
from the cli of your development
workstation.
This example is a part of a wider
workshop deck and shared as a stand-
alone example for ease of sharing.
The code should only be used as an
educational example and is not intended
to be included in any real-world
application code.
Contact details :
Johan Louwers - Chief Enterprise Architect
@johanlouwers
Johan.louwers@oracle.com
github.com/louwersj
Johanlouwers.blogspot.com
Oracle Functions - Serverless Computing
Create application(s) from the CLI with OCI Functions
Confidential – © 2019 Oracle – Johan Louwers
4
Oracle Functions - Serverless Computing
Create application(s) from the CLI with OCI Functions
F(n)
Oracle cloud – Functions:
• No lock-in
• Built on open-source Fn project and Docker
• Pay Per Use
• Pay for execution, not for idle time
• Autonomous
• Platform auto-scales functions. No servers to provision / manage
• Cloud native
• Fully cloud native and serverless
Confidential – © 2019 Oracle – Johan Louwers
5
Step 0 :
• Ensure you have followed all instruction for configuring functions in Oracle Cloud
• https://docs.cloud.oracle.com/en-us/iaas/Content/Functions/Tasks/functionsconfiguringtenancies.htm
• Ensure you have followed all instructions for configuring your local development environment
• https://docs.cloud.oracle.com/en-us/iaas/Content/Functions/Tasks/functionsconfiguringclient.htm
Oracle Functions - Serverless Computing
Create application(s) from the CLI with OCI Functions
Confidential – © 2019 Oracle – Johan Louwers
6
[root@fnproject neptune]# fn create app neptune --annotation oracle.com/oci/subnetIds='["…ID1…","…ID2…","…ID3…"]'
Successfully created app: neptune
[root@fnproject neptune]#
[root@fnproject neptune]#
Step 1 :
• create the application named “neptune” using “fn create app”
• Ensure to replace …ID1… / …ID2… / …ID3… with the appropriate IDs of the subnets you want to use in OCI
Oracle Functions - Serverless Computing
Create application(s) from the CLI with OCI Functions
Confidential – © 2019 Oracle – Johan Louwers
7
[root@fnproject neptune]# fn list apps
NAME ID
neptune ocid1.fnapp.oc1.eu-frankfurt-1.aaaaaaaaag………
[root@fnproject neptune]#
[root@fnproject neptune]#
Step 2 :
• create the function app using “fun create app”
Oracle Functions - Serverless Computing
Create application(s) from the CLI with OCI Functions
Confidential – © 2019 Oracle – Johan Louwers
8
[root@fnproject neptune]# echo 'name: neptune' > app.yaml
[root@fnproject neptune]#
[root@fnproject neptune]#
[root@fnproject neptune]# cat app.yaml
name: neptune
[root@fnproject neptune]#
[root@fnproject neptune]#
Step 3 :
• Ensure a correct app.yaml file on your development machine.
Oracle Functions - Serverless Computing
Create application(s) from the CLI with OCI Functions
Confidential – © 2019 Oracle – Johan Louwers
9
[root@fnproject neptune]# fn init --runtime python
Function boilerplate generated.
func.yaml created.
[root@fnproject neptune]#
[root@fnproject neptune]#
Step 4 :
• Create a root function
Oracle Functions - Serverless Computing
Create application(s) from the CLI with OCI Functions
Confidential – © 2019 Oracle – Johan Louwers
10
[root@fnproject neptune]# cat func.yaml
schema_version: 20180708
name: neptune
version: 0.0.1
runtime: python
entrypoint: /python/bin/fdk /function/func.py handler
memory: 256
[root@fnproject neptune]#
Step 5 :
• Check the root function
Oracle Functions - Serverless Computing
Create application(s) from the CLI with OCI Functions
Confidential – © 2019 Oracle – Johan Louwers
11
Step 8 :
• Verify the deployment in the Oracle Cloud UI
Oracle Functions - Serverless Computing
Create application(s) from the CLI with OCI Functions
Confidential – © 2019 Oracle – Johan Louwers
[root@fnproject neptune]# fn init --runtime python parseVerifyCode
Creating function at: /parseVerifyCode
Function boilerplate generated.
func.yaml created.
[root@fnproject neptune]#
12
[root@fnproject neptune]# fn -v deploy –all
Step 7 :
• Deploy the entire app
Oracle Functions - Serverless Computing
Create application(s) from the CLI with OCI Functions
Confidential – © 2019 Oracle – Johan Louwers
13
Step 8 :
• Done 
Oracle Functions - Serverless Computing
Create application(s) from the CLI with OCI Functions
Confidential – © 2019 Oracle – Johan Louwers
Oracle Cloud native functions - create application from cli

More Related Content

PPTX
Install Redis on Oracle Linux
PPTX
Oracle Fusion Middleware provisioning with Puppet
PPTX
HTTP/2 in the Java Platform -- Java Champions call February 2016
PPTX
Provisioning Oracle Fusion Middleware Environments with Chef and Puppet
PPTX
Melhore o Desenvolvimento do Time com DevOps na Nuvem
PPTX
MuleSoft Meetup Charlotte 2 - 2019
PPTX
Java EE Arquillian Testing with Docker & The Cloud
PPTX
First Caracas MuleSoft Meetup Slides
Install Redis on Oracle Linux
Oracle Fusion Middleware provisioning with Puppet
HTTP/2 in the Java Platform -- Java Champions call February 2016
Provisioning Oracle Fusion Middleware Environments with Chef and Puppet
Melhore o Desenvolvimento do Time com DevOps na Nuvem
MuleSoft Meetup Charlotte 2 - 2019
Java EE Arquillian Testing with Docker & The Cloud
First Caracas MuleSoft Meetup Slides

What's hot (20)

PPTX
Tecnologias Oracle em Docker Containers On-premise e na Nuvem
PDF
Pivotal spring boot-cloud workshop
PDF
Developing Oracle Fusion Middleware Applications in the Cloud
PPTX
Java cloud service 발표자료
PPTX
VMworld 2015 San Francisco - INF5432 - Infrastructure as Code - Ban Snowflake...
PDF
OOW15 - Installation, Cloning, and Configuration of Oracle E-Business Suite 12.2
PDF
Embracing SOA and the Cloud
PDF
Oracle Cloud Integrations Overview
PDF
Webinar: OpenStack Best Practices for Production
PPTX
Mule ESB- Data Validation- Best Practices
PPTX
Second Caracas MuleSoft Meetup Slides
PPTX
AMIS 25: Moving Integration to the Cloud
PDF
Oracle SOA Suite Everywhere
PPTX
Oracle WebLogic Server 12.2.1 Do More with Less
PPTX
Meetup_Bangalore_Rajesh
PDF
MuleSoft Meetup Singapore - Reliable Messaging & RTF Operations
PDF
Getting Started with OpenStack
PPTX
MuleSoft Meetup 3 Charlotte Presentation Slides
PDF
MuleSoft Madrid Meetup #3 slides 2nd July 2020
PDF
Is Enterprise Java Still Relevant (JavaOne 2015 session)
Tecnologias Oracle em Docker Containers On-premise e na Nuvem
Pivotal spring boot-cloud workshop
Developing Oracle Fusion Middleware Applications in the Cloud
Java cloud service 발표자료
VMworld 2015 San Francisco - INF5432 - Infrastructure as Code - Ban Snowflake...
OOW15 - Installation, Cloning, and Configuration of Oracle E-Business Suite 12.2
Embracing SOA and the Cloud
Oracle Cloud Integrations Overview
Webinar: OpenStack Best Practices for Production
Mule ESB- Data Validation- Best Practices
Second Caracas MuleSoft Meetup Slides
AMIS 25: Moving Integration to the Cloud
Oracle SOA Suite Everywhere
Oracle WebLogic Server 12.2.1 Do More with Less
Meetup_Bangalore_Rajesh
MuleSoft Meetup Singapore - Reliable Messaging & RTF Operations
Getting Started with OpenStack
MuleSoft Meetup 3 Charlotte Presentation Slides
MuleSoft Madrid Meetup #3 slides 2nd July 2020
Is Enterprise Java Still Relevant (JavaOne 2015 session)
Ad

Similar to Oracle Cloud native functions - create application from cli (20)

PPTX
Make your Cloud Applications Function for real – A Complete Overview of Oracl...
PPTX
Serverless patterns
PPTX
Part 2 of the REAL Webinars on Oracle Cloud Native Application Development (J...
PDF
Oracle CloudWorld 2023 - A Practical Guide to Implementing DevOps with IaC fo...
PPTX
Functions and DevOps
PPTX
Oracle Cloud Native Application Development (Meetup, 20th January 2020)
PDF
"Wie passen Serverless & Autonomous zusammen?"
PDF
Randstad Docker meetup - Serverless
PDF
Serverless Patterns by Jesse Butler
PDF
Oracle CNCF Meetup Malaga - Build CNCF projects in OCI
PDF
Introducing Fn Project
PDF
Building Cloud Native Applications with Oracle Autonomous Database.
PPTX
Cloud Native Application Development - build fast, cheap, scalable and agile ...
PPTX
APIdays Paris 2019 - API Management to bring Cloud-Native to the Enterprise R...
PPTX
Cloud Native Application Development - build fast, cheap, scalable and agile ...
PPTX
Jfokus 2017 Oracle Dev Cloud and Containers
PDF
Lightweight Java in the Cloud
PDF
Building and Deploying Cloud Native Applications
PDF
Cloud Native Meetup Santa Clara 07-11-2019 by Manish Kapur
PPTX
Introduction to Serverless. Oracle Fn Project.
Make your Cloud Applications Function for real – A Complete Overview of Oracl...
Serverless patterns
Part 2 of the REAL Webinars on Oracle Cloud Native Application Development (J...
Oracle CloudWorld 2023 - A Practical Guide to Implementing DevOps with IaC fo...
Functions and DevOps
Oracle Cloud Native Application Development (Meetup, 20th January 2020)
"Wie passen Serverless & Autonomous zusammen?"
Randstad Docker meetup - Serverless
Serverless Patterns by Jesse Butler
Oracle CNCF Meetup Malaga - Build CNCF projects in OCI
Introducing Fn Project
Building Cloud Native Applications with Oracle Autonomous Database.
Cloud Native Application Development - build fast, cheap, scalable and agile ...
APIdays Paris 2019 - API Management to bring Cloud-Native to the Enterprise R...
Cloud Native Application Development - build fast, cheap, scalable and agile ...
Jfokus 2017 Oracle Dev Cloud and Containers
Lightweight Java in the Cloud
Building and Deploying Cloud Native Applications
Cloud Native Meetup Santa Clara 07-11-2019 by Manish Kapur
Introduction to Serverless. Oracle Fn Project.
Ad

More from Johan Louwers (20)

PDF
Multi Domain REST API routing for Data Mesh based Data Products
PDF
TClab Dynamic Solar Panel Positioning Systems
PPTX
Oracle Cloud With Azure DevOps Pipelines
PPTX
Oracle Labs - research mission & project potfolio
PPTX
Fn project quick installation guide
PPTX
Oracle python pandas merge DataFrames
PPTX
import data from Oracle Database into Python Pandas Dataframe
PDF
Voice assistants for the insurance industry
PPTX
Enterprise wide publish subscribe with Apache Kafka
PPTX
Industry 4.0 and Oracle Cloud
PPTX
Docker and microservices - moving from a monolith to microservices
PDF
Cloud native applications for banking
PPTX
Conversational retail
PPTX
Oracle Cloudday security
PPTX
Oracle Cloudday - the future of retail
PPTX
Capgemini Oracle Cloud Access Security Broker
PPTX
Microservices in the oracle cloud
PPTX
Oracle cloud, private, public and hybrid
PPTX
RethinkDB on Oracle Linux
PPTX
Oracle Cloud Hybrid Storage Tiering
Multi Domain REST API routing for Data Mesh based Data Products
TClab Dynamic Solar Panel Positioning Systems
Oracle Cloud With Azure DevOps Pipelines
Oracle Labs - research mission & project potfolio
Fn project quick installation guide
Oracle python pandas merge DataFrames
import data from Oracle Database into Python Pandas Dataframe
Voice assistants for the insurance industry
Enterprise wide publish subscribe with Apache Kafka
Industry 4.0 and Oracle Cloud
Docker and microservices - moving from a monolith to microservices
Cloud native applications for banking
Conversational retail
Oracle Cloudday security
Oracle Cloudday - the future of retail
Capgemini Oracle Cloud Access Security Broker
Microservices in the oracle cloud
Oracle cloud, private, public and hybrid
RethinkDB on Oracle Linux
Oracle Cloud Hybrid Storage Tiering

Recently uploaded (20)

PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Modernizing your data center with Dell and AMD
PDF
Empathic Computing: Creating Shared Understanding
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
cuic standard and advanced reporting.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
Cloud computing and distributed systems.
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Modernizing your data center with Dell and AMD
Empathic Computing: Creating Shared Understanding
“AI and Expert System Decision Support & Business Intelligence Systems”
cuic standard and advanced reporting.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Unlocking AI with Model Context Protocol (MCP)
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Understanding_Digital_Forensics_Presentation.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Network Security Unit 5.pdf for BCA BBA.
Dropbox Q2 2025 Financial Results & Investor Presentation
Spectral efficient network and resource selection model in 5G networks
Chapter 3 Spatial Domain Image Processing.pdf
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Encapsulation_ Review paper, used for researhc scholars
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Cloud computing and distributed systems.

Oracle Cloud native functions - create application from cli

  • 1. Chief Enterprise Architect @ Oracle March 2020 Johan Louwers Create application(s) from the CLI with OCI Functions Serverless computing
  • 2. 2 Confidential – © 2019 Oracle – Johan Louwers The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, timing, and pricing of any features or functionality described for Oracle’s products may change and remains at the sole discretion of Oracle Corporation. Statements in this presentation relating to Oracle’s future plans, expectations, beliefs, intentions and prospects are “forward-looking statements” and are subject to material risks and uncertainties. A detailed discussion of these factors and other risks that affect our business is contained in Oracle’s Securities and Exchange Commission (SEC) filings, including our most recent reports on Form 10-K and Form 10-Q under the heading “Risk Factors.” These filings are available on the SEC’s website or on Oracle’s website at http://www.oracle.com/investor. All information in this presentation is current as of September 2019 and Oracle undertakes no duty to update any statement in light of new information or future events. Safe harbor statement
  • 3. 3 Slide-deck Intention : This presentation is intended to provide a quick introduction to create a new application for Oracle Cloud Functions from the cli of your development workstation. This example is a part of a wider workshop deck and shared as a stand- alone example for ease of sharing. The code should only be used as an educational example and is not intended to be included in any real-world application code. Contact details : Johan Louwers - Chief Enterprise Architect @johanlouwers Johan.louwers@oracle.com github.com/louwersj Johanlouwers.blogspot.com Oracle Functions - Serverless Computing Create application(s) from the CLI with OCI Functions Confidential – © 2019 Oracle – Johan Louwers
  • 4. 4 Oracle Functions - Serverless Computing Create application(s) from the CLI with OCI Functions F(n) Oracle cloud – Functions: • No lock-in • Built on open-source Fn project and Docker • Pay Per Use • Pay for execution, not for idle time • Autonomous • Platform auto-scales functions. No servers to provision / manage • Cloud native • Fully cloud native and serverless Confidential – © 2019 Oracle – Johan Louwers
  • 5. 5 Step 0 : • Ensure you have followed all instruction for configuring functions in Oracle Cloud • https://docs.cloud.oracle.com/en-us/iaas/Content/Functions/Tasks/functionsconfiguringtenancies.htm • Ensure you have followed all instructions for configuring your local development environment • https://docs.cloud.oracle.com/en-us/iaas/Content/Functions/Tasks/functionsconfiguringclient.htm Oracle Functions - Serverless Computing Create application(s) from the CLI with OCI Functions Confidential – © 2019 Oracle – Johan Louwers
  • 6. 6 [root@fnproject neptune]# fn create app neptune --annotation oracle.com/oci/subnetIds='["…ID1…","…ID2…","…ID3…"]' Successfully created app: neptune [root@fnproject neptune]# [root@fnproject neptune]# Step 1 : • create the application named “neptune” using “fn create app” • Ensure to replace …ID1… / …ID2… / …ID3… with the appropriate IDs of the subnets you want to use in OCI Oracle Functions - Serverless Computing Create application(s) from the CLI with OCI Functions Confidential – © 2019 Oracle – Johan Louwers
  • 7. 7 [root@fnproject neptune]# fn list apps NAME ID neptune ocid1.fnapp.oc1.eu-frankfurt-1.aaaaaaaaag……… [root@fnproject neptune]# [root@fnproject neptune]# Step 2 : • create the function app using “fun create app” Oracle Functions - Serverless Computing Create application(s) from the CLI with OCI Functions Confidential – © 2019 Oracle – Johan Louwers
  • 8. 8 [root@fnproject neptune]# echo 'name: neptune' > app.yaml [root@fnproject neptune]# [root@fnproject neptune]# [root@fnproject neptune]# cat app.yaml name: neptune [root@fnproject neptune]# [root@fnproject neptune]# Step 3 : • Ensure a correct app.yaml file on your development machine. Oracle Functions - Serverless Computing Create application(s) from the CLI with OCI Functions Confidential – © 2019 Oracle – Johan Louwers
  • 9. 9 [root@fnproject neptune]# fn init --runtime python Function boilerplate generated. func.yaml created. [root@fnproject neptune]# [root@fnproject neptune]# Step 4 : • Create a root function Oracle Functions - Serverless Computing Create application(s) from the CLI with OCI Functions Confidential – © 2019 Oracle – Johan Louwers
  • 10. 10 [root@fnproject neptune]# cat func.yaml schema_version: 20180708 name: neptune version: 0.0.1 runtime: python entrypoint: /python/bin/fdk /function/func.py handler memory: 256 [root@fnproject neptune]# Step 5 : • Check the root function Oracle Functions - Serverless Computing Create application(s) from the CLI with OCI Functions Confidential – © 2019 Oracle – Johan Louwers
  • 11. 11 Step 8 : • Verify the deployment in the Oracle Cloud UI Oracle Functions - Serverless Computing Create application(s) from the CLI with OCI Functions Confidential – © 2019 Oracle – Johan Louwers [root@fnproject neptune]# fn init --runtime python parseVerifyCode Creating function at: /parseVerifyCode Function boilerplate generated. func.yaml created. [root@fnproject neptune]#
  • 12. 12 [root@fnproject neptune]# fn -v deploy –all Step 7 : • Deploy the entire app Oracle Functions - Serverless Computing Create application(s) from the CLI with OCI Functions Confidential – © 2019 Oracle – Johan Louwers
  • 13. 13 Step 8 : • Done  Oracle Functions - Serverless Computing Create application(s) from the CLI with OCI Functions Confidential – © 2019 Oracle – Johan Louwers