David Delabassee
Dec 19, 2018 · 2 min read
Photo by Markus Spiske

Fn is a cloud agnostic, container native, serverless platform and as such, Fn leverages Docker extensively. In a nutshell, Fn will expose any piece of code as a Serverless function by turning it into a Docker image. All the heavy lifting of making the Docker image, invoking it properly with the right input, etc. is handled by Fn. As an Fn user/function developer, you don’t need to understand Docker and all its underpinning as Fn abstracts Docker away. Leveraging Docker also means that Fn can benefit from Docker’s rich ecosystem and tools.

Dive is a simple tool that allows you to easily explore the different layers of a Docker image. It is a tool that can be very handy for some Fn users, e.g. users who are doing their own init-image, users who want to understand a function’s dependencies, etc.

Explore the different layers of a function using Dive

To explore a functions layers, simply get the function image details using fn list functions <app> or fn inspect function <app> <myfunc> and dive into it (dive <functionImage:tag>); or simply use the wrapper script below (divefn <app> <function>). That’s it and thanks Alex for Dive!

Simple Dive wrapper script for Fn functions

Fn Project

Learn about the Fn Project, containers, and serverless computing!

Thanks to Chad Arimura

David Delabassee

Written by

@Java DevRel at @Oracle. Previously @FnProject @JakartaEE & @Java_EE. See also https://delabassee.com

Fn Project

Learn about the Fn Project, containers, and serverless computing!

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade