Please enable JavaScript.
Coggle requires JavaScript to display documents.
Fn CheatSheet - Coggle Diagram
Fn CheatSheet
Steps
Link OCI Account with CLI
Link Docker Login with OCIR
Code
(Optional) Download Language locally
Create Context Locally
Compartment
Invoke URL
Profile
Docker Registry
Link API GW to Function
Create on OCI: Repo & App
Link DNS to API GW
Requirements
OCI CLI - Configure
Docker (i.e. Docker Desktop usando WSL2 en Windows)
Fn
https://github.com/fnproject/fn#top
OCI Account
Docker Login - OCI Token
Run
simple: fn start / fn stop
detach: fn start -d
with debug: fn start --log-level DEBUG
Port (* Update invoke): fn start -p <port>
Context
fn list contexts
fn update context registry <localregistry_or_docker_hub>
fn use context <Name>
Code
fn init --runtime <language> --trigger http <function_name>
deploy
fn deploy --create-app --all --local
fn deploy << With Context
List
fn list apps
fn list triggers <app>
fn list functions <app>
Invoke
fn invoke <app> <function_name>
echo -n <payload>'|fn invoke <app> <function_name> application/json
Microservices
Design
Apps
Functions