This is the code repository for Docker for Serverless Applications, published by Packt. It contains all the supporting project files necessary to work through the book from start to finish.
Serverless applications have gained a lot of popularity among developers and are currently the buzzwords in the tech market. Docker and serverless are two terms that go hand-in-hand.
This book will start by explaining serverless and Function-as-a-Service (FaaS) concepts, and why they are important. Then, it will introduce the concepts of containerization and how Docker fits into the Serverless ideology. It will explore the architectures and components of three major Docker-based FaaS platforms, how to deploy and how to use their CLI. Then, this book will discuss how to set up and operate a production-grade Docker cluster. We will cover all concepts of FaaS frameworks with practical use cases, followed by deploying and orchestrating these serverless systems using Docker. Finally, we will also explore advanced topics and prototypes for FaaS architectures in the last chapter.
By the end of this book, you will be in a position to build and deploy your own FaaS platform using Docker.
All of the code is organized into folders. For example, Chapter03.
The code will look like the following:
def find_layers(img, id):
with closing(img.extractfile('%s/json' % id)) as fd:
info = json.load(fd)
LOG.debug('layer = %s', id)
for k in ['os', 'architecture', 'author', 'created']:
if k in info:
LOG.debug('%s = %s', k, info[k])
If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.
https://packt.link/free-ebook/9781788835268